Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8040 Posts in 1853 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationPlugins (Moderators: scott, DanO, Marty)to=0 in emailnotify 2
Pages: [1]   Go Down
Print
Author Topic: to=0 in emailnotify 2  (Read 1364 times)
0 Members and 1 Guest are viewing this topic.
rob
New Member
*

Karma: 0
Offline Offline

Posts: 0

various


WWW
« on: September 09, 2004, 06:04:00 PM »

I have been using Calendarscript with Emailnotify for some time without issues but one of the recipients mail servers has just been updated.  They no longer accept "0" in the "to" field in the header.  Emailnotify (at least as I have it configured" does just that.  I've looked until my eyes are sore to try to figure out how to change that but without success.  I'd appreciate any help anyone is able to give.

Rob

------------------

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: September 10, 2004, 11:10:00 PM »

*  "0" in the "to" field in the headed *

I can't see why that would be there, it has to be the email address of the intended recipient. Were the mails being sent? What where the received email headers like?

If I get a chance over the weekend, maybe I'll try and look into it.

Dan O.

------------------

Logged
Tanus
New Member
*

Karma: 0
Offline Offline

Posts: 15


WWW
« Reply #2 on: November 27, 2007, 03:58:52 PM »

Was this problem solved by anyone?
I do experience the same...     

The "To:"- field in the recieved email looks like this 0@domain.com, instead of meaningful@domain.com.  The email does however arrive my account and when I look at the (low-level) header details I am not able to get any clues for this to happen, except that I see the mentiond "To:"-field...  

I have looked a bit more into it and it seems that the 0@domain.com is entirely wrong, even the part after @ is wrong, in my case it should be anotherdomain.com...  but it seems still to be sent to the meaningful@domain.com address.
« Last Edit: January 16, 2008, 03:36:07 AM by Tanus » Logged
Tanus
New Member
*

Karma: 0
Offline Offline

Posts: 15


WWW
« Reply #3 on: January 15, 2008, 03:21:11 PM »

Finally I have localized the problem, although I am really not sure what happens (due to a limited knowledge to all constructs in perl).

However, I localized the problem to be in the subroutine "send" in the email.pm file.
By replacing the line
Code:
my $header = "To: " . join ';', @{$self->{to}} . "\n";
with
Code:
my $header = "To: " . $self->{to} . "\n";
the problem is solved (at least in my case).

Yes, I know that my replacement does not take into account that $self-{to} might be an array as some comments in the code suggest. However as the emailNotify2 is build, the plugin does not use that option anyway...
Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 227

Please don't PM me. Post in the open forum.


WWW
« Reply #4 on: January 15, 2008, 05:41:38 PM »

Thanks for the suggestion. Maybe someone else that has experienced the stated problem will try it out and let us know how your solution worked for them?

Dan O.
Logged
Pages: [1]   Go Up
Print
Jump to: