Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send Email Through Office 365
Message
De
28/01/2015 13:09:00
 
 
À
28/01/2015 11:54:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01613984
Message ID:
01614523
Vues:
39
>>Check https://www.berezniker.com/content/pages/visual-foxpro/send-email-cdo-2000
>>
>>>I need to send an email programmatically to several people. I used to use an old version of wwIPStuff. Now, that version does not work anymore, because now we use Office 365 and to send emails it needs authentication and use of SSL (TLS) which causes that version of wwIPStuff remain useless. I am looking for a similar free tool, that would let VFP 9 send those e-mails. It may be DLL, COM server, Windows API or VFP pure.
>>>
>>>Does anybody can help me?
>>>
>>>TIA
>
>Hi Sergey,
>
>I tried the CDO 2000 class (I got it from: https://www.berezniker.com/content/pages/visual-foxpro/cdo-2000-class-sending-emails). After fixing the #DEFINES. I run it just like the example:
>
>
>loMail= NEWOBJECT("Cdo2000", "Cdo2000.fxp")
>loMail.cSERVER= "smtp.office365.com"
>loMail.lUSESSL= .T.
>loMail.nAUTHENTICATE=1
>loMail.cUSERNAME= "myuser@mydomain.pe"
>loMail.cPASSWORD= "xxxxxx"
>loMail.cFROM= "myuser@mydomain.pe"
>loMail.cTO= "userone@anotherdomain.pe,usertwo@mydomain.pe"
>loMail.cSuBJECT= "E-mail CDO 2000 test"
>loMail.cTEXTBODY= "This is a text body."+ CHR(13) + CHR(10) + "It'll be displayed if HTML body is not present or by text only email clients"
>loMail.cATTACHMENT= ""
>
>
>When I issue:
? loMail.Send()
It shows 1. When I issue:
? loMail.geterror(1)
It shows: "ERROR: :1429 # send # 187 # 0x00000220 The "SendUsing" configuration value is invalid."
>
>What is wrong? Can you help me with that?

Well, it looks that some HTML code that was on the code that I copied from your blog site made the class not to work, now that I issue loMail.Send() it takes about 2 minutes but at last it returns 1 and the error is "ERROR: :1429 # send # 187 # 0x00000213 The transport failed to connect to the server." I checked out the values for each property and they all are fine. By the way Office 365 uses TSL security and CDO apparently "only" supports SSL. May that cause the error?

TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform