• Resolved orangeferdi

    (@orangeferdi)


    Hello,

    I want to send a mail in my Plugin after submitting a form. When I use the php function mail($to, $subject, $message, $headers) The mail is sent, but ends up in the SPAM. So I wanted to send it via SMTP and found your plugin.
    When I use the wp_mail() function then the mail is not even sent. What causes this issue?

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, did you check to make sure your settings are correct? Do you see any error messages? Have you tried sending a test e-mail via the plugin?

    Thank you

    Thread Starter orangeferdi

    (@orangeferdi)

    My settings are correct, yes. I tried to copy the code from your plugin to mine but it does not work. And the test e-mail does work, yes but I don’t get any errors..

    Even when I try to debug

    Thread Starter orangeferdi

    (@orangeferdi)

    Okay, i deleted the plugin and reinstalled it.. Now it works.. I don’t know how this now works because I did the same settings.. *confused*

    I am glad you fixed your issue.

    Sometimes what ever reason, the plugin becomes corrupted and this can be because of a conflict with another plugin. A simple re-installation of the plugin will do the trick as you found out yourself.

    Enjoy the plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp_mail() in own plugin does not work’ is closed to new replies.