• Hi,

    I was using the Sendgrid plugin to send all emails, and now I installed the Newsletter plugin and it seems that there is a conflict between them.

    When I deactivate Sendgrid the “diagnostic test” works fine, but when it is activated the tests give me the following error:

    Undefined index: sender_email in /home/citechpasteur/public_html/wp-content/plugins/newsletter/main/diagnostic.php on line 93
    PHP Fatal error: Cannot redeclare class SMTP in /home/citechpasteur/public_html/wp-includes/class-smtp.php on line 35

    Can you help me? Thanks.

    https://www.ads-software.com/plugins/newsletter/

Viewing 3 replies - 1 through 3 (of 3 total)
  • So, PHP will only allow you to declare a class with a unique name. It looks like the newsletter plugin is using the same class name as the SendGrid plugin, “SMTP”.

    This is not ideal, but it definitely happens, especially when plugins are built independently of each other.

    I think the better option here is to uninstall SendGrid plugin and then use the Newsletter SendGrid extension – https://www.thenewsletterplugin.com/plugins/newsletter/sendgrid-module

    Plugin Author Stefano Lissa

    (@satollo)

    No, both include the php mailer of wordpress, but sendgrid include it with “include” and not with “require” (apparently).

    I’ll check the code on my side.

    Newsletter does not requires and neither uses the sendgrid plugin features, just set their SMTP settings on main Newsletter config.

    Thread Starter Marcio Marim

    (@marciomarim)

    The thing is I need to send all emails with Sendgrid, and not only the Newsletter emails.
    Any idea how I could get both running?
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict with SendGrid Plugin’ is closed to new replies.