Support » Plugin: bbPress Notify (No Spam) » How can I send E-mail by Sendgrid?

  • Resolved ronza

    (@ronza)


    I don’t want to send the e-mails by the administrator email from wordpress.

    I have an account on sendgrid and the official plugin installed and all the emails are sent from it.

    Just your plugin that is not being sent by sendgrid.

    Can you help me? Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vinny

    (@usestrict)

    Hi @ronza,

    You can change the From address via a filter:

    add_filter( 'bbpnns_extra_headers', function($headers, $recipients, $subject, $body){
        $headers[0] = 'From: Sender Name <sender@email.com>';
        return $headers;
    }, 10, 4 );

    Just change ‘Sender Name’ to the name of the sender, and ‘sender@email.com’ to the email address you want.

    Cheers,
    Vinny

    Plugin Author Vinny

    (@usestrict)

    In case I misunderstood the issue…

    Just your plugin that is not being sent by sendgrid.

    bbpnns uses wp_mail() to send messages, so messages will be sent using whatever is controlling wp_mail().

    Cheers,
    Vinny

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.