![]() |
email setup - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: email setup (/showthread.php?tid=42791) |
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( Thanks for response email setup - El Forum - 06-19-2011 [eluser]gigas10[/eluser] Try a PHP file like this Code: <?PHP 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', 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? |