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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Winsock email question

Status
Not open for further replies.

gymbeef

Technical User
Sep 18, 2002
33
0
0
US
Found some sample code that directly uses winsock to send a simple SMPT email message, but there's one line I'm not sure how to define. The code starts:

Sub...

WinSock1.RemoteHost = strEmailServer
Winsock1.RemotePort = 25
Winsock1.Connect

...

If a separate server isn't being used, and one is just sending mail directly from their home desktop, would strEmailServer then just be the local computer name? Or does RemoteHost specifically look for a remote server and I need to use a different property for a "local" machine?

 
The remote host server must be the SMTP server.

In your case, in which you don't have a LAN, you need to point it to the SMTP server of your ISP (mail server).

Patrick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top