Avatar of Rory Fitzsimons
Rory Fitzsimons
Flag for Japan asked on

ownCloud: How to hard-code the display-name in email "from" headers ?

Using ownCloud community version 10.8.0 on Ubuntu 18.04.6. How can I hard-code the display-name in the "from" header of activity notificaton emails ? (file downloads etc).

For reference, I managed to do this for new account notification and password reset emails:

For new account notification emails:
File: public_html/settings/Controller/UsersController.php
Change: Modify lines 391, 810, 1125,1204 to: $message->setFrom([$this->fromMailAddress => "MyCustomDisplayName"]);

For password reset emails:
File: public_html/core/Controller/LostController.php
Change: Modify lines 297 and 383 to: $message->setFrom([$this->from => "MyCustomDisplayName"]);

* FilesharesPHP

Avatar of undefined
Last Comment
Rory Fitzsimons

8/22/2022 - Mon
Rory Fitzsimons

Hi Gerwin-Jansen,

Thank you for your warm welcome!

Best wishes,

Just try the standard e-mail syntax. E.g.

From: "Display Name" <EmailAddress>

Open in new window

See An overview of email message standards.
Rory Fitzsimons

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy