In the sendMail method, the inMailFile parameter has two behaviors, if "!" (a bang or exclamation mark) is the first character, the text passed in inMailFile is executed using the A4D Execute command. If the first character is not a "!", inMailFile is considered a path to a text file which is executed by a include into command inside the sendMail method. However, since it is inside a method call, you don't have access to local variables or local collections (like $fusebox or $attributes), so you can't use existing fusebox centric files.

There is a simple solution: add global($fusebox; $attributes) at the top of a4d.utils.sendMail. I'll commit that to the next version.

Regards,

   Aparajita
   www.aparajitaworld.com

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


_______________________________________________
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