Support » Plugin: Post SMTP Mailer/Email Log - Best Mail SMTP For WP » wp_mail_succeeded action not working with the plugin

  • Hey there hope you are doing well,

    I am trying to create some kind of log that collect the sent mails data from all my sites (I have around 40 sites).

    When i look at the normal wp_mail() function there is an action called ‘wp_mail_succeeded’ that allow me to collect the mails data.
    https://developer.wordpress.org/reference/functions/wp_mail/

    It works well when i am not using the plugin but it doesn’t work when i use the plugin.

    Is there a way to make it work? or maybe does your plugin overwrite that code and offer different action I can use when a successful mail is being sent?

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter yydevelopment

    (@yydevelopment)

    It’s seems like changing the sending method to phpmailer fix the problem.

    I have also found another problem that when i change it to phpmailer the option of “Send a Test Email” doesn’t works and return “SMTP Error: data not accepted.” error while the regular mails works well.

    Thread Starter yydevelopment

    (@yydevelopment)

    Hehe, seems like if i use PHPmailer i don’t have the option to fail safe email so i still rather use the regular PostSMTP option if it’s possible based on what i said on the first message.

    Thanks

    Plugin Support A.Tariq

    (@arsalantariq)

    @yydevelopment

    Hi,

    I have forwarded your query to my technical team will get back to you soon.

    Thanks

    Plugin Support A.Tariq

    (@arsalantariq)

    Hi @yydevelopment

    We have released the beta version, which includes the fix of this issue, it would be great if you download this version and let us know how it’s working for you.

    You can download Beta Version from here.

    Looking forward to your response.

    Thanks

    Thread Starter yydevelopment

    (@yydevelopment)

    Hey, thanks for giving it a try.

    I am not sure which bug you fixed but for now i have tried to do a “Send a Text Email” on both phpmailer and postsmtp and it seems like in the new versions none of the options work.

    At the moment i get this error:
    Transaction failed: Expected parameter value, got “\”

    It will probably be a good idea not to push that update.
    Thanks again

    Plugin Support A.Tariq

    (@arsalantariq)

    @yydevelopment

    Thanks for updating us, let me look into it and get back to you soon.

    Thanks

    Plugin Support M Haseeb

    (@haseeb0001)

    @yydevelopment Hi,

    Can you update the plugin and test it now? we have fixed this issue in our latest release.

    Thanks

    Thread Starter yydevelopment

    (@yydevelopment)

    Hey thanks for the update,
    I still get the error on the PHPMailer when i try to “send a test email”. The message i get not is “SMTP Error: data not accepted.”

    Thanks for trying to fix that, but i guess it is not an important problem so you don’t need to keep trying, the important thing is that the mails working well.

    Thanks

    Plugin Support M Haseeb

    (@haseeb0001)

    @yydevelopment thanks for updating us, will discuss this issue with my team and try to reproduce this again.

    Thanks

    Plugin Support M Haseeb

    (@haseeb0001)

    @yydevelopment

    We have released the beta version; you can test it on the staging website.

    You can read about our new version here.

    You download beta version from here, Scroll down and select the 2.1 Beta version.

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘wp_mail_succeeded action not working with the plugin’ is closed to new replies.