Configuring SMTP email

6 posts by 2 authors in: Forums > CMS Builder
Last Post: June 10, 2011   (RSS)

By NickA - June 9, 2011

Hi,

I've been given a site to manage that uses CMS builder, and I'm new to this software.

How can I change the email protocol from sendmail to SMTP? The only email configuration option I see in the Admin section is "Admin Email".

Thanks in advance

Re: [NickA] Configuring SMTP email

By Jason - June 9, 2011

Hi,

CMS Builder doesn't control how your server handles mail. If you need help changing your server's mail settings you'd have to contact your hosting service provider.

Hope this helps. Please let us know if you have any other questions.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [NickA] Configuring SMTP email

By Jason - June 9, 2011

Hi,

To send emails, CMS Builder uses the php function [url http://ca2.php.net/manual/en/function.mail.php]mail()[/url] which just submits the email to the servers outgoing mail queue. If these emails are not being sent, the issue would be with the configuration of your server.

When you attempt to send an email are you receiving an error, or is the email just never arriving? Is the email being sent from a CMS Builder plugin, or from PHP code on your website?

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Configuring SMTP email

By NickA - June 9, 2011

Ok, the email is simply never being received. We also have Expression Engine running on this server, and the mail function is working fine with SMTP. We have 1 plugin - Website Membership, so I guess the mail is being sent from the PHP code on the website.

When I attempt to send an email I don't get an error. Not sure if this is poor UX design though.

Re: [NickA] Configuring SMTP email

By Jason - June 10, 2011

Hi,

The website membership plugin does send out emails using the PHP mail() function:
http://www.php.net/mail

A way to test if your PHP SMTP settings are correct would be to create a small test script that just attempts to send an email using mail.

for example:

<?php
mail('to@testemail.com','My Test Email', 'If you receive this message, PHP is configured correctly.');
?>


Just replace "to@testemail.com" with the address you want to send to. If you don't receive an email, check your spam folder.

If the email never arrives, then your SMTP settings are not configured correctly. You can check you current setting from CMS Builder by going to "General Settings" and clicking on "phpinfo" under "Server Info". You can search the resulting page for "SMTP".

If these settings need to change, however, you'll need to contact your hosting provider.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/