Hi,

I'm trying to figure out a way to put "Send this node as Test email" and "Send this node as a newsletter" buttons on the node view page, rather than on the edit page. I think this would be simpler for my clients to understand.

I'm thinking I could do it by calling a php file with ajax when the button is clicked, to either fire the simplenews_send_node($node) function or to trigger a simplenews action. However, I'm a bit lost how to do either of these. Any suggestion on which way would be best and how to proceed?

thanks, hope you can help me a bit!

J

Comments

sutharsan’s picture

In the simlenews action module you will find the function calls required to send a newsletter. Perhaps that is of any help.

jglynn’s picture

Thanks, I'll check it out. Now I just need to figure out how to call those functions with ajax...

sutharsan’s picture

Status: Active » Closed (fixed)