Welcome Guest, Not a member yet? Register   Sign In
Does anyone know how to send the email correctly?
#1

[eluser]FreshProgrammer[/eluser]
Hi..

I already set the setting at application/librarry/email.php .But,still i can not send email through this codeigniter.

Below shows the error message that i had encountered.

Severity: Warning

Message: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

Filename: libraries/Email.php

Line Number: 1519


If i am not mistaken,the space for smtp just leave it blank right?
Does anyone know how to send the email correctly?

Thank You
#2

[eluser]John_Betong_002[/eluser]
A quick Google :

http://www.google.co.th/search?aq=f&sour...ie=UTF-8&q="Failed+to+connect+to+mailserver+at+“localhost”"

Reveals umpteen results.

This is not a CI problem Sad
 
 
#3

[eluser]FreshProgrammer[/eluser]
'Thanks You'
#4

[eluser]osci[/eluser]
I don't know if you fixed it already.

From user guide - email class
Code:
Preference     Default Value     Options     Description
................................
................................
................................
smtp_host    No Default    None    SMTP Server Address.
smtp_user    No Default    None    SMTP Username.
smtp_pass    No Default    None    SMTP Password.

so you should set your host, user and password.
smpt_port defaults to 25, so if that's what you use you can ignore this config.
#5

[eluser]InsiteFX[/eluser]
Best way edit php.ini and set it to your hosting provider SMTP port etc!

Like I have Comcast and use their SMTP config in php.ini

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB