G
gnewsgroup
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.From = new MailAddress("(e-mail address removed)");
But, if you authenticate yourself through "(e-mail address removed)",
Then the sender address will be overwritten as "(e-mail address removed)".
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
(e-mail address removed)
(e-mail address removed)
But, I cannot authenticate neither of these against gmail smtp server,
so I have to use (e-mail address removed) to get authenticated, but then,
recipients will see that my email is from (e-mail address removed) instead
of from (e-mail address removed). 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 (e-mail address removed)?
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.From = new MailAddress("(e-mail address removed)");
But, if you authenticate yourself through "(e-mail address removed)",
Then the sender address will be overwritten as "(e-mail address removed)".
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
(e-mail address removed)
(e-mail address removed)
But, I cannot authenticate neither of these against gmail smtp server,
so I have to use (e-mail address removed) to get authenticated, but then,
recipients will see that my email is from (e-mail address removed) instead
of from (e-mail address removed). 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 (e-mail address removed)?
Thank you.