Quantcast
Channel: Getting Started
Browsing latest articles
Browse All 7 View Live

Re: Can I change 'from address' in MailMessage

Hi friends,I think I find the answer.When I test my code from local machine (with gmail smtp configuration) where I always send the smtp credentials; in this case 'From' address is always overridden by...

View Article



Re: Can I change 'from address' in MailMessage

Hi,If you see my code (line 9-10), I already use this.But, if I also use  smtp credentials (in my code, line no 31), then the above From address is overridden.-Abhijit

View Article

Re: Can I change 'from address' in MailMessage

There is a from property for the mail message object, you can set it any timeMailMessage m = new MailMessage();            m.From = new MailAddress("your email address");

View Article

Re: Can I change 'from address' in MailMessage

var mailMessage = new MailMessage  ("ignatandrei@from.com","another addressto.com");

View Article

Re: Can I change 'from address' in MailMessage

Hi ignatandrei,Thanks for your reply.The link you provide here showsclient.Credentials = CredentialCache.DefaultNetworkCredentials; But I don't want to use the default credentials. Because the...

View Article


Re: Can I change 'from address' in MailMessage

try with fromhttp://msdn.microsoft.com/en-us/library/system.net.mail.mailmessage.from.aspx

View Article

Can I change 'from address' in MailMessage

Hi,I am try to send mail using my application with attachment, disclaimer text (as attachment) and signature. It is working fine.But when I use a valid credentials in smtpclient, then the From address...

View Article
Browsing latest articles
Browse All 7 View Live




Latest Images