Jump to content

Add FreshMail subscriber


pgurdek

Recommended Posts

Hello Everyone!

I would like to add subscriber to FreshMail on acc creation. If client did "check" "Send me NewsLetter". It should add a subscriber into freshmail acct. Atm Prestashop add it to his newsletter list.

If you got any ideas how to do it, please enlighten me :)

My first approach

I already made newsletter freshmail.php which is sending the request as required. Now I would like it to connect to ac creation. (If Newsletter "checked" Send information to mail.php with some parameters (email, and name). My first problem in here is php in tpl format... I enabled {php} {/php} but still give some Object error.

Better option :

Check if Prestashop newsletter is enabled, if yes send users param to newsletter freshmail.php and send it to fresmail.

Although, there might be problem if there were already subscribers in freshmail db. It would make unnecessary job, and make both server slower.

 

If you got some better ideas, please share them with me.

Regards Peter

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...