Search found 14 matches: bfailure

Return to advanced search

... ) } oOutMail:bConnected := { || oWndMdi:SetMsg( "Connected" ) } oOutMail:bDone := { || oWndMdi:SetMsg( "Message sent successfully" ) } oOutMail:bFailure := { || oOutMail:nStatus := 7 } oOutMail:SendMail( cFROM,; // From { cTO },; //, cPMOEMAIL, cSPOEMAIL },; // To cMESSAGE,; // Msg Text cSUBJECT,; ...
by Rick Lipkin
Mon Dec 08, 2008 7:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tsmtp ( again )
Replies: 3
Views: 1410

Tsmtp ( again )

... ) } oOutMail:bConnected := { || oWndMdi:SetMsg( "Connected" ) } oOutMail:bDone := { || oWndMdi:SetMsg( "Message sent successfully" ) } oOutMail:bFailure := { || oOutMail:nStatus := 7 } oOutMail:SendMail( cFROM,; // From { cTO },; //, cPMOEMAIL, cSPOEMAIL },; // To cMESSAGE,; // Msg Text cSUBJECT,; ...
by Rick Lipkin
Mon Dec 08, 2008 6:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Tsmtp ( again )
Replies: 3
Views: 1410

... * Mejora: En el método Failure() de la clase TSmtp. Los parámetros oSocket, nWSAError y cReply son proporcionados ahora cuando se evalua ::bFailure desde la función Failure(). * Nuevo: Un nuevo e interesante ejemplo samples\Signatur.prg que muestra como capturar una firma desde tus aplicaciones. ...
by Antonio Linares
Mon Oct 20, 2008 5:44 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN October / Octubre 2008 (8.10)
Replies: 1
Views: 3306

Yury,

thanks for your input, but it still doesnt work here :-(
When no authentification is required, there are no problems and the blocks bConnected and bDone are evaluated. But with authentification, they both aren't evaluated, but also bFailure doesn't "show up"...
by gkuhnert
Sun Oct 12, 2008 5:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with tsmtp-class
Replies: 6
Views: 1655

New FTDN October / Octubre 2008 (8.10)

... the filter expression. Now it is ok. * Enhancement: Class TSmtp Method Failure(). Parameters oSocket, nWSAError, cReply are supplied now when ::bFailure is evaluated from Failure(). * New: A very interesting new example in samples\Signatur.prg that shows how to capture a signature from your ...
by Antonio Linares
Sun Oct 12, 2008 8:10 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN October / Octubre 2008 (8.10)
Replies: 1
Views: 3306

Rick, Please change bFailure this way: oOutMail:bFailure := { | oSocket, nError, cReply | LogFile( "log.txt", { nError, "--", cReply, ProcName( 2 ) } ), oOutMail:nStatus ...
by Antonio Linares
Tue Oct 07, 2008 8:52 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping SMTP e-mail error
Replies: 43
Views: 7619

Rick, James, Class TSmtp Method Failure() should be modified as it receives three parameters: oSocket, nWSAError, cReply but when the bFailure codeblock is evaluated from inside it, these parameters are not supplied to the codeblock. This is the proposed change: If ::bFailure != nil ...
by Antonio Linares
Mon Oct 06, 2008 7:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping SMTP e-mail error
Replies: 43
Views: 7619

Rick, took your suggestion and I must have some syntactical error where 7 is ST_QUIT Your suggestion : oOutMail:bFailure := { || LogFile( "mail.log", {oOutMail:aTo:[1] + " Failed"}), oOutMail:nStatus := ST_QUIT } Trying to get it to work .. unfortunitly the LogFile fires everytime ...
by James Bott
Mon Oct 06, 2008 1:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping SMTP e-mail error
Replies: 43
Views: 7619

... to do what you suggest ... James .. I took your suggestion and I must have some syntactical error where 7 is ST_QUIT Your suggestion : oOutMail:bFailure := { || LogFile( "mail.log", {oOutMail:aTo:[1] + " Failed"}), oOutMail:nStatus := ST_QUIT } Trying to get it to work .. unfortunitly the LogFile ...
by Rick Lipkin
Sun Oct 05, 2008 11:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping SMTP e-mail error
Replies: 43
Views: 7619

Rick,

Try something like this:

oOutMail:bFailure := { || LogFile( "mail.log", {oOutMail:aTo:[1] + " Failed"}), oOutMail:nStatus := ST_QUIT }

Regards,
James
by James Bott
Sat Oct 04, 2008 7:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping SMTP e-mail error
Replies: 43
Views: 7619

Antonio oOutMail:bFailure := { || oOutMail:nStatus := 7 } is what I inserted .. st_quit was defined in tsmpt as 7 and I got a run time of this ( unfortunitly ) :( Rick Application =========== Path and name: C:\FOX\PMOSQL\PmoW32.Exe ...
by Rick Lipkin
Fri Oct 03, 2008 6:10 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping SMTP e-mail error
Replies: 43
Views: 7619

Antonio

Please forgive my ignorance .. where do you want me to place this ??
Rick,

Please try this:

oOutMail:bFailure := { || oOutMail:nStatus := ST_QUIT }
_________________
regards, saludos

Antonio Linares
www.fivetechsoft.com
by Rick Lipkin
Fri Oct 03, 2008 4:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping SMTP e-mail error
Replies: 43
Views: 7619

Rick,

Please try this:

oOutMail:bFailure := { || oOutMail:nStatus := ST_QUIT }
by Antonio Linares
Fri Oct 03, 2008 1:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping SMTP e-mail error
Replies: 43
Views: 7619

... .. Antonio is on the right track in that I can not check the internals of SMTP, however, when you look at the tsntp class .. you will see DATA bFailure AS CODEBLOCK INIT NIL and ::bFailure is evaluared in method METHOD Failure( oSocket, nWSAError, cReply ) CLASS TSmtp and it looks like my error ...
by Rick Lipkin
Fri Oct 03, 2008 12:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Trapping SMTP e-mail error
Replies: 43
Views: 7619

Return to advanced search