Page 1 of 3

Envio emails

PostPosted: Thu Nov 01, 2007 5:44 am
by jmua
Hola foro.
Tengo que hacer una pequeña aplicacion para enviar emails diferidos.
Me gustaria poder hacerlo de forma que el operador no lo vea en pantalla mientras trabaja en otra cosa.
Alguien puede darme una idea o un ejemplo si lo tiene ya hecho.
Muchas gracias

Re: Envio emails

PostPosted: Thu Nov 01, 2007 7:16 am
by wmormar
jmua wrote:Hola foro.
Tengo que hacer una pequeña aplicacion para enviar emails diferidos.
Me gustaria poder hacerlo de forma que el operador no lo vea en pantalla mientras trabaja en otra cosa.
Alguien puede darme una idea o un ejemplo si lo tiene ya hecho.
Muchas gracias


jmua,

si usas xHarbour ultimas versión, podrías usar:

HB_SendMail()

espero te sirva

PostPosted: Thu Nov 01, 2007 8:04 am
by jmua
William.
Tengo el xHarbour que me vino con fwh10 y en la documentacion no encuentro hb_sendmail(), y claro si no conocco la funcion malamanete podre hacer nada.
Ademas es la primera vez que voy ha hacer esto
Me lo explicas un poco, tienes un ejemplo
Gracias

PostPosted: Thu Nov 01, 2007 8:34 am
by Baxajaun
Hola José,

lo tienes también en el CVS de Harbour, en Contrib/Tip.

Pero por si no lo tienes, lo puedes descargar de http://www.megaupload.com/es/?d=CD1770KE

Saludos,

Félix

PostPosted: Thu Nov 01, 2007 11:04 am
by jmua
Muchas gracias,
No tendreis un ejemplo

PostPosted: Thu Nov 01, 2007 12:59 pm
by Antonio Linares
HB_SendMail( cServer, nPort, cFrom, aTo, aCC, aBCC, cBody, cSubject, aFiles, cUser, cPass, cPopServer,nPriority, lRead, lTrace, lPopAuth)
Where:
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 -> Requered. IP or domain name of the pop3 mail server
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.
lPopAuth -> Optional. Flag to indicate that pop3 autentication is used. Standard setting is .T.

PostPosted: Thu Nov 01, 2007 3:01 pm
by FiveWiDi
Antonio Linares wrote:HB_SendMail( cServer, nPort, cFrom, aTo, aCC, aBCC, cBody, cSubject, aFiles, cUser, cPass, cPopServer,nPriority, lRead, lTrace, lPopAuth)
Where:
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 -> Requered. IP or domain name of the pop3 mail server
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.
lPopAuth -> Optional. Flag to indicate that pop3 autentication is used. Standard setting is .T.


Y bajo Harbour, no existe esta posibilidad?

Saludos
Carlos G.

PostPosted: Thu Nov 01, 2007 6:23 pm
by jmua
Gracias a todos.
Lo probare y ya dire algo

PostPosted: Thu Nov 01, 2007 9:32 pm
by Antonio Linares
Carlos,

Habrá que tomar el módulo de xHarbour y compilarlo en Harbour

PostPosted: Fri Nov 02, 2007 10:28 am
by FiveWiDi
Antonio Linares wrote:Carlos,

Habrá que tomar el módulo de xHarbour y compilarlo en Harbour


Gracias Antonio,

esperaré que alguna alma caritativa lo haga por mi; yo no tengo conocimientos para modifidar/alterar Harbour.

Saludos
Carlos G.

PostPosted: Sat Nov 03, 2007 7:58 am
by jmua
Antonio no me dijiste que HB_Sendmail() ya estava incluido en Xharbour, o entendi mal.
Me dice:
Error: Unresolved external '_HB_FUN_SENDMAIL' referenced from D:\EMAILS\MYOBJ\PRINCIPAL.OBJ

Gracias

PostPosted: Sat Nov 03, 2007 8:39 am
by Antonio Linares
José,

Tienes que enlazar la librería Tip.lib de xHarbour

PostPosted: Sat Nov 03, 2007 9:17 am
by jmua
Antonio quizas sea muy torpe pero añado la libreria tip.lib y me sigue cascando el mismo error.
Estoy utilizando verce y la añado en lib/obj de terceros, no veo otro sitio.
No tendras un ejemplo por hay
Gracias

PostPosted: Sat Nov 03, 2007 9:41 am
by Antonio Linares
José,

Ojo que la función se llama HB_Sendmail() y no SendMail()

La estás usando con HB_ delante ?

PostPosted: Sun Nov 04, 2007 10:04 am
by jmua
Antonio.
He usado HB_Sendmail() y SendMail() y no me va de ninguna manera
Gracias