0
votes

I have an issue in my asp.net application. I am using SMTP server credentials to send emails. It includes a hostname smtp.gmail.com, port no=587, username=”[email protected]” password=””. I have created a mail message object and set the from and to address to “[email protected]”,”[email protected]”. I am getting emails, but the from id is always taken as the username ie,[email protected]. How it happens? How can I change the email address to [email protected]?

1

1 Answers

1
votes

I think this happens on the gmail servers. The idea being that they dont want you to send emails from gmail accounts looking like you sent it from another account. Thats one of the ways they combat SPAM. You can use Google Apps if the idea is to send email messages like they were coming from your domain.