CodeIgniter Forums
email setup - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: email setup (/thread-42791.html)



email setup - El Forum - 06-19-2011

[eluser]johnmerlino[/eluser]
Hey all,

I have to ask a nontechnical person who runs an office what their smtp settings are, such as the host (don't think it's gmail), port, username, and password. But if I outright ask them for this, they won't know what I am talking about, as they won't know what smtp means. So how should I explain it in order to get the information required to send emails via codeigniter like this:

Code:
$config = Array(
                'protocol' => 'smtp',
                'smtp_host' => 'ssl://smtp.googlemail.com',
                'smtp_port' => 465,
                'smtp_user' => 'xxx',
                'smtp_pass' => 'xxx',
                'mailtype'  => 'html',
                'charset'   => 'iso-8859-1'
            );

Thanks for response


email setup - El Forum - 06-19-2011

[eluser]gigas10[/eluser]
Try a PHP file like this
Code:
<?PHP
Phpinfo();
?>



email setup - El Forum - 06-19-2011

[eluser]johnmerlino[/eluser]
Now typically wouldn't the smtp host settings be in the php.ini on the server? So when I pass these configurations, what codeigniter overwrites what's on the php.ini?

I'm also a little confused by all these parameters:

Code:
'protocol' => 'smtp',
                'smtp_host' => 'secure.emailsrvr.com',
                'smtp_port' => 465,
                'smtp_user' => 'xxx',
                'smtp_pass' => 'xxx',
                'mailtype'  => 'html',
                'charset'   => 'iso-8859-1'
            )

why the need for a user name and password, when the php mail() function doesn't require it?

thanks for response


email setup - El Forum - 06-20-2011

[eluser]InsiteFX[/eluser]
Because SMTP requires a user name and password for security reasons!

The SMTP settings will be whatever the system Administrator set them up to be!

InsiteFX


email setup - El Forum - 06-20-2011

[eluser]johnmerlino[/eluser]
[quote author="InsiteFX" date="1308591374"]Because SMTP requires a user name and password for security reasons!

The SMTP settings will be whatever the system Administrator set them up to be!

InsiteFX[/quote]

mail() uses smtp, so why doesn't it require username and password?