I would recommend to use CDO 2000 instead. See
Send email with CDO 2000>I’m trying to use code in section 2 - title:
>WS2_32.DLL: sending email messages (SMTP, port 25)
>Of article described at:
>
http://fox.wikis.com/wc.dll?Wiki~SendSmtpEmail>
>to automate e-mail sending.
>
>I set, i.e.
>cServer = "mail.google.com"
>and ther the rest of code as the article.
>The following line:
>
>nStruct = gethostbyname(THIS.host)
>returns 0 (no IP address returned) so the rest of code can’t be processed.
>
--sb--