Página 1 de 1

GPF Error on Blat - password with blank spaces

Publicado: Mié Nov 23, 2011 6:06 pm
por emeasoft
Hello Xailers,
I'm testing Blat mail, but when try to send an e-mail through an account with a password that has empty spaces (eg.: abc 123 def), it gives me an GPF error.
I made an example to show the problem.
Thanks in advance,
Juliano

Attached files Blat.zip (9.5 KB)Â

GPF Error on Blat - password with blank spaces

Publicado: Mié Nov 23, 2011 6:44 pm
por ignacio
emeasoft escribió el mié, 23 noviembre 2011 18:06Hello Xailers,
I'm testing Blat mail, but when try to send an e-mail through an account with a password that has empty spaces (eg.: abc 123 def), it gives me an GPF error.
I made an example to show the problem.
Thanks in advance,
Juliano
Juliano,
I'm afraid I can not reproduce your error. I only have a GPF when the BLAT.DLL is not present on the application directory. BTW, I solve that problem with this code on METHOD Send():
LOCAL cInstall
LOCAL cSend
LOCAL cTemp := ""
IF Empty( ::hLib ) .OR. Empty( ::pfnSend )
WITH OBJECT ErrorNew()
:SubSystem := "XAILER"
:SubCode := 0
:Severity := ES_ERROR
:Description := "TBlatMail Invalid object (BLAT.DLL may be missing)"
:Operation := "TBlatMail:Send()"
Eval( ErrorBlock(), HB_QWith() )
END WITH
ENDIF

Regards,

GPF Error on Blat - password with blank spaces

Publicado: Jue Nov 24, 2011 11:06 am
por emeasoft
Hello Ignacio,
I forgot to mention, I'm using blat version 2.75.
Today I tested with version 2.62 and the error did not ocurred,but the email was not sent(the send() returns False).
Thanks for the help,
Juliano

GPF Error on Blat - password with blank spaces

Publicado: Jue Nov 24, 2011 5:59 pm
por ignacio
emeasoft escribió el jue, 24 noviembre 2011 11:06Hello Ignacio,
I forgot to mention, I'm using blat version 2.75.
Today I tested with version 2.62 and the error did not ocurred,but the email was not sent(the send() returns False).
Thanks for the help,
Juliano
See the error.log (property lLog to TRUE)
Regards,

GPF Error on Blat - password with blank spaces

Publicado: Jue Nov 24, 2011 8:10 pm
por emeasoft
The log message:
2011.11.24 17:02:44 (Thu)------------Start of Session-----------------
Blat saw and processed these options, and was confused by the last one...
-to [email=email2@...]email2@...[/email]
-subject E-mail Test
-u [email=email@...]email@...[/email]
-pw pass
with
Do not understand argument: with
2011.11.24 17:02:44 (Thu)-------------End of Session------------------
The password i used was "pass with spaces"
I think Blat cant deal with passwords with spaces, I tried adding "", '', but nothing of this works, always the same error.
Regards,
Juliano

GPF Error on Blat - password with blank spaces

Publicado: Vie Nov 25, 2011 12:15 pm
por ignacio
emeasoft escribió el jue, 24 noviembre 2011 20:10The log message:
2011.11.24 17:02:44 (Thu)------------Start of Session-----------------
Blat saw and processed these options, and was confused by the last one...
-to [email=email2@...]email2@...[/email][/email]
-subject E-mail Test
-u [email=email@...]email@...[/email][/email]
-pw pass
with
Do not understand argument: with
2011.11.24 17:02:44 (Thu)-------------End of Session------------------
The password i used was "pass with spaces"
I think Blat cant deal with passwords with spaces, I tried adding "", '', but nothing of this works, always the same error.
Regards,
Juliano
Juliano,
Since BLAT receives all the information on a string that needs to be parsed. I'm almost sure that Blat just cant handle passwords with spaces as you said. I'm been googling for some time but I did not find any thing, sorry.
Regards,

GPF Error on Blat - password with blank spaces

Publicado: Vie Nov 25, 2011 2:29 pm
por jlalin
Juliano,
check with the attached obj.
Regards,
José Lalí­n
--

Attached files Blat25.zip (3.5 KB)Â

GPF Error on Blat - password with blank spaces

Publicado: Vie Nov 25, 2011 4:26 pm
por emeasoft
Thanks for the help Ignacio.
Jose, I think you forgot to attach the obj.
Thanks,
Juliano

GPF Error on Blat - password with blank spaces

Publicado: Vie Nov 25, 2011 8:03 pm
por jlalin
Juliano,
sorry, I had posted it on the newsgroup and seems the web forum couldn't
catch it correctly. It should be there now.
Regards,
José Lalí­n

GPF Error on Blat - password with blank spaces

Publicado: Lun Nov 28, 2011 10:44 am
por emeasoft
It worked very well with this obj Jose, I tested it using the version 2.76.
Thanks for the help,
Juliano

GPF Error on Blat - password with blank spaces

Publicado: Lun Nov 28, 2011 1:07 pm
por jlalin
Juliano,
many thanks for the info. I'm going to upload the fix to SVN.
Regards,
José Lalí­n

GPF Error on Blat - password with blank spaces

Publicado: Lun Nov 28, 2011 6:41 pm
por emeasoft
Glad to help. =)
Regards,
Juliano