I want to do this:
$mail = new PHPMailer; $mail->AddAttachment('text in file', 'file.txt');
therefore, an attachment can have dynamic content. I can use only the real file as an application. Obviously, the real file is static, I want to dynamically generate some content and attach it to the mail. There must be some way to do this, I think this is not such an obscure feature. Does anyone know how?
enrey source share