How to get forms to send attachments to email recipients?

Permalink
When someone submits a form with a file attached the actual file does not get emailed to the recipients. I have to go into the dashboard to retrieve the form.

How do I force the form to send the attachment to the email recipients?

Thank you.

View Replies:
Fernandos replied on at Permalink Reply
Fernandos
Hi!

The Mail api of C5 doesn't send attachments afaik. I fear you've to use a different api, like phpmailer.
Tony replied on at Permalink Reply
Tony
concrete5 actually uses the zend mailing library, which has really good support for attachments. i used it on the mailing list package:http://inneroptics.net/concrete5/mailing-list/...

try doing some google searching the zend framework mail attachments
Fernandos replied on at Permalink Reply
Fernandos
hmm didn't know that Tony, I've searched through all files within the Mail folder + the MailHelper, then I crawled the C5 API but didn't found it documented.

It's not documented in the c5 api then.
http://www.concrete5.org/api/Helpers/MailHelper.html... andhttp://docs.concrete5addons.com/classMailHelper.html...

Seems that I've missed line 133 in :
/concrete/libraries/3rdparty/Zend/Mail/Transport/Abstract.php

But you've to admi that this is really hard to find, if you don't explicitely look at the ZF Docs.

cheers
Fernandos

if ($this->_mail->hasAttachments) {
                    $type = Zend_Mime::MULTIPART_MIXED;
...


I should have looked better at the ZF Docs.
http://framework.zend.com/manual/en/zend.mail.attachments.html...
Vinylburn replied on at Permalink Reply
Vinylburn
So do we delete this statement in order for the attachment to be sent with the email data?