Hi Denis
I am using the Sergey Berezniker CDO2000 class to send email from VFP. A sample of some code is shown below. I am using SSL on port 465. The user is "apikey" and the password is a very long key they give you and the host is smtp.sendgrid.net.
lo=CreateObject("cuscdo2000")
lo.cFrom = "simonwhite@dciphercomputing.com"
lo.cSubject = "some subject"
lo.cServer="smtp.sendgrid.net"
lo.cUserName="apikey"
lo.cPassword="a very long key supplied by SendGrid"
lo.lUseSSL=1
lo.nServerPort=465
lo.cHTMLBody= "This is a <b>test</b> message."
lo.cTo="john@doe.com"
lo.Send()
>Hello Simon,
>
>I don't know why but I've never been able to use sendgrid and because of that I'm using SMTP2GO. Could you please share some code so I can see what I'm doing wrong when using SendGrid?
>
>Regards
>
>>Hi
>>
>>Yes I use it all the time. I just set the host to smtp.sendgrid.com and user name to "apikey" and the password to the long key they give you.
>>
>>Simon
>>
>>>Hi,
>>>anyone ever used VFP and SendGrid API to send emails? Any sample code out there?
Simon White
dCipher Computing