Unable to Send Email , Codeigniter, Network solution , SMTP
I am Using Codeigniter for a website hosted in Network Solution, And is not able to send email my email config page is
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| EMAIL CONFING
| -------------------------------------------------------------------
| Configuration of outgoing mail server.
| */
$config['protocol']=开发者_JS百科'smtp';
$config['smtp_host']='hostname';
$config['smtp_port']='587';
$config['smtp_timeout']='80';
$config['smtp_user']='user';
$config['smtp_pass']='password';
$config['_smtp_auth']=TRUE;
$config['charset']='utf-8';
$config['newline']="\r\n";
/* End of file email.php */
/* Location: ./system/application/config/email.php */
In Outlook i had to check My outgoing server requires authentication for that email address. Any Help would be appreciated.
Well, I got it, I had to put localhost as the hostname in email.php on the server, and then it worked. (may be it'll help some other people too...)
精彩评论