Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
West Wind SMTP
Message
From
16/05/2022 10:30:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
West Wind SMTP
Miscellaneous
Thread ID:
01684376
Message ID:
01684376
Views:
104
I want to send emails by using West Wind Internet and client tools made by Rick Strahl.

I have an account on SMTP2GO.com

Here is what I'm trying and it doesn't work.

DO wwSmtp && load libraries

LOCAL loSMTP as wwSmtp
loSmtp=CREATEOBJECT("wwSmtp")
loSmtp.nMailMode = 0 && 0 - .NET wwSmtp (defult), 2 - classic wwIPStuff mode (no-SSL)

loSmtp.cMailServer="mail.smtp2go.com:465"
loSmtp.cSenderEmail="Here I put my email address"
loSmtp.cSenderName="Denis"
loSmtp.cUsername = "Here I put my email address with SMTP2GO"
loSmtp.cPassword = "Here I put the password that goes with my cUserName"
loSmtp.lUseSsl = .T.
loSmtp.cRecipient="email address of the person receiving that email"
loSmtp.cSubject="Bonne journée!"
loSmtp.cContentType = "text/html"
loSmtp.cMessage="Contenu avec des accents comme é et à"


llResult = loSmtp.SendMail()

IF !llResult
Wait window loSmtp.cErrorMsg
ENDIF

After a couple of seconds I receive this message
loSmtp.cErrorMsg = waiting delay of the operation has expired

I tried with nMailMode = 2. Result was worst. Endless loop.

Anyone has a clue?
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Next
Reply
Map
View

Click here to load this message in the networking platform