php - Send Email with codeigniter(configuration) from my own server -


in past have send email through google smtp want send email own server.

i have followed this example setup email config file. how email.php file looks like:

$config['useragent']        = 'codeigniter';         $config['protocol']         = 'mail';         $config['mailpath']         = '/usr/sbin/sendmail'; $config['smtp_host']        = 'localhost'; $config['smtp_user']        = 'noreply@publish.mmedija.com'; $config['smtp_pass']        = 'testtest'; $config['smtp_port']        = 25; $config['smtp_timeout']     = 5; $config['wordwrap']         = true; $config['wrapchars']        = 76; $config['mailtype']         = 'text'; $config['charset']          = 'utf-8'; $config['validate']         = false; $config['priority']         = 3; $config['crlf']             = "\r\n"; $config['newline']          = "\r\n"; $config['bcc_batch_mode']   = false; $config['bcc_batch_size']   = 200; 

i have apache server. have directadmin software, have setup email account(noreply@publish.mmedija.com) password(testtest). stmp_user , smtp_pass have set in config file.

it strange, because:

$this->email->send() 

returns true, no email sent. print_debugger returns this:

your message has been sent using following protocol: mail user-agent: codeigniter date: thu, 11 jul 2013 08:36:13 +0200 from: "publishwall.si"  return-path:  reply-to: "noreply@publish.mmedija.com"  x-sender: noreply@publish.mmedija.com x-mailer: codeigniter x-priority: 3 (normal) message-id: <51de525d9d15a@publish.mmedija.com> mime-version: 1.0 content-type: text/plain; charset=utf-8 content-transfer-encoding: 8bit =?utf-8?q?publishwall.si_-_aktivacija_ra=c4=8duna?= test  

but have not received email. field "reply-to" in debugger not 1 set send mail to. maybe there wrong configuration in php.ini:

[mail function] ; win32 only. ; http://php.net/smtp smtp = localhost ; http://php.net/smtp-port smtp_port = 25  ; win32 only. ; http://php.net/sendmail-from ;sendmail_from = me@example.com  ; unix only.  may supply arguments (default: "sendmail -t -i"). ; http://php.net/sendmail-path ;sendmail_path = 

you might want check mail server logs. these should tell whether or not mail server receiving message queuing script - , if so, happening when tries deliver message remote mta.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -