Author | Topic: SMTP Class Ready | |
---|---|---|
Edgar Borger | SMTP Class Ready on Mon, 20 Jun 2011 14:35:12 -0300 Hello Xbase community, We are happy to announce a new Xbase++ class that will send email messages via any SMTP server, including gmail, using Windows Winsock functions, no external Dll's required. The new XbpSMTP class is very simple to use, ******************************************************************************* oSmtp := xbpSMTP():New() Creates the SMTP object oSmtp:Create( cHost, cUser, cPass ) Tell the class then SMTP server, username and password. oSmtp:SendMail( cTo, cFrom, cSubject, cMsg ) Send the message oSmtp:Destroy() End the process ******************************************************************************* Emails can be in any format, including text and html, multiple recipients, ccopy, or bccopy are allowed, as well as multiple attachments. The source will be distributed, so you can adapt for your needs. Sending emails has been tested, with normal SMTP servers, Hotmail, Gmail, and Yahoo. a Demo version can be downloaded from our site : http://www.borger.com.br/softsupply if you have any questions, please feel free to write us at any time. Best regards, Edgar |