• Resolved dblinks

    (@dblinks)


    I’ve sent over 30K emails with the Post-SMTP plugin for a current client using Sendgrid – https://wordpress.org/plugins/post-smtp/

    My client asked a few weeks ago for a better solution and I found your “Notification” plugin. Very useful but have an issue/conflict maybe you can help us with.

    I don’t want to re-write my post over there so can you look at it please. I’ve gone over all your documentation and am using WP cron and debugging but I have no errors in your dashboard console. hmmm

    This is the thread – https://wordpress.org/support/topic/header-keys-sendgrid-api/

    I would love to hear if you have a comment to provide on how I may resolve this? It may be the work is to be done in the other plugin but I cannot understand the (status) logs of sending simple emails to users like “post updated”

    I appreciate your work on Notification plugin. I hope I can sort this out.

    thanks,
    stu

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Hi Stu!

    Thanks for the message. That’s an interesting case for sure.

    Will you be able to get the logs from SendGrid or Post SMTP plugin to see what header exactly has been sent? We’d know where does it come from.

    The other error with authorization is even weirder. Are you sure your API Key wasn’t revoked by someone else?

    Thread Starter dblinks

    (@dblinks)

    Thanks Kuba.

    I finally got an email to send correctly (Post pending review using your wizard).

    I unchecked the “Allow to configure email headers”. When that is checked I believe you are injecting something into the header and that is what breaks it?

    My client will decide now to test and move forward with her user base. I really like your plugin, most WordPress email plugins to send mail to WP Users are complicated and just don’t work the way a regular site owner expects.

    As far as the destruction of the Sendgrid API key I have not come to terms with the reason. There is only one place in the post-smtp plugin that I unchecked while troubleshooting. It says Prevent plugins and themes from changing this for the email from address and name. Not certain but it is the only other setting in that plugin I had toggled while testing. I am the only user with access to her sendgrid acct and I’ve never seen an API key fail. The only reason was that immediately seeing that notice I tried a straight test email from the post smtp plugin which failed. When I regenerated the key it worked. That is all I know.

    You can mark this as resolved, hoping with bigger mailings things will go smoothly. I also appreciate that you answered me quickly. 5 stars.

    Thanks,
    Stu

    I have a session transcript of the past failure but since the mail was not actually sent I cant read the recipient header.

    I’ve removed the sensitive data from this transcript.

    Session Transcript

    This is the conversation between Postman and the mail server. It can be useful for diagnosing problems. DO NOT post it on-line, it may contain your account password.
    
    https://api.sendgrid.com:443
    
    Header keys cannot contain non-ASCII characters and empty spaces.
    
    --Raw message follows--
    
    SendGridMailMail Object
    (
        [from:SendGridMailMail:private] => SendGridMailFrom Object
            (
                [name:SendGridMailEmailAddress:private] => Inspired to Paint
                [email:SendGridMailEmailAddress:private] => mail@inspiredtopaint.com
                [substitutions:SendGridMailEmailAddress:private] => 
                [subject:SendGridMailEmailAddress:private] => 
            )
    
        [subject:SendGridMailMail:private] => SendGridMailSubject Object
            (
                [subject:SendGridMailSubject:private] => Post Updated
            )
    
        [contents:SendGridMailMail:private] => Array
            (
                [0] => SendGridMailContent Object
                    (
                        [type:SendGridMailContent:private] => text/html
                        [value:SendGridMailContent:private] => <p>Critiques April 2021</p>
    <p>test</p>
    
                    )
    
            )
    
        [attachments:SendGridMailMail:private] => 
        [template_id:SendGridMailMail:private] => 
        [sections:SendGridMailMail:private] => 
        [headers:SendGridMailMail:private] => 
        [categories:SendGridMailMail:private] => 
        [custom_args:SendGridMailMail:private] => 
        [substitutions:SendGridMailMail:private] => 
        [send_at:SendGridMailMail:private] => 
        [batch_id:SendGridMailMail:private] => 
        [asm:SendGridMailMail:private] => 
        [ip_pool_name:SendGridMailMail:private] => 
        [mail_settings:SendGridMailMail:private] => 
        [tracking_settings:SendGridMailMail:private] => 
        [reply_to:SendGridMailMail:private] => SendGridMailReplyTo Object
            (
                [name:SendGridMailEmailAddress:private] => 
                [email:SendGridMailEmailAddress:private] => mail@inspiredtopaint.com
                [substitutions:SendGridMailEmailAddress:private] => 
                [subject:SendGridMailEmailAddress:private] => 
            )
    
        [personalization:SendGridMailMail:private] => Array
            (
                [0] => SendGridMailPersonalization Object
                    (
                        [tos:SendGridMailPersonalization:private] => Array
                            (
                                [0] => SendGridMailTo Object
                                    (
                                        [name:SendGridMailEmailAddress:private] => 
                                        [email:SendGridMailEmailAddress:private] => private@gmail.com
                                        [substitutions:SendGridMailEmailAddress:private] => 
                                        [subject:SendGridMailEmailAddress:private] => 
                                    )
    
                            )
    
                        [ccs:SendGridMailPersonalization:private] => 
                        [bccs:SendGridMailPersonalization:private] => 
                        [subject:SendGridMailPersonalization:private] => 
                        [headers:SendGridMailPersonalization:private] => Array
                            (
                                [] => 
                                [message-id] => a309564576d015c7f3e33r815d133d5a@inspiredtopaint.com
                            )
    
                        [substitutions:SendGridMailPersonalization:private] => 
                        [dynamic_template_data:SendGridMailPersonalization:private] => 
                        [has_dynamic_template:SendGridMailPersonalization:private] => 
                        [custom_args:SendGridMailPersonalization:private] => 
                        [send_at:SendGridMailPersonalization:private] => 
                    )
    
            )
    
    )
    • This reply was modified 2 years, 11 months ago by dblinks.
    Thread Starter dblinks

    (@dblinks)

    Update: While using the Sendgrid API we can send from any email@mydomain.com using the Post-SMTP plugin from mydomain.com. It appears the Notification plugin only honors the admin email. I ran a set of tests on another domain of mine and in fact when I changed the admin email to the desired (from) email we set up in Post-SMTP it started sending notifications as expected. This is important information for your plugin users.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict Header Keys & API Invalidation’ is closed to new replies.