在后台发送邮件时SMTP的设置

时间:2012-01-24 06:32:44

标签: iphone

iphone×117661

在此声明中Smtpout.servername.net,

确切的条目是什么?我很困惑。我正在使用gmail.Please澄清.....

//消息的内容。

SKPSMTPMessage *testMsg = [[SKPSMTPMessage alloc] init];
testMsg.fromEmail = @"youremail@email.com";
testMsg.toEmail = @"targetemailaddress@email.com";
testMsg.relayHost = @"smtpout.yourserver.net";
testMsg.requiresAuth = YES;
testMsg.login = @"yourusername@email.com";
testMsg.pass = @"yourPassWord";
testMsg.subject = @"This is the email subject line";
testMsg.wantsSecure = YES; // smtp.gmail.com doesn't work without TLS!

我使用的代码,testMsg.relayHost = @"smtpout.yourserver.net";

什么条目将用于smtpOut和“您的服务器”

1 个答案:

答案 0 :(得分:0)

testMsg.relayHost = @"smtp.gmail.com"

这是你应该输入的内容。