Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send Email Through Office 365
Message
From
28/01/2015 11:54:03
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01613984
Message ID:
01614506
Views:
41
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform