Page 1 of 1
Send email
Posted: Mon Feb 23, 2009 4:01 pm
by MANOLO
Hello, I could need the class smtp16 the Luis to send and email. somebody could help me.
i can't Send emails by fwh, somebody have a solution.
best regards.
Manolo
Sorry for my english.
Re: Send email
Posted: Mon Feb 23, 2009 4:36 pm
by Enrico Maria Giordano
Try:
FUNCTION HB_SendMail( cServer, nPort, cFrom, aTo, aCC, aBCC, cBody, cSubject, aFiles, cUser, cPass, cPopServer, nPriority, lRead, lTrace, lPopAuth, lNoAuth, nTimeOut, cReplyTo )
/*
cServer -> Required. IP or domain name of the mail server
nPort -> Optional. Port used my email server
cFrom -> Required. Email address of the sender
aTo -> Required. Character string or array of email addresses to send the email to
aCC -> Optional. Character string or array of email adresses for CC (Carbon Copy)
aBCC -> Optional. Character string or array of email adresses for BCC (Blind Carbon Copy)
cBody -> Optional. The body message of the email as text, or the filename of the HTML message to send.
cSubject -> Optional. Subject of the sending email
aFiles -> Optional. Array of attachments to the email to send
cUser -> Required. User name for the POP3 server
cPass -> Required. Password for cUser
cPopServer -> Required. Pop3 server name or address
nPriority -> Optional. Email priority: 1=High, 3=Normal (Standard), 5=Low
lRead -> Optional. If set to .T., a confirmation request is send. Standard setting is .F.
lTrace -> Optional. If set to .T., a log file is created (sendmail<nNr>.log). Standard setting is .F.
lNoAuth -> Optional. Disable Autentication methods
nTimeOut -> Optional. Number os ms to wait default 20000 (20s)
cReplyTo -> Optional.
*/
EMG
Re: Send email
Posted: Mon Feb 23, 2009 4:50 pm
by MANOLO
Hi enrico, thanks, but i have try it, but isn't work, i puted ct.lib but it didn't work.
do you have ct.lib for send me if it work for you.
best regards.
manolo
Re: Send email
Posted: Mon Feb 23, 2009 4:56 pm
by MANOLO
sorry i have a mistake is lib tip.lib. the problem is into class turl, When i Send and email the system is blocked in this point.
thanks.
Re: Send email
Posted: Mon Feb 23, 2009 6:24 pm
by Enrico Maria Giordano
Works fine here using latest xHarbour from CVS.
EMG
Re: Send email
Posted: Tue Feb 24, 2009 11:54 am
by MANOLO
Hello enrico, I will can use the last xharbour with fwh 7.10. or only I get the tip.lib.
thanks.
Manolo