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!

how can you send email to exchange server 1

Status
Not open for further replies.

Glowworm27

Programmer
May 30, 2003
587
US
I want to use our exchange server to send email

I havn't been able to figure out how to access it with system.web.mail
I can access a normal smtp/pop mail server this way but cant seem to get to our exchange server.

Any thoughts


George Oakes
Goakes@TiresPlus.com = Programmer
George@1-Specialday.com = Mobile DJ
Check out this awsome .Net Resource!
 
SmtpMail.SmtpServer = "exchange_server";

SmtpMail.Send(strFrom, strTo, strSubject, strMessage);

this works fine for me.

f0z
 
Yeah that worked fine for me too Thanks.

Actually it was even easier, I just left

SmtpMail.SmtpServer = ""; blank and it used the default smtp server I have installed on the webserver.

George Oakes
Goakes@TiresPlus.com = Programmer
George@1-Specialday.com = Mobile DJ
Check out this awsome .Net Resource!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top