main logo
Subject: Re: Blat.dll woes
Author: "Michael J. Babcock"
Posted: 2004/05/31 11:10:13
 
View Entire Thread
New Search


Once I got the syntax right, it seemed to be fine! Sometimes too many
options get in the way... ;-)

--Michael


Alan Bourke wrote:
> If you want to squirt SMTP mails straight out, instead of fighting with
> BLAT.DLL why not use this:
>
> http://activex.sourceforge.net/essmtp.html
>
> Sample VFP Code::
>
>
> objSMTP = CREATEOBJECT("essmtp.essmtpctrl.1")
>
> objSMTP.DestinationAddress = "email /at/ address DOT com"
> objSMTP.Domain = "mydomain.ie"
> && This is for your ISP who you're forwarding through
> objSMTP.SMTPServer = "159.134.198.135"
> && Your ISP's SMTP server.
> objSMTP.SourceAddress = "me@mydomain.ie"
> objSMTP.SourceMailer = "Source description text for the email
> header"
> objSMTP.SourceName = "Sender display name (as opposed to email
> address), just text."
> objSMTP.Subject = "Subject Line"
>
> objSMTP.AddAttachment("c:\my attachment.txt", 0)
>
> objSMTP.MailData = "Email body text."
>
> x = objSMTP.SendMail
>
> IF x != 1
>
> \ ALLTRIM(STR(objSMTP.ErrorNo))
>
> ENDIF
>
> objSMTP = .NULL.
>
> RETURN
>
> I think it's free if you register it. Of course this involves
> registering an OCX.
>


--

Michael J. Babcock, MCP
President/CSA, MB Software Solutions, LLC
http://mbsoftwaresolutions.com
"Bettering your bottom line by helping you work smarter, not harder,
with custom software solutions."


 
©2004 Michael J. Babcock
<-- Prior Message New Search Next Message -->