Author: dtsob75 | Posted on: 7/13/2010 2:25:09 PM | Views : 481

 I am having some problems sending emails (using gmail).  I have an application that allows a user to send an email, request info, etc.  I want the email "from" address to be from the initiating user.  I set up the settings in the web.config for the first time.  Previously, I had always set up the info directly in the code.  The email is sending just fine.  However, the from address shows the user name correctly but the email address in the one in the web.config.ie.  "User From Name <web.config from address>".  In the code, the MailMessage object shows it correctly ("User From Name <User from address>"), and the SMTPClient From address shows the web.config from address. This is going to be confusing for the recipient of the emails to see the config address with the user name.
I tried removing the From address from the config(leaving the required userIDpw for the email logon, but ...

Go to the complete details ...