osCommerce: Newsletter subscription

Posted on 2005-03-21
Medium Priority
Last Modified: 2006-11-17

I'm running an osCommerce store and use listmailpro (http://listmailpro.com/) as my newsletter subscription manager.  The form is on the store front, but during the customer create account process there is a checkbox asking whether they want to subscribe to the mailing list or not and this is not for listmailpro.  It's for the prebuilt newsletter in osCommerce, which is very minimal.  A long time ago I used a different mailing list and was successful in modifying the code, so that when the customer checks the newsletter subscribe box, they actually subscribe to this 3rd party newsletter.

Here's the code I used in catalog/create_account.php:
// Newsletter subscription begin
    if ($newsletter == '1') {
      /*$arp_subject = 'owner=admin+password=camden123+action=subscribe+name=' . $firstname . '+email=' . $email_address . '+autoresponder=subscribe+plain+TRAsignupbox';

      tep_mail('ARP3', 'arplus@mysite.com', $arp_subject, '', $name, $email_address);*/

      $arp_subject = 'subscribe';

      tep_mail('ARP3', 'new_account@mysite.com', $arp_subject, '', $name, $email_address);
// Newsletter subscription end

Can anyone help?

Question by:greg66
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

sint4x earned 1000 total points
ID: 13597149
tep_mail('ARP3', 'new_account@mysite.com', $arp_subject, '', $name, $email_address);

change $email_address to the recieving end of the newsletter, i have exp with osCommerce and I think the newsletter on signup sends an email to the user... not sure... but physically change $email_address to the email ur newsletter application uses to read incoming subscribers.
LVL 14

Expert Comment

ID: 15867476
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: sint4x {http:#13597149}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question