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!

SMTP Server

Status
Not open for further replies.

rene316

Programmer
Jan 14, 2002
81
US
I have some code for an email notification, but the code assumes the outgoing smtp server is local. How would I code it to use our smtp server that is hosted by someone else. This is what I am doing to set the smtp server...

SmtpMail.SmtpServer = "smtp.domain.com";

The smtp isnt local, so how would I go about letting the code know that it is an external smtp server. Any help is appreciated.
Thanks in advance.
 
Is there a reason why you need to let it know that it is remote? I would think that you can just set it to the correct server, and set up your authentication and it should work...I'm not really sure, since we host our own mail server, but it should still work...if the problem is that it can't locate the domain, you may try directly loading the IP address.

Good luck,
Kevin

- "The truth hurts, maybe not as much as jumping on a bicycle with no seat, but it hurts.
 
kmfna is right.
The condition is that server (SMTP) must be reached in some way from the machine that run the code.
The following statements are enough:
SmtpMail.SmtpServer = "mailhost.abc.comp.ca";
SmtpMailDirect.SmtpServer = "mailhost.abc.comp.ca";
If the server is on another domain then ask your network administrator how you can get reach that domain or use the IP address.
-obislavu-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top