Best practice forum (Archived)

Sender address for program emails

 
David Hawke
Sender address for program emails
by David Hawke - Thursday, 6 June 2013, 3:47 PM
 

Hi All

Working with Totara 1.1.21 (while we work through an upgrade to 2.4 :-)) 

Program emails are sent using the recipient address as the sender address as well as the recipient address if the user does not have a manager.

We want to implement the following

- Sender address should be the user assigned a Manager role for the program

- if there is no user assigned to the Manager role, then we would default the sender to the Admin User for the LMS.

This will enable us to implement programs defined by a higher level manager than the user's current manager, or to implement public education courses where the user has no direct manager.

So - my question is - how can I access the program manager role assignments (and yes - this will mean a modification to local/program/program_message.class.php to implement ... )

Thanks

David Hawke

Yuliya Bozhko
Re: Sender address for program emails
by Yuliya Bozhko - Sunday, 9 June 2013, 1:41 PM
 

Hi David,

I am not sure I understand your question.

As far as I know, there is no such role as a program manager. Every time a user gets enrolled or requests enrolment, user's manager is found in the system and they get notified.

You can probably create a role that would have permissions only in the context of a specific program, but I am not sure that's what you are looking for.

Yuliya

David Hawke
Re: Sender address for program emails
by David Hawke - Monday, 10 June 2013, 7:27 PM
 

Thanks

We more or less figured that would be the case. In our environment we have training requirements established by someone other than the users line manager and we therefore want to be able to set the manager email address on the program notification to that person. I haven't been able to find the correct context for the program programmatically anyway :-(

This is mostly to get around the problem of the sender email being set to the recipient email - this causes some mail servers (notably MS Echange) to bounce the mail as a spoofed message).

This is particularly significant where we have implemented self-registration for external users for some courses - I guess we could get around that by assigning their manager as the default email address but we'd rather not lock things down that hard at this stage.

David H