Link to home
Start Free TrialLog in
Avatar of Rory Fitzsimons
Rory FitzsimonsFlag 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"]);



Avatar of Rory Fitzsimons
Rory Fitzsimons
Flag of Japan image

ASKER

Hi Gerwin-Jansen,

Thank you for your warm welcome!

Best wishes,
Rory
Avatar of ste5an
Just try the standard e-mail syntax. E.g.

From: "Display Name" <EmailAddress>

Open in new window

See An overview of email message standards.
ASKER CERTIFIED SOLUTION
Avatar of Rory Fitzsimons
Rory Fitzsimons
Flag of Japan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial