-
-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change form subject and sender #221
Comments
Both methods are not documented so may go away in future versions |
Piotr, thanks for your help. Works well with this … I had a look at the same code, but didn't know how to use it within the html form. |
You may set global from address in configuration, I'll be posting a PR for setting fromName. |
👍 Sounds good! I checked the config too, but have no clue how to add implement a new option :-) |
Actually it's quite easy, you just pass on additional config value in the line setting $message->setFrom(
isset($options['from']) ? $options['from'] : 'mailer@'.(isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : 'localhost'),
isset($options['fromName']) ? $options['fromName'] : false
); Now you can pass on BTW: I don't like the option to set mailer values inside the form because IMHO it's as security issue but that's at lease something before there's dedicated field in admin. |
Thanks for your tips! I got it working. Some settings should be outside the user scope (i.e. not within the html form) – since From isn't crucial, I like it more than editing core files – sometimes :-) |
I've submitted the feature in #223 |
Is there any way to change params like subject, sender?
The text was updated successfully, but these errors were encountered: