[coldbox-3.5.1] MailService / Attachments

I have to suggestions for the Mail Plugin:

  1. method “removeAttachments”. Often, I have to send twice the same Mail; once to the enduser and once to the site administrator. The site admin should get the attachment, the enduser not. If I first send the Mail to the administrator and do a “addAttachments”, they cannot be removed before sending to the enduser.

  2. general method to use the option “remove=true” in Mailattachments (introduced in CF 8.0.1)

Do you have some code on this? If you have please post it do I can add it as I am getting ready to release 3.5.2

Any code on this Juerg?

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

Luis,

actually, it’s .

Modifications have to be done in system/core/mail/Mail.cfc; “addAttachments” (Line 431ff):

addMailParam (file = arguments.files[x], remove=arguments.remove);

and then within “addMailParam”: (Line 478)

Thanks Juerg, added!

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano