Is there a plugin that allows a user of your site to get an email from you with an attachment?

you can use wp_mail( $to, $subject, $message, $headers, $attachments ); to send emails with attachments. So all you need is a simple form <form name=”email-att” id=”email-att” method=”POST” action=””> Enter your emial: <br /> <input type=”text” name=”email” id=”email”/><br /> <input type=”hidden” name=”action” value=”email-att”/><br /> <input type=”submit” name=”submit” value=”submit” id=”submit”/> </form> and to process it <?php if … Read more

Prevent function from triggering again when post in specific category gets another category?

We can utilize the add_term_relationship action to check if the current post is already assigned as popular. add_term_relationship fires before a term is inserted. I also think that you are using the wrong hook here to send your mail on. added_term_relationship fires quite early before any error checking. You can still encounter a failure after … Read more

Transferring contact form input to an email account without using an email-proxy

The CF7 plugin uses WordPress built-in wp_mail() function which itself uses the PHPMailer class (github repo). The PHPMail github documentation states, The PHP mail() function usually sends via a local mail server, typically fronted by a sendmail binary on Linux, BSD and OS X platforms, however, Windows usually doesn’t include a local mail server; PHPMailer’s … Read more

Can’t send emails through REST API

You didn’t include the code for your send_email() function, but I looked at the original source (revision 1) of your question, and it seems to me that your send_email() function is good, but if this answer doesn’t help solve the issue, then add the function code into your question body. So I don’t know why … Read more