Skip to content

Can I save a PHPMailer object in a database after sending failed? #2476

Answered by Synchro
JayEn84 asked this question in Q&A
Discussion options

You must be logged in to vote

No, PHPMailer doesn't have a built-in means of doing this (other than stock serialize/unserialize) so you will need to reconstruct messages. Before doing that though, I'd look into making better use of your own mail server. Mail servers are really good at retrying, far more efficient than anything you could write in PHP!

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Synchro
Comment options

@JayEn84
Comment options

@JayEn84
Comment options

@Synchro
Comment options

@Synchro
Comment options

Answer selected by JayEn84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants