Amazingly simple! No Fuss, No muss... 8-)



On 31 July 2014 13:17, <[email protected]> wrote:

> Must have been a PEBKAC error.  (Problem Exists Between Keyboard And
> Chair).  I just grabbed the code from the Fox Wiki, put my info in, and it
> worked.  Here's the code (without my true email & password):
>
> TRY
>   LOCAL lcSchema, loConfig, loMsg, loError, lcErr
>   lcErr = ""
>   lcSchema = "http://schemas.microsoft.com/cdo/configuration/";
>   loConfig = CREATEOBJECT("CDO.Configuration")
>   WITH loConfig.FIELDS
>     .ITEM(lcSchema + "smtpserver") = "smtp.gmail.com"
>     .ITEM(lcSchema + "smtpserverport") = 465 && รณ 587
>     .ITEM(lcSchema + "sendusing") = 2
>     .ITEM(lcSchema + "smtpauthenticate") = .T.
>     .ITEM(lcSchema + "smtpusessl") = .T.
>     .ITEM(lcSchema + "sendusername") = "[email protected]"
>     .ITEM(lcSchema + "sendpassword") = "ProFoxRocks"
>     .UPDATE
>   ENDWITH
>   loMsg = CREATEOBJECT ("CDO.Message")
>   WITH loMsg
>     .Configuration = loConfig
>     .FROM = "[email protected]"
>     .TO = "[email protected]"
>     .Subject = "Test from MBSS"
>     .TextBody = "Testing email"
>     .Send()
>   ENDWITH
> CATCH TO loError
>   lcErr = [Error: ] + STR(loError.ERRORNO) + CHR(13) + ;
>     [Linea: ] + STR(loError.LINENO) + CHR(13) + ;
>     [Mensaje: ] + loError.MESSAGE
> FINALLY
>   RELEASE loConfig, loMsg
>   STORE .NULL. TO loConfig, loMsg
>   IF EMPTY(lcErr)
>     MESSAGEBOX("It worked", 64, "Success!")
>   ELSE
>     MESSAGEBOX(lcErr, 16 , "Error")
>   ENDIF
> ENDTRY
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/caajxvapkhgwn+shnrreugbq5vpdyozd_5g1ylgw6hp-9vgn...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to