How to get forms to send attachments to email recipients?

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

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
concrete5 actually uses the zend mailing library, which has really good support for attachments. i used it on the mailing list package:

try doing some google searching the zend framework mail attachments
Fernandos replied on at Permalink Reply
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. and

Seems that I've missed line 133 in :

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


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

I should have looked better at the ZF Docs.
Vinylburn replied on at Permalink Reply
So do we delete this statement in order for the attachment to be sent with the email data?