• Resolved Anonymous User 18394345

    (@anonymized-18394345)


    Hello,
    if I want to use wp_mail() function (replaced by your plugin) how much of sanitization of the data that I’m inputting do I need to do?
    I’m planning to make REST Api endpoint which will receive email data from frontend (written in react) and then use wp_mail() to send an email.

    How much work will I need to do by myself to make it secure and spam proof?

    Thanks for answers,
    Dominik

Viewing 1 replies (of 1 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi Dominik,

    WP Mail SMTP does not replace the wp_mail WP core function. We use the hooks (actions/filters) that it provides, so that the email is sent with the configured mailer.

    So, you’ll just need to use regular sanitization for the wp_mail function parameters: email address string, email subject string, message string, headers string/array, and the attachments string/array.

    Take care!

Viewing 1 replies (of 1 total)
  • The topic ‘Sanitizing wp_mail input’ is closed to new replies.