c# - Sending emails in asp.net with specific name instead of sender email -


i need send email in asp.net need sender appears "mysitename" without info@mysitename.comi need send email in asp.net need sender appears "mysitename" without info@mysitename.com

like this:

using(mailmessage message = new mailmesage(         new mailaddress("you@domain.com", "your name"),         new mailaddress("recipient@otherdomain.com", "their name")     )) {     message.subject = ...;     message.body = ...;      new smtpclient().send(message); } 

you need enter smtpclient's connection settings in web.config


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -