FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Envio emails
Posts: 96
Joined: Tue Oct 11, 2005 05:56 AM
Envio emails
Posted: Thu Nov 01, 2007 05:44 AM

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

José Martin Uriarte
jmuarg@yahoo.es
Posts: 1076
Joined: Fri Oct 07, 2005 10:41 PM
Re: Envio emails
Posted: Thu Nov 01, 2007 07:16 AM
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
William, Morales

Saludos



méxico.sureste
Posts: 96
Joined: Tue Oct 11, 2005 05:56 AM
Envio emails
Posted: Thu Nov 01, 2007 08:04 AM

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

José Martin Uriarte
jmuarg@yahoo.es
Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
Envio emails
Posted: Thu Nov 01, 2007 08:34 AM
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
Posts: 96
Joined: Tue Oct 11, 2005 05:56 AM
Envio emails
Posted: Thu Nov 01, 2007 11:04 AM

Muchas gracias,
No tendreis un ejemplo

José Martin Uriarte
jmuarg@yahoo.es
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Envio emails
Posted: Thu Nov 01, 2007 12:59 PM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1445
Joined: Mon Oct 10, 2005 02:38 PM
Envio emails
Posted: Thu Nov 01, 2007 03:01 PM
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.

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 96
Joined: Tue Oct 11, 2005 05:56 AM
Envio emails
Posted: Thu Nov 01, 2007 06:23 PM

Gracias a todos.
Lo probare y ya dire algo

José Martin Uriarte
jmuarg@yahoo.es
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Envio emails
Posted: Thu Nov 01, 2007 09:32 PM

Carlos,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1445
Joined: Mon Oct 10, 2005 02:38 PM
Envio emails
Posted: Fri Nov 02, 2007 10:28 AM
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.

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 96
Joined: Tue Oct 11, 2005 05:56 AM
Envio emails
Posted: Sat Nov 03, 2007 07:58 AM

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

José Martin Uriarte
jmuarg@yahoo.es
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Envio emails
Posted: Sat Nov 03, 2007 08:39 AM

José,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 96
Joined: Tue Oct 11, 2005 05:56 AM
Envio emails
Posted: Sat Nov 03, 2007 09:17 AM

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

José Martin Uriarte
jmuarg@yahoo.es
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Envio emails
Posted: Sat Nov 03, 2007 09:41 AM

José,

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

La estás usando con HB_ delante ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 96
Joined: Tue Oct 11, 2005 05:56 AM
Envio emails
Posted: Sun Nov 04, 2007 10:04 AM

Antonio.
He usado HB_Sendmail() y SendMail() y no me va de ninguna manera
Gracias

José Martin Uriarte
jmuarg@yahoo.es