Surendra singh

Surendra singh

  • NA
  • 136
  • 68.7k

Change smtp from mail address using c#

Feb 4 2013 9:37 AM
Hi,
  i am sending email using gmail smtp credentials. My problem is that, i want to use different email id and username as credentials.

    <smtp from="[email protected]" deliveryMethod="Network">
  <network host="smtp.gmail.com" port="25" userName="[email protected]" password="mypassword"  />
  </smtp>
   
    Now i want to show from address ("[email protected]") in client's from address, rather than userName "[email protected]".
   
    Would you please help me to show from address ("[email protected]"), than userName "[email protected]"
   
Thanks