Sending mail with VB.NET (question about from)

  • Thread starter Thread starter Joris De Groote
  • Start date Start date
J

Joris De Groote

I can send a mail, no problem, however, the sended mail always comes from
the e-mail adres from the sender

I use this code
myMessage = New MailMessage

With myMessage

..To = ontvanger

..From = verzender

How can I change this that when this mail is received by someone, he/she
doesn't see from: (e-mail address removed) but sees from: test. But if he/she reply's,
the mail goes to (e-mail address removed) ?

Thanks
Joris
 
How can I change this that when this mail is received by someone,
he/she doesn't see from: (e-mail address removed) but sees from: test. But if
he/she reply's, the mail goes to (e-mail address removed) ?

Set the from to be in this format: "Test" <[email protected]>
 
Back
Top