Re: 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?
Re: Newsletter-Only Subscriptions for v1.3x
Quote:
Originally Posted by
davale
Everything seems to be working just fine
Sure ?
Try this :
1 - suscribe to the "newsletter only" with toto AT mail DOT com
2 - create an account with "toto####################" as e-mail address
3 - Look at the bug :lookaroun
Re: Newsletter-Only Subscriptions for v1.3x
Quote:
Originally Posted by
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_
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; <toto####################>: 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.
Re: Newsletter-Only Subscriptions for v1.3x
Quote:
Originally Posted by
davale
Not sure what you mean by this but I did what you asked. Got a 'Undelivered Mail Returned to Sender; <toto####################>: 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.
toto AT mail DOT com was an example.
Try with a valid e-mail address
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 ;-)
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?
Re: Newsletter-Only Subscriptions for v1.3x
Quote:
Originally Posted by
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 :
Code:
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')]
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.
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.