You will notice this line $attachment = chunk_split(base64_encode(file_get_contents('attachment. Zip'))) and you change to suit your in memory file.
PHP-mixed- Content-Type: multipart/alternative; boundary="PHP-alt-" --PHP-alt- Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit This is simple text email message. --PHP-alt- Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit This is something with HTML formatting. --PHP-alt--- --PHP-mixed- Content-Type: application/zip; name="attachment.
Zip" Content-Transfer-Encoding: base64 Content-Disposition: attachment --PHP-mixed--- you will notice this line $attachment = chunk_split(base64_encode(file_get_contents('attachment. Zip'))); and you change to suit your in memory file.
Intriguing.. Thanks a lot! I found that FPDF can return a string, rather than writing to a file: fpdf. Org/en/doc/output.
Htm Is that what you would use? – Samuurai Jan 27 '10 at 12:13 That sounds good. – Pentium10 Jan 27 '10 at 13:33.
It's definitely possible. You could take any PHP mailer class that can handle attachments, and rewrite the addAttachment function where it reads data from file to accept your variable instead. Zend_Mail seems to be able to digest strings as attachments directly, without any rewriting.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.