send_at
-
Hi SendGrid / all,
I’m trying to send a message with a delay (send in one hour), so I’d like to use the
send_atattribute of thex-smtpapi. I’m sending with a valid API key, declared in my wp-config.php file, and messages are being send through sendgrid– they’re just ignoring thesend_atparameter. Is what I want possible? Am I using the wrong format, or is this not supported over API/apikey auth?I’ve tried a few things that don’t seem to be working… (note below, $sendTime is the epoch UTC time one hour in the future and I’ve verified this is set correctly.
$headers[] = 'X-SMTPAPI: { "send_at": '.$sendTime.' }'; wp_mail( $to, $subject, $message, $headers, $attachments );$headers[] = 'x-smtpapi-send_at: '.$sendTime; wp_mail( $to, $subject, $message, $headers, $attachments );$headers[] = "send_at: " . $sendTime; wp_mail( $to, $subject, $message, $headers, $attachments );Note, I am adding categories with:
$headers[] = 'categories: myCategory';
and that works successfully.Thanks a bunch for any guidance!
https://wordpress.org/plugins/sendgrid-email-delivery-simplified/
The topic ‘send_at’ is closed to new replies.