The manual for sendMail says "If inHeaders is passed, it should be
a semicolon-delimited list of header:value pairs."
A header such as 'Content-Type: multipart/alternative; boundary="---
=123456"; charset="ISO-8859-1"' contains semi-colons itself, which
is causing the sendMail routine to hang while trying to parse.
Steve Alex mentioned modifying a copy of the sendMail library, but
I'd rather keep and use the originals, if possible. Otherwise my
thought is to copy and modify the sendMail function to delimit on a
different character.
The header parsing takes place in A4D_SendMail in the shell. I will
change the delimiter to be LF, since that is the HTTP delimiter for a
header.
Change line 90 of A4D_SendMail to this:
$pos:=Position(Char(Line feed );$inHeaders)
I will commit this change to the next version, so you can use it safely.
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoylibrary.com
_______________________________________________
Active4D-dev mailing list
Active4D-dev@aparajitaworld.com
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/