Hi Folks,

After getting some offline help from Tracy, I have figured out how to make this work pretty well using the "Send SMTP Email" code on the Foxpro Wiki (at http://fox.wikis.com/wc.dll?Wiki~SendSmtpEmail#vfpsmtpken). For future reference, here's what I learned:

I spent a lot of time searching for resources to explain the AUTH LOGIN protocol. Many sites I found were unclear or incomplete. This one is very good:

www.samlogic.net/articles/smtp-commands-reference-auth.htm

In particular I got sidetracked by other references indicating that you can chain together the AUTH LOGIN command with the username and password in one command. Perhaps this works for some servers but it did not work with any of the three that I tried it with.

I also learned that my internal email server is probably configured to work as an open relay (Don't PANIC!! It's internal only; it has no external IP address and is on a server that's behind a NATing router; and it will reject any email not sent to an address within its own domain), therefore, although it will accept an AUTH LOGIN sequence, it will work without it.

The code on the wiki does not display output from the SMTP server if a command is successful; it took me a while to realize that I needed to make it do that in order to find out what login methods a server "advertises". Once I did that, I could then cause the code to proceed if "AUTH LOGIN" was one of the options, and to quit (with a message saying my program doesn't support the server's requirements) if not. So I will make a note on the wiki about that.

At some future point I could work on code to handle other authentication protocols, but this is doing what I need it to do for now.

Thanks for everybody's input.

Ken Dibble
www.stic-cil.org


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to