Welcome Guest, Not a member yet? Register   Sign In
mail() [function.mail]:
#1

[eluser]n0ty[/eluser]
A PHP Error was encountered
Severity: Warning

Message: mail() [function.mail]: SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.

Filename: helpers/common_helper.php

Line Number: 387

Error in sending confrimation mail.


Can Any One Help Me With this error ?
#2

[eluser]Clooner[/eluser]
The mail server doesn't accept the way you send mail. CI has default 3 ways of sending mail mail, sendmail, or smtp. Is it possible to switch? Are you using smtp? change the login settings.
#3

[eluser]n0ty[/eluser]
i tried all 3 mail,sendmail & smtp ..but still getting this error..Thnx
#4

[eluser]Derek Allard[/eluser]
n0ty, contact your webhost, and ask them how to send mail via PHP.
#5

[eluser]n0ty[/eluser]
Hi Admin,
i used smtp before on phpbb .... it was working fine..but now its giving me this error .. may be my settings is wrong.. how can i on debug mode so i may know whats going wrong ?

Thnx
#6

[eluser]Derek Allard[/eluser]
$this->email->print_debugger() will give you the information you need.
#7

[eluser]n0ty[/eluser]
where should i put this line ?
Thnx for ur quick reply
#8

[eluser]Derek Allard[/eluser]
There's a nice example in the page I linked to where its used. Let me know if that's not enough.
#9

[eluser]n0ty[/eluser]
sOrry bro i didnt understand that ...
should i modify "codeIgniterCore/libraries/email.php"

OR is there anyother way to send mails ? Sad
#10

[eluser]Derek Allard[/eluser]
The very first example on the page I linked to entitled "Sending Email" has an example of sending email, and then subsequently running the debugger. This is the example you want to use.




Theme © iAndrew 2016 - Forum software by © MyBB