i am trying to send mail using skpsmtpmessage . But the recipient will see id of SMTP authorization userid. The "fromEmail" variable is useless in this condition. How to send mail using another mail id .I can't change the sender name also.
Example
testMsg.fromEmail = @"user1@gmail.com";
开发者_如何学运维testMsg.relayHost = @"smtp.gmail.com";
testMsg.requiresAuth = YES;
testMsg.login = @"user2@gmail.com";
testMsg.pass = @"mypassword";
recipient will see the sender name as "user2@gmail.com". But i want "user1@gmail.com" as the sender name. How i can send mail using "fromEmail"
In order to protect against spam, spoofing, etc. most serious mail services today requires you to send mail from the same email address as the one used for authentication. This is most likely also the case for Gmail.
If you are using Google as your mail provider, then you are probably not able to have your emails appears as being sent from a different mail account than the one you have authenticated as.
精彩评论