Settings for SMTP while sending mail in background
<p>iphone× 117661</p>

<p>In this statement Smtpout.servername.net,</p>

<p>what would be the exact entries?I am pretty much confused.I am using gmail.Please clarify.....</p>

<p>//the guts of the message.</p>

<pre><code>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!
</code></pre>

<p>This code I have used ,Here in <code>testMsg.relayHost = @"smtpout.yourserver.net"</code>;</p>

<p>what entries would be used for smtpOut and "Your server"</p>
