Is it possible to generate an email and add this email to another email's attachment?
I have only found ways to add files like pdf or jpeg but not a mail.
EDIT: my problem is that I can't store the email on the server to add it to the attachment
Is it possible to generate an email and add this email to another email's attachment?
I have only found ways to add files like pdf or jpeg but not a mail.
EDIT: my problem is that I can't store the email on the server to add it to the attachment
As the comments say, it's exactly like adding any other attachment, and it's up to you to get the message into a suitable external text file (or string).
The only differences are that external email messages are usually saved with a .eml
extension, and should use the message/rfc822
MIME type, which PHPMailer knows about and will set automatically given a file with a .eml
extension.