I know this is a more basic question, but after scanning through 40 pages of search results (due to common words being used) without finding hope, I decided to go ahead and impose on your good graces yet again. I need to edit the outgoing system email address that sends notifications to newly registered customers so that there is a value for "realname." As it stands right now, the customers receive emails (notifications, auto responses, etc.) from the system with realname values (all the same name), except for when they register, and we'd like to have a uniform look.
Thank you all so much for your help so far. Hopefully I can help someone else out someday.
Sender name on customer registration [SOLVED]
Moderator: crythias
-
- Znuny newbie
- Posts: 11
- Joined: 05 Aug 2011, 23:38
- Znuny Version: 2.4.7
Sender name on customer registration [SOLVED]
Last edited by jawood2005 on 25 Aug 2011, 18:11, edited 1 time in total.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Sender name on customer registration
Kernel/System/Email.pm:
From is not defined in Kernel/System/Web/InterfaceCustomer.pm (around Line 659) where it sends the information for registration:
So, whatever's configured in Config.pm as AdminEmail wins.
Code: Select all
if ( !$Param{From} ) {
$Param{From} = $Self->{ConfigObject}->Get('AdminEmail') || 'otrs@localhost';
}
Code: Select all
my $Sent = $EmailObject->Send(
To => $GetParams{UserEmail},
Subject => $Subject,
Charset => $LayoutObject->{UserCharset},
MimeType => 'text/plain',
Body => $Body
);
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 11
- Joined: 05 Aug 2011, 23:38
- Znuny Version: 2.4.7
Re: Sender name on customer registration
I found most of what I was looking for in /var/lib/otrs/Config/ZZZAAuto.pm, but there's still one entry I've yet to find. I can change $Self->{'NotificationSenderName'} to change the name of the sender to employees, but I haven't been able to find one for customers. I'm checking through Config.pm now to see if I can find it in there.
-
- Znuny newbie
- Posts: 11
- Joined: 05 Aug 2011, 23:38
- Znuny Version: 2.4.7
Re: Sender name on customer registration
So I finally found it by accident:
Change email address to employees: /usr/share/otrs/Kernel/System/Ticket/Event/NotificationEvent.pm
$Self->{SendmailObject}->Send(
From => 'Enter your From Name here <emailaddress@domain.whatever',
To => $Recipient{Email},
Subject => $Notification{Subject},
MimeType => 'text/plain',
Type => 'text/plain',
Charset => $Notification{Charset},
Body => $Notification{Body},
Loop => 1,
Attachment => $Param{Attachments},
The default "From" variable is $From, but if it's going to be the same sender every time, this is a simple fix.
Change email address to employees: /usr/share/otrs/Kernel/System/Ticket/Event/NotificationEvent.pm
$Self->{SendmailObject}->Send(
From => 'Enter your From Name here <emailaddress@domain.whatever',
To => $Recipient{Email},
Subject => $Notification{Subject},
MimeType => 'text/plain',
Type => 'text/plain',
Charset => $Notification{Charset},
Body => $Notification{Body},
Loop => 1,
Attachment => $Param{Attachments},
The default "From" variable is $From, but if it's going to be the same sender every time, this is a simple fix.
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Sender name on customer registration
If it's in ZZZAAuto.pm, don't modify there. Find it in SysConfig.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask