Pepipost is built on the philosophy to encourage good senders and to keep the email eco-system clean.
۸۵% of today’s email is Spam and we don’t want to add up to that.
We have carried up that philosophy into the pricing model where we don’t charge for the emails which are being opened by the customers. Emails that are clicked, opened or engaged with will always be free.
Industry stats says 35-40% is the average open rate, hence that much of email volumes can be free. There is no limits, More your customer engagement is lesser will be your marketing spends. Entire pricing model is in your hands.
We care for each and every emails, and this is how we differentiate from our competitors.
First, you need to have PHP-curl extension enabled.
To have the Pepipost plugin running after you have activated it, go to the plugin’s settings page and set the Pepipost credentials, and how your email will be sent – either through SMTP or API.
How to use
wp_mail() function so all email sends from WordPress should go through Pepipost.
You can send emails using the following function:
wp_mail($to, $subject, $message, $headers = '', $attachments = array())
$to– Array or comma-separated list of email addresses to send message.
$subject– Email subject
$message– Message contents
$headers– Array or “n” separated list of additional headers. Optional.
$attachments– Array or “n”/”,” separated list of files to attach. Optional.
The wp_mail function is sending text emails as default. If you want to send an email with HTML content you have to set the content type to ‘text/html’ running
add_filter('wp_mail_content_type', 'set_html_content_type'); function before to
After wp_mail function you need to run the
remove_filter('wp_mail_content_type', 'set_html_content_type'); to remove the ‘text/html’ filter to avoid conflicts –http://core.trac.wordpress.org/ticket/23578
Example about how to send an HTML email using different headers:
$subject = 'test plugin'; $message = 'testing WordPress plugin'; $to = 'firstname.lastname@example.org, Address2 <email@example.com@>, firstname.lastname@example.org'; or $to = array('email@example.com', 'Address2 <firstname.lastname@example.org>', 'email@example.com'); $headers = array(); $headers = 'From: Me Myself <firstname.lastname@example.org>'; $headers = 'Cc: email@example.com'; $headers = 'Bcc: firstname.lastname@example.org'; $attachments = array('/tmp/img1.jpg', '/tmp/img2.jpg'); add_filter('wp_mail_content_type', 'set_html_content_type'); $mail = wp_mail($to, $subject, $message, $headers, $attachments); remove_filter('wp_mail_content_type', 'set_html_content_type');