Please try port 587 and see if it works better.
That is, change your line:
oSmtp.cMailServer="mail.smtp2go.com:587"
HTH
>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?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham