Welcome Guest, Not a member yet? Register   Sign In
email setup
#1

[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
#2

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

[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
#4

[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
#5

[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?




Theme © iAndrew 2016 - Forum software by © MyBB