Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email mymessage.From changed after sent out

Status
Not open for further replies.

leoliang

Programmer
Dec 9, 2003
27
CN
hi, there

I wrote an Email program for interest. my machine is in a domain, which uses exchange 2000 to manage email system. In my code, I have the following:

oMsg.From = Trim(tbxfrom.Text)
oMsg.To = Trim(tbxto.Text)
oMsg.Subject = Trim(tbxsubject.Text)
oMsg.Body = Trim(tbxcontent.Text)
oMsg.Cc = Trim(tbxCC.Text)
oMsg.Bcc = Trim(tbxbcc.Text)


all my addresses will be right except "from" address when the email reach to the recipients, I put my personal email address there, but the "from" address is replaced by my domain company address.

how could this happen? and is there any way to avoid that?

thanks a lot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top