I've created a form and when the form is submitted it seems to work. It saved the information to the database and displays the thank you for submitting message that I've added. One thing it doesn't do is send an email.
What am I doing wrong?
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.
I've created a form and when the form is submitted it seems to work. It saved the information to the database and displays the thank you for submitting message that I've added. One thing it doesn't do is send an email.
What am I doing wrong?
Sounds like a server problem to me. I would try to send an email via a script and see if the email() function works right.
hie
i had the same problem once & i think yo dont have a From in yo email ()function emails without a from a regarded as SPAM
try this,
<=====
put the following code in your _config file
Email::setAdminEmail('name@domain.com');
this should act as the From address.
multiple recipient are also to be separated by a comma not semi-colon
maybe it will work
hope it will help you.