【发布时间】:2011-08-13 20:46:13
【问题描述】:
我在我的 iPhone 应用程序中使用了 SKPSMTPMessage。问题在于多个收件人。我只需要将电子邮件发送给两个收件人。
我正在使用以下代码:
-(void)sendEmail {
// create soft wait overlay so the user knows whats going on in the background.
[self createWaitOverlay];
//the guts of the message.
SKPSMTPMessage *testMsg = [[SKPSMTPMessage alloc] init];
testMsg.fromEmail = @"support@dsfaes.co.uk";
// testMsg.toEmail = phone;
testMsg.toEmail=@"manjinderr@gmail.com;
testMsg.relayHost = @"smtp.nman.co.uk";
testMsg.requiresAuth = YES;
testMsg.login = @"support@man.co.uk";
testMsg.pass = @"nfsdxsdfswdrt";
testMsg.subject = @"The Confirmation";
testMsg.wantsSecure = YES; // smtp.gmail.com doesn't work without TLS!
// Only do this for self-signed certs!
// testMsg.validateSSLChain = NO;
testMsg.delegate = self;
}
任何人都知道我如何向 2 个收件人发送电子邮件
【问题讨论】:
-
这段代码毫无意义,伙计。我已经搜索过了
-
Manjinder S,我已经给出了解决方案,希望对您有所帮助。看我的回答。 :)
标签: iphone email skpsmtpmessage