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.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Setting SMTP server


Go to End
Reply

9 Posts   10464 Views

Avatar
rabrol

13 May 2008 at 11:51am Community Member, 6 Posts

Hi all.

Maybe I am missing something here. Where do I set the details of my SMTP server to allow forms to be sent?

Incidently, the form appears fine and once submitted it takes me to the thank you page, but no email is ever received. I don't recall ever setting the smtp server details anywhere....

Thanks!
Rob

Avatar
rabrol

14 May 2008 at 1:14pm Community Member, 6 Posts

No ideas?

Avatar
DesignCity

14 May 2008 at 2:09pm 38 Posts

Rob,

As far as I'm aware, Silverstripe uses PHP's send mail functions to send mail - therefore no SMTP settings need to be set up within SS itself. If you're having trouble sending mail with PHP, the answer will depend on the system you're running. The PHP docs are a good place to start looking for some answers, otherwise provide the community with some more details about your setup and OS to see if someone can help.

DesignCity

Avatar
Sam

15 May 2008 at 1:22pm Administrator, 685 Posts

Yes, we just use the PHP mail() function.

This is the page that you should look at: http://nz.php.net/manual/en/mail.configuration.php

Avatar
rabrol

15 May 2008 at 4:49pm Community Member, 6 Posts

Hmm. Thanks for the replies.
Unfortunately my web host doesn't provide email sending from the web server - only though the mail server! They recommend using smtp to connect to the mail server they provide. Is there any way I can do this in SS?

I don't have access to the php.ini file as I am on a shared server.

Rob

Avatar
Sam

15 May 2008 at 7:57pm Administrator, 685 Posts

I would suggest that you talk to your host about it. Ask them to reconfigure their server to get the PHP mail() function working. This is a really basic requirement that every host should support if they're claiming to support PHP.

I'm not sure if there's an easy way of getting linux PHP to talk to another SMTP server.

Avatar
cerelac

21 May 2008 at 3:26am Community Member, 34 Posts

Hi.

I have a problem with the mail server configuration, when using it with the forms.
I've read the posts below, but I don't really know where can I configure the mail server settings.
I'm an unexperient user, so if you can help me, I would appreciate.

I'm currently using SilverStripe at localhost, but I have a mail server with domain, so I would like to know if it is possible to configure the mail server while testing at localhost server (using Apache).

Best regards.

Avatar
nomen

3 June 2008 at 8:35pm (Last edited: 3 June 2008 8:36pm), Community Member, 52 Posts

Hi:
I wrote a post explainig the way i do it, because I was in the same situation.
See [url=http://www.silverstripe.com/site-builders-forum/flat/43027?showPost=43027#post43027]my post[/url].

Hope this helps.

Go to Top