views:

56

answers:

1

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 = @"[email protected]";

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

testMsg.requiresAuth = YES;

testMsg.login = @"[email protected]";

testMsg.pass = @"mypassword";

recipient will see the sender name as "[email protected]". But i want "[email protected]" as the sender name. How i can send mail using "fromEmail"

+1  A: 

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.

Claus Broch