Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I know there are plugins out there for integrating the user base & sign-up, but are there any for using PHPlist to automatically send out newsletters of new posts?

I'm really trying to avoid a from-scratch solution here, though if nothing is 'ready made' I'd appreciate any pointers or head starts ;)

share|improve this question
    
Not exactly what you asked, but maybe some useful info. I just saw this post on my RSS reader this morning talking about newsletters. wpbeginner.com/beginners-guide/… –  Rev. Voodoo Apr 4 '11 at 16:08

1 Answer 1

up vote 2 down vote accepted

Don't know of a plugin that does that but if you take a look at WP PHPList plugin or more specifically the way it Interacts with phplist using PHP CURL, it logs in to phplist as admin and save cookie using CURLOPT_COOKIEFILE and then simulates a post to subscriber form. So maybe going in that route you can do the same and simulate a post to send mail form.

then all that is left is to hook you function to these hooks:

add_action('new_to_publish', 'send_new_post_mail');
add_action('draft_to_publish', 'send_new_post_mail');
add_action('pending_to_publish', 'send_new_post_mail');
add_action('private_to_publish', 'send_new_post_mail');
add_action('future_to_publish', 'send_new_post_mail');

I know its not a complete solution but should give you a jump start.

share|improve this answer
    
Thanks, marked accepted, appreciate the pointers :) –  TheDeadMedic Apr 11 '11 at 15:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.