WordPress: Automate Sending Emails with Attachments

Job ID: 38558384

Budget: $250 – $750 USD

I'm in need of an experienced WordPress developer who can help me debug an issue with my website. When I send emails through Wordpress, sometimes the PDF attachments are corrupted. I use a plugin to send via gmail.

Ideal Skills and Experience:
- Deep understanding and experience with WordPress
- Experience with Wordpress email generation
- Familiarity with Google API

I use wp_mail to send the email:

$success = wp_mail($recipients, $this->post_title, $this->post_content, $headers, $attachments);

There are no error messages and 90% of the time it works fine, but a small percentage of the time, the PDF is corrupted. I can send the same message multiple times and sometimes it will have a corrupted PDF so there does not seem to be a pattern.
Related categories: PHP WordPress CSS HTML Google APIs