Hi ,
I've browsed through the docs , but cannot seem to find a way to dynamically set the sender-emailaddress when using User generated forms.
Sorry if i overlooked something, but is this possible ?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi ,
I've browsed through the docs , but cannot seem to find a way to dynamically set the sender-emailaddress when using User generated forms.
Sorry if i overlooked something, but is this possible ?
is there no way to set the sender of forms ?
At the moment the form arrives with the subject as the title but the from field is empty
surly this should be set somewhere in a config file or in the main setup area of a form
I think you can set in the _config.php file at least Email::setAdminEmail()
Hi, yes I understand that but the form is not being sent from the admin its being sent from whoever fills it in.
We capture the email address and name in the contact form so why not use them in the mail headers ???
I want to change my email header too, anyone knows how to do it?
nevermind my post, i already get it. thanks
So placed "Email::setAdminEmail('me@mysite.net');" in my _config.php file, but form emails still show up as sent from admin@myhost.com. Any ideas?
do a global search on the whole project for "admin@myhost.com" and see if you have it anywhere