I am using Peter Bromberg's code to send email through gmail smtp
service in my asp.net web application. Thanks, Peter.
The problem with gmail smtp is that gmail will overwrite the sender's
address with whichever the gmail smtp server authenticates. In other
words, even if you say
mailMessage.Fro m = new MailAddress("jo hndoe@somewhere .com");
But, if you authenticate yourself through "janedoe@gmail. com",
Then the sender address will be overwritten as "janedoe@gmail. com".
I understand that this makes perfect anti-spamming sense.
Here is my situation. I have domain mydomain.com, and I am using the
google apps email service with this mydomain.com. So, I have email
addresses like
info@mydomain.c om
feedback@mydoma in.com
But, I cannot authenticate neither of these against gmail smtp server,
so I have to use gnewsgroup@gmai l.com to get authenticated, but then,
recipients will see that my email is from gnewsgroup@gmai l.com instead
of from info@mydomain.c om. This is very unprofessional, isn't it?
So, here is the question, I don't have a mail server on mydomain.com,
is there a work around to send mail and recipient would see that the
email is from info@mydomain.c om?
Thank you.
service in my asp.net web application. Thanks, Peter.
The problem with gmail smtp is that gmail will overwrite the sender's
address with whichever the gmail smtp server authenticates. In other
words, even if you say
mailMessage.Fro m = new MailAddress("jo hndoe@somewhere .com");
But, if you authenticate yourself through "janedoe@gmail. com",
Then the sender address will be overwritten as "janedoe@gmail. com".
I understand that this makes perfect anti-spamming sense.
Here is my situation. I have domain mydomain.com, and I am using the
google apps email service with this mydomain.com. So, I have email
addresses like
info@mydomain.c om
feedback@mydoma in.com
But, I cannot authenticate neither of these against gmail smtp server,
so I have to use gnewsgroup@gmai l.com to get authenticated, but then,
recipients will see that my email is from gnewsgroup@gmai l.com instead
of from info@mydomain.c om. This is very unprofessional, isn't it?
So, here is the question, I don't have a mail server on mydomain.com,
is there a work around to send mail and recipient would see that the
email is from info@mydomain.c om?
Thank you.
Comment