Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP and SendGrid API
Message
De
18/07/2020 09:29:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
01675151
Message ID:
01675276
Vues:
88
Hi Simon,

Thanks a lot for that code. I tried so many things in the past and I can't remember exactly what went wrong :-). At least now I have your code.

>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?
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform