Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and SendGrid API
Message
 
To
16/07/2020 09:38:33
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
01675151
Message ID:
01675256
Views:
96
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform