We've been sending mails using a4d.sendmail with the same routine with
2004 and a4d 4.5

Now with v11, a unicode db and a4d v5.0r15, that breaks.

We found before that the char(10) in the emailFooter filed was killing
the sendmail library method.

The field [EM_event]emailfooter is entered via the web and stored in
the db.  With no CR in that text field, it works fine.  Add carriage
returns and it breaks.

When entered via the web, you would get CR, not LF.

In either case, I just tried a test where I entered text in a text field, saved it to a db field, then sent that with sendmail and it worked fine.


$text := "!write(\"" + $subject + "\\n" + $body + "\")"

I can't quite figure out what you are trying to do here. That will definitely break, because the subject and body have to be separated by a LF, which is "\n", not "\\n". Also, there is no point in using "! write" with a static string. Just use "|" as the prefix to pass the text directly.

I think you want something like:

$text := "|" + $subject + "\n" + $body + "\n" + [EM_event]emailFooter

Kind regards,

   Aparajita
   www.aparajitaworld.com

   "If you dare to fail, you are bound to succeed."
   - Sri Chinmoy   |   www.srichinmoy.org

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to