-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong MIMEHeader Date #2978
Comments
I'd suggest not doing it this way – even if you manage to change it, it will break DKIM signatures. Save the properties of the message (recipients, body, subject), then build the message just before you send it (which you can do without changing your DB structure - just save these values in an array that you serialise and put in your |
thanks, the problem is that I have multiple attachements .... |
Keep the attachments and attach them later? |
this is not so confortable, because after the email is sent, the job is passed into a "a facturer / ready to invoice" folder on the server, and then the file can no more be reachable... |
You could store the attachments in the database along with the other data – PHPMailer is happy to add attachments from in-memory strings. You're already effectively storing attachments in there anyway as part of the encoded email message. |
It was a very easy solution to store the full email. For me is complex to store an undefined number of file in the database. I ll need to find another solution. Thanks you |
It's not hard to store an arbitrary number of files in the DB – for example: $fileData = [];
foreach ($files as $filename) {
$fileData[] = [
$filename => file_get_contents($filename);
];
}
$filestring = serialize($filedata); Now you can store the string in the DB – just make sure you use a big enough field to store it all in. |
I write an app that schedule email for later sending.
The php script do this when the user select the time to send :
And in my cron script I do :
All work fine, the mail is sent to the scheduled date and time, but ... in the email header (and unfortunately in outlook) the original date and time are shown :
It's not possible to change this before the $result = $mail->postSend();
Thanks you.
Cédric
The text was updated successfully, but these errors were encountered: