I created a new mailing list as well as an autoresponder. I linked them both together and starting doing some testing. I haven’t been able to get the autoresponder to work at all. I tried all three methods of sending emails but none will work.
I’ve been using SMTP to send emails which have been working fine for order notifications, etc. I added myself as a subscriber and sent an email to the mailing list in question and it works.
Anyone using autoresponders for mailing list subscriptions? I’d like to use them so I can confirm the email addresses.
HI There
Did you get this working?
Mark
Nope never did
I contacted the support. Here is the answer:
Dear Pavol,
[INDENT]Hello,
I tried to set up the autoresponder for the mailing list. However, no email is sent. Is there some script that should be called by cron to activate sending of the autoresponder?
thank you.[/INDENT]
Thank you for your time and patience.
In order to fix it you should do the following:
- Open the “fn.cart.php” file located in the “root” directory of your CS-Cart installation.
- Add the following part of code:
if (!is_array($force_notification)) { $force_notification = fn_get_notification_rules($force_notification, !$force_notification); }
above this one:
$order_statuses = fn_get_statuses(STATUSES_ORDER);
- Save the file.
- Open the “fn.common.php” file located in the “core” directory of your CS-Cart installation.
- Replace the following part of code:
if (!empty($disable_notification)) {
with this one:
if ($disable_notification) {
this one:
if (!empty($params[‘notify_user’])) {
with this one:
if (!empty($params[‘notify_user’]) || $params === true) {
and this one:
if (!empty($params[‘notify_department’])) {
with this one:
if (!empty($params[‘notify_department’]) || $params === true) {
- Save the file.
- Open the “newsletters.php” file located in the “addons/news_and_emails/controllers/customer” directory of your CS-Cart installation.
- Replace the following part of code:
fn_update_subscriptions($subscriber_id, $_REQUEST[‘mailing_lists’], $_REQUEST[‘newsletter_format’], NEWSLETTER_SAVE_UNCHECKED);
with this one:
fn_update_subscriptions($subscriber_id, $_REQUEST[‘mailing_lists’], $_REQUEST[‘newsletter_format’], NEWSLETTER_SAVE_UNCHECKED, NULL, fn_get_notification_rules(true));9) Save the file…By the way. Suport of CS-CART is great. They help me to do everything when I ask. If the custom changes are needed it is paid support but that is normal. This advice was for free from the support team of cs-cart
Thanks… I’ll take a look at that once I get some free time
I got around to making the suggested changes. It fixed the problem and the auto-responder is working.
Thanks for the info