On Sun, 08 Apr 2012 08:41:00 -0400, Michael Savage wrote

>
> Has anybody done this?
>
> Can it be done?
>
> Any tips on how?
> Mike
>
>
Happy Easter Mike,

Have you tried CDO? i.e.

* http://fox.wikis.com/wc.dll?Wiki~CdoEmail
*
* http://www.portalfox.com/article.php?sid=2413

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") = "*****.*****@gmail.com"
    .ITEM(lcSchema + "sendpassword") = "**********"
    .UPDATE
  ENDWITH
  loMsg = CREATEOBJECT ("CDO.Message")
  WITH loMsg
    .Configuration = loConfig
    .FROM = "*****.*****@gmail.com"
    .TO = "*****.*****@gmail.com"
    .Subject = "Test from Gmail"
    .TextBody = "This is a test message with CDO " + ;
      "SSL authentication and encryption from Gmail"
    .Send()
  ENDWITH
CATCH TO loError
  lcErr = [Error: ] + STR(loError.ERRORNO) + CHR(13) + ;
    [Line: ] + STR(loError.LINENO) + CHR(13) + ;
    [Message: ] + loError.MESSAGE
FINALLY
  RELEASE loConfig, loMsg
  STORE .NULL. TO loConfig, loMsg
  IF EMPTY(lcErr)
    MESSAGEBOX("The message was sent successfully", 64, "Notice")
  ELSE
    MESSAGEBOX(lcErr, 16 , "Error")
  ENDIF
ENDTRY

G.


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CAPUo4G6EnZpyGxOx8BTj=cif7qkv6tvkpxyq4dlu+2b-kzf...@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