Zen Cart Logo
Forums / All Other Contributions/Addons / Newsletter-Only Subscriptions for v1.3x

Newsletter-Only Subscriptions for v1.3x

Views: 295,575

Results 321 to 340 of 1,165
20 Oct 2006, 12:24 PM
#321
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Newsletter-Only Subscriptions for v1.3x

Have installed the 2.0.5 version on ZC 1.3.5. This is exactly what I was looking for. Thanks for this great mod.

Everything seems to be working just fine except that I'm not receiving noifications of newsletter-only subscriptions although I have set:

Send Notice of Newsletter-only Subscriptions To - Status 1
Send Notice of Newsletter-only Subscriptions To 'valid email address'

Gone through this thread and found some patches but they seem outdated to me using ZC1.3.5 and NOS2.0.5. I have been carefull editing core files so I might have missed out on something.

Found the following lines at the bottom of includes/modules/pages/subscribe/header_php.php:

if(defined('NEWSONLY_SUBSCRIPTION_CC_STATUS') &&
defined('NEWSONLY_SUBSCRIPTION_CC') &&
(NEWSONLY_SUBSCRIPTION_CC_STATUS == 1) &&
(strlen(NEWSONLY_SUBSCRIPTION_CC) > 4)) {
// send email to notify store owner of new subscriber
$email_text = 'A Newsletter-Only Subscriber using the address ' . $email_address . "\n" .
'was added on ' . strftime(DATE_FORMAT_LONG) . '.';
mail(EMAIL_FROM, 'Subscriber Notification', $email_text, "From: ".STORE_NAME."\r\nReply-to: ".EMAIL_FROM."\r\n");

Looks fine to me but the notification messages are not delivered to my inbox.

Any pointers on what I might have done wrong?

20 Oct 2006, 12:45 PM
#322
mathias avatar

mathias

New Zenner

Join Date:
Aug 2006
Posts:
6
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

davale:

Everything seems to be working just fine
Sure ?

Try this :
1 - suscribe to the "newsletter only" with [email protected]
2 - create an account with "[email protected]" as e-mail address
3 - Look at the bug :lookaroun

20 Oct 2006, 12:55 PM
#323
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

davale:

Send Notice of Newsletter-only Subscriptions To 'valid email address'
I'm going to assume you have a email address there & not that text :) (sorry have to check)

I'm not getting any emails sent out, but thought it was my setup. I'll check into it more tonight. If anyone else discovers the cause, please post.

-Ng_

20 Oct 2006, 1:00 PM
#324
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Not sure what you mean by this but I did what you asked. Got a 'Undelivered Mail Returned to Sender; [email protected]: inactive user (in reply to RCPT TO command)' message from my provider.

If you meant to check my SMTP settings I might have had to add that the messages to the subscribers are delivered. If I'm not mistaken the are generated within the same includes/modules/pages/subscribe/header_php.php file so SMTP is not the issue.

20 Oct 2006, 1:06 PM
#325
mathias avatar

mathias

New Zenner

Join Date:
Aug 2006
Posts:
6
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

davale:

Not sure what you mean by this but I did what you asked. Got a 'Undelivered Mail Returned to Sender; [email protected]: inactive user (in reply to RCPT TO command)' message from my provider.

If you meant to check my SMTP settings I might have had to add that the messages to the subscribers are delivered. If I'm not mistaken the are generated within the same includes/modules/pages/subscribe/header_php.php file so SMTP is not the issue.

[email protected] was an example.
Try with a valid e-mail address

20 Oct 2006, 1:07 PM
#326
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Hi NotGoddes,

I do indeed have a valid email address (format: Name 1 email@address1) in there and not the text mentioned in my earlier post.

Please do check on this cause I often find myself actually doing really stupid things like that. (Usually corrected before making a fool of myself out here ;-)

20 Oct 2006, 1:16 PM
#327
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

mathias,

I have tried it with valid email addresses. Emails to subscribers are delivered, notifications are not.

Am I not understanding you correctly?

20 Oct 2006, 1:28 PM
#328
mathias avatar

mathias

New Zenner

Join Date:
Aug 2006
Posts:
6
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

davale:

mathias,
Am I not understanding you correctly?
Ok, excuse my english if I have some difficulties to explain myself.

You said that you encourred no problem expect one.
I just wanted to show you that there is another problem that is still not resolved.

When you create an account with an email that has been entered in the newsletter only subscription, you get this error :

1062 Duplicate entry '0' for key 1
in:
[insert into myshop_subscribers (email_address, email_format, subscribed_date, confirmed) VALUES ([email protected]', 'HTML', now(), 'TDYzLj')]
20 Oct 2006, 1:53 PM
#329
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Ahha, have not encountered the error in my setup so I really had no idea what you were getting at.

How come? I don't know. I carefully merged the new code in my corefiles and omitted any changes not directly related to NOS. The included core files where, as far as I can tell, not based on the latest 1.3.5 versions. During my first, less carefull, attempt I accidentally changed some SMTP settings altered in 1.3.5 that stopped emails from being send.

My guess is that that's (merging code; not the specific SMTP issue I had) also causing your error (assuming you did a clean 2.0.5 install as I did and didn't upgrade a earlier version). Didn't change anything to the SQL besides applying the customer date patch which I didn't find within 2.0.5.

20 Oct 2006, 7:30 PM
#330
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Just fyi- no the 2 aren't related.
You tried putting in: name1 email@add1
Did you try only using the email address w/o the name? e.g. email@add1
Because when you did that with the dummy 'toto' account you did get a bounceback, so it may simply be a syntax issue.

20 Oct 2006, 8:32 PM
#331
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Yes I did.

First my notification address contained a long name (with spaces) and the actual email address. Changed that to a short name (no spaces) and the email address. To top it off I gave it a go with just the email address without the name.

Still nothing.

I've only used the dummy 'toto' account as subscriber address, not as notification address. And subscriber mails are delivered (or bounced as in this case).

20 Oct 2006, 9:29 PM
#332
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Hi NotGoddess,

Might have located the problem but I'm not sure. Comparing to files that do send extra emails I can't find a zen_mail statement at the bottom of includes/modules/pages/subscribe/header_php.php. I'm aware of the fact that there are more ways then one to get things done but this is what struck me as the most obvious reason for extra mails to fail. Am I wrong?

20 Oct 2006, 10:15 PM
#333
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

NotGoddess, one more thing. Within includes/modules/YOUR_TEMPLATE/subscribe_header.php on line 20 it reads:

require($template->get_template_dir('tpl_subscribe_header',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_subscribe_header.php');

Shouldn't it read:

require($template->get_template_dir('tpl_subscribe_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_subscribe_header.php');

Tried changing it and adding a new subscriber but still zero on the notification mails. Did stop my PHP log from cluttering though.

21 Oct 2006, 1:49 AM
#334
notgoddess avatar

notgoddess

Zen Follower

Join Date:
Jan 2005
Location:
Waukee, Iowa
Posts:
206
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

In functions/functions_email.php on line 158 change:

        if (EMAIL_SMTPAUTH_MAIL_PORT != '25' & EMAIL_SMTPAUTH_MAIL_PORT != '') $mail->Port = EMAIL_SMTPAUTH_MAIL_PORT;
``` to ```
        if (EMAIL_SMTPAUTH_MAIL_SERVER_PORT != '25' && EMAIL_SMTPAUTH_MAIL_SERVER_PORT != '') $mail->Port = EMAIL_SMTPAUTH_MAIL_SERVER_PORT;

(add _SERVER to each define)
and see if that works-it was reported as a bug for some zips.

21 Oct 2006, 9:06 AM
#335
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

I already have these SMTP lines in my functions/functions_email.php. This caused the SMTP problems I was reffering to in my earlier post to mathias. Already corrected them.

Did you have time to check why your own setup wasn't sending emails?

23 Oct 2006, 7:26 AM
#336
saurabhgautam avatar

saurabhgautam

New Zenner

Join Date:
Oct 2006
Posts:
28
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Dear Not goddess,

I have installed your mod on zencart 1.3.5. this i'm developing on my local server (not yet live.)

There is one problem i'm facing. If i press the subscribe button without entering the e-mail id, it throws two errors:

Warning: require(includes/templates/template_default/templates/tpl_subscribe_header.php) [function.require]: failed to open stream: No such file or directory in W:\www\simbanet\includes\modules\classic\subscribe_header.php on line 20

Fatal error: require() [function.require]: Failed opening required 'includes/templates/template_default/templates/tpl_subscribe_header.php' (include_path='.;/usr/local/PHP/includes;/usr/local/PHP/pear') in W:\www\simbanet\includes\modules\classic\subscribe_header.php on line 20

also the right panel dissapears.

could you please guide.

if i put a valid email id then there is no problem.

23 Oct 2006, 7:30 AM
#337
pensive612 avatar

pensive612

Zen Follower

Join Date:
May 2006
Posts:
313
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Just copy the tpl_subscribe_header it can't find into the templates_default folder.

that should fix it right up.

23 Oct 2006, 7:52 AM
#338
pensive612 avatar

pensive612

Zen Follower

Join Date:
May 2006
Posts:
313
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

...or to be more specific ---

includes/templates/YOUR_TEMPLATE/templates/tpl_subscribe_header.php
into includes/templates/template_default/templates/tpl_subscribe_header.php

23 Oct 2006, 7:53 AM
#339
saurabhgautam avatar

saurabhgautam

New Zenner

Join Date:
Oct 2006
Posts:
28
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Many thanks, that solved my problem..

25 Oct 2006, 9:26 PM
#340
davale avatar

davale

Zen Follower

Join Date:
Apr 2006
Posts:
117
Plugin Contributions:
0

Re: Newsletter-Only Subscriptions for v1.3x

Hi NotGoddess,

Still have not been succesfull getting the the notification messages out thus far. Have you found some time to go through your setup to check if your notification mails worked or not? If you got it to work could you please let me know what to modify to get me up and running?

Thanks in advance. (not meaning to be impatient)