eZ Community » Forums » Developer » Email sender of notification emails
expandshrink

Email sender of notification emails

Email sender of notification emails

Wednesday 03 October 2012 3:46:15 pm - 4 replies

Hi  everyone,

How is it possible to change the sender and the subject of the notification emails?

In my case , email sender is "Administrator User <xxx@xxx.com>

I want to change it to my website's name.

But I cannot find it in plain.tpl neither the subject name

Wednesday 03 October 2012 5:51:46 pm

Hi,

Try to modify the mail's configuration into file settings/override/site.ini.append.php : 

[MailSettings]
Transport=sendmail
AdminEmail=xxxxx@xxxx.com
EmailSender=

(If EmailSender is null, AdminEmail is used )

NB: do not forget to clear cache after modification

tks

Wednesday 03 October 2012 6:23:48 pm

In my site.ini.append.php I have my email-address for both of the

AdminEmail=xx@xxx.com
EmailSender=xx@xxx.com

when i change admin it doesnt differ , when i change email sender , it doesnt send the email.

Should I create a user group with the name of my website only for this?

Thursday 04 October 2012 3:04:45 am

Hi

We can modify the subtree/digest email template to achieve this.

For sub-tree Notification :

- notification/handler/ezsubtree/view/plain.tpl

For Digest Notification :

- notification/handler/ezgeneraldigest/view/plain.tp

In the template You can change the value of the 'from' and 'subject.'

Hope this helps

Raj

Thursday 04 October 2012 10:45:55 am

Hi Raj and thank you for your answer.

Finally for subject, i edited it in plain.tpl in subtree folder,

but for sender, I added an override for notification.ini and i put the address email that i wanted there.

Thank you very much again.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from