Home All Groups Group Topic Archive Search About

Sending mail with VB.NET (question about from)

Author
23 Dec 2006 11:44 AM
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: t***@test.be but sees from: test. But if he/she reply's,
the mail goes to t***@test.be ?

Thanks
Joris

Author
23 Dec 2006 12:40 PM
Spam Catcher
Show quote Hide quote
"Joris De Groote" <joris.degro***@skynet.be> wrote in
news:#Pp5DfoJHHA.1912@TK2MSFTNGP03.phx.gbl:

> How can I change this that when this mail is received by someone,
> he/she doesn't see from: t***@test.be but sees from: test. But if
> he/she reply's, the mail goes to t***@test.be ?
>

Set the from to be in this format: "Test" <t***@test.com>