Email Sender

Topics: Developer Forum, User Forum
Coordinator
Jan 25 at 3:38 PM
The currently available demo includes an email sender using CDO which hasn't been supported by MS for a long time and just doesn't work anymore.

I used the final code from this page and it works ok. The only thing I added was a check if create winsock fails.

http://fox.wikis.com/wc.dll?Wiki~SendSmtpEmail
Coordinator
Jan 25 at 3:53 PM
I should point out that the above code which uses WINSOCK does not support SSL, but the email server I am using does not use SSL so it works for me.

I also tried using PowerShell/Windows Scripting Host (WSH). That also works and provides SSL if you need it. I tested it on GMAIL servers, but we have our own email server. It may not work on older Windows version though. My test system is Windows 10, but our server is actually an old machine so PowerShell does not work on it.

I can't seem to find where I got the source code from, but there is discussion about it here:

https://www.mail-archive.com/search?l=profox@leafe.com&q=subject:%22Re%5C%3A+Sending+SMTP+emails+from+VFP+using+PowerShell.%22&o=newest&f=1