Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

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.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Not sending to email


Go to End


2 Posts   1396 Views

Avatar
namnn96

Community Member, 4 Posts

18 February 2016 at 6:33pm

Hi guys,

I am testing the email send function and what i did is quite simple, but no email received. Here is the code:

$email = new Email("namnn96@gmail.com", "namnn96@gmail.com", "Testing", "Test body");
$email->send();

Thanks in advance

Avatar
Devlin

Community Member, 344 Posts

18 February 2016 at 10:34pm

Debugging php mail() is nearly impossible. If it does not work for you, you're experiencing most likely a server configuration problem -- or your email was filtered by a spam filter or it got stuck somewhere else ... Please consult your server admin.