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


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Pages: [1]   Go Down
Print
Author Topic: Email Notify  (Read 350 times)
0 Members and 1 Guest are viewing this topic.
Brent
New Member
*

Karma: 0
Offline Offline

Posts: 1

Consultant


WWW
« on: July 22, 2003, 08:59:00 PM »

Two Questions:

Problem #1 When adding an event:
Logged in as Administrator Email Notify doesn't send a notification message. (That's great)
But I have a one person setup with "Automatically approve own events". When that person adds an event. She gets an email of a pending event. Going to the approve events, nothing is pending.  Can this be changed so this person doesn't get the email notification when they add their own events.

Problem #2
I am using Linux with Apache setup with virtual web hosts The Notify message shows Apache as the Sender. Can this be changed to show a Name or Calendar Name?

Thanks, Brent

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #1 on: July 22, 2003, 09:21:00 PM »

** Can this be changed so this person doesn't get the email notification when they add their own events. **

At the top of the after_add_event.pl file, there is a line which controls when the notice is not sent:

if (!($User->hasPermission("","APPROVE") && $User->hasPermission($calendar,"APPROVE_OWN_EVENTS"))) {

You can try changing it to:

if (!($User->hasPermission("","APPROVE") | | $User->hasPermission($calendar,"APPROVE_OWN_EVENTS"))) {

That way no pending notification should sent sent if a user has either permissions. It is untested though.

 BTW. The | | in the above code should not have a space between them. That is added by this forum software.

** The Notify message shows Apache as the Sender. Can this be changed to show a Name or Calendar Name? **

You'll have to check with your host to see how their sendmail program is set up, sorry.

Dan O.

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

Logged
Brent
New Member
*

Karma: 0
Offline Offline

Posts: 1

Consultant


WWW
« Reply #2 on: July 22, 2003, 10:01:00 PM »

Dan O,
Thanks for the info. I made the changes and it works. Also tested a user without the Approve_own_events option and it still sends the notifcation...Great Work..

Since I run my own servers I guess I'll have to find my own answer to the second question..

Thanks Again,
Brent

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

Logged
Jason S
New Member
*

Karma: 0
Offline Offline

Posts: 3


WWW
« Reply #3 on: August 12, 2003, 03:31:00 PM »

If you are using the original Email Notify you can open up the "after_add_event.pl" file under \plugins\EmailNotify and add the following after the "print MAIL "To: $Mail\n";" line:

print MAIL "From: Calendar <user\@site.com>\n";

I have not really had time to play with Email Notify 2 yet, but I would imagine there is a similar file to edit.

Jason

Logged
rwrona
New Member
*

Karma: 0
Offline Offline

Posts: 0


« Reply #4 on: April 12, 2004, 11:44:00 AM »

Brent - Where can I get a copy of EmailNotify.tar file?

Thanks in advance for any help you can provide.

Bob

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

Logged
Pages: [1]   Go Up
Print
Jump to: