Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] - Send Newsletter Status


bitshaker

Recommended Posts

  • 2 years later...

Hi Thorsten,

 

This is a handy little edit for website owners using external newsletter companies.

 

I actually thought of coding something smiler but found your contribution, so it saved me a little time.

 

However I also wanted to be notified of NEW newsletter subscribers when a client subscribes during the registration process.

 

So I modified some of your code and added it as follows:

 

=======================================================

 

 

When Client Registers for the first time.

 

In catalog/create_account.php

 

Search (around Line 50)

 

$newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']);

 

 

Insert immediately after (i.e included in If statement)

 

// Newsletter Status MOD - Send a subscription-email if client subscribes when registering

 

$newsletter_status_text = '<b>' . 'Subcribed' . '<br>New Account With Newsletter Subcription @ MyOnlineshop' . '</b>' . '<br>' .

'<br/><b>Gender:</b> ' . $gender .

'<br><b>Firstname:</b> ' . $firstname .

'<br><b>Surname:</b> ' . $lastname .

'<br><b>Email:</b> ' . $email_address;

tep_mail('[email protected]', '[email protected]', 'Subscribed', $newsletter_status_text, $email_address, $email_address);

 

//End Newsletter Status MOD

 

DONT FORGET TO CHANGE [email protected] TO YOUR DESIRED EMAIL ASWELL AS DESIRED TEXT FOR newsletter_status_text

 

=========================================

 

Feel free to modify/improve on the code. Also feel free to add it, or any modified version of it, to and update for your contribution.

 

Thx.

 

Tony

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...