FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Send email
Posts: 87
Joined: Sun Oct 09, 2005 08:49 PM
Send email
Posted: Mon Feb 23, 2009 04:01 PM

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.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Send email
Posted: Mon Feb 23, 2009 04:36 PM
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
Posts: 87
Joined: Sun Oct 09, 2005 08:49 PM
Re: Send email
Posted: Mon Feb 23, 2009 04:50 PM

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

Posts: 87
Joined: Sun Oct 09, 2005 08:49 PM
Re: Send email
Posted: Mon Feb 23, 2009 04:56 PM

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.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Send email
Posted: Mon Feb 23, 2009 06:24 PM

Works fine here using latest xHarbour from CVS.

EMG

Posts: 87
Joined: Sun Oct 09, 2005 08:49 PM
Re: Send email
Posted: Tue Feb 24, 2009 11:54 AM

Hello enrico, I will can use the last xharbour with fwh 7.10. or only I get the tip.lib.

thanks.

Manolo

Continue the discussion