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

SMTP to Secure Server

Status
Not open for further replies.

chelseatech

Instructor
Aug 25, 2001
1,812
NZ
I've got an application that emails reports (as PDF, XLS, HTML, etc) to recipients using SMTP.

I save the document to disk and use SMTP and WinSock to send and attach the email.

Now one of my users wants to use this with a server that has authentication set on. Can I pass the user and password in the intitial conenction information or do I need to answer extra questions.

My Current dialog is..
EHLO servername
RSET
MAILFROM:<me@tek-tips.com>
RCPT TO: <you@tek-tips.com>
DATA
Subject: SMTP testing

etc...


Editor and Publisher of Crystal Clear
 
I guess I'm not quite sure why you aren't relaying through your own email server, not contacting the destination mail server directly.

But you really need to read through and understand the RFC associated with the AUTH verb. It would be issued immediately following the RSET verb in your command sequence.



pansophic
 
The application is developed and tested on my local network but sold and implemented on each client site.

The other clients all use SMTP with no problems so far, but one site their SMTP server requries authentication.

Thanks for the RFC reference. I'll check it out.


Editor and Publisher of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top