Welcome Guest, Not a member yet? Register   Sign In
Email class: add attachment from string
#1

[eluser]Arjen van Bochoven[/eluser]
Maybe a feature request item:

I found it is not possible sending email atttachments that are not files. I want to send a .csv file that is generated from form data. I found it somewhat clunky to generate an intermediary file to get the attachment to be sent. It would be nice if the CI email class would accept a string or array as attachment.

Something like:

Code:
$this->email->addstringattachment( string, filename )

It is hard to subclass Email.php to add this feature because fetching file attachments is hardcoded into _build_message().

Anyone solved this?


Messages In This Thread
Email class: add attachment from string - by El Forum - 08-31-2008, 01:26 AM
Email class: add attachment from string - by El Forum - 08-31-2008, 03:04 AM
Email class: add attachment from string - by El Forum - 08-31-2008, 03:34 AM
Email class: add attachment from string - by El Forum - 08-31-2008, 05:18 AM
Email class: add attachment from string - by El Forum - 08-31-2008, 04:06 PM
Email class: add attachment from string - by El Forum - 08-31-2008, 04:29 PM
Email class: add attachment from string - by El Forum - 08-31-2008, 04:38 PM
Email class: add attachment from string - by El Forum - 09-01-2008, 11:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB