Welcome Guest, Not a member yet? Register   Sign In
Is there a way to create an email attachment on the fly, without an actual file?
#1

[eluser]dallen33[/eluser]
I want to send an HTML email that also includes the HTML as an attachment. The Email class lets you attach files:
Code:
$this->email->attach('/path/to/photo1.jpg');
But what if I want to attach an HTML file without actually writing an HTML file to the file system?
#2

[eluser]Kamarg[/eluser]
You'd have to extend the email library. The built in email library only workes with files. Alternately, you can write a file, send the email, then delete all the files you created. Not the most elegant way to do it, but it probably takes less time/effort than extending the library.




Theme © iAndrew 2016 - Forum software by © MyBB