Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sign Up Box for the Newsletter


dgreenyc

Recommended Posts

Posted

I'm trying to add a simple text box on the homepage that will allow a visitor to add their email address to the newsletter list without having to create a full account. Is this possible?

 

Also - is it possible to send HTML emails with the Newsletter function?

 

Thanks for any advice.

  • 1 year later...
Posted

im trying to do the same thing, adding a newsletter box but so far no luck.

 

i found here in the forums how to send htmls newsletters

 

in admin/includes/modules/newsletters/newsletter.php find

$mimemessage = new email(array('X-Mailer: osCommerce bulk mailer'));
$mimemessage->add_text($this->content);
$mimemessage->build_message();
while ($mail = tep_db_fetch_array($mail_query)) {
$mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this->title); }


and replace with

CODE
$mimemessage = new email(array('X-Mailer: osCommerce bulk mailer'));
while ($mail = tep_db_fetch_array($mail_query)) {
$mimemessage->add_html(HEADER_NEWSLETTER . $this->content . FOOTER_NEWSLETTER);
$mimemessage->build_message();
$mimemessage->send($mail['customers_firstname'] . ' ' . $mail['customers_lastname'], $mail['customers_email_address'], '', EMAIL_FROM, $this->title);
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...