Can you help me remedy this warning? I don't know what it means.
When I submitted an email address into the part of this script that you use when you forgot your password. I entered the address and submitted and got this Warning:

Warning: mail() [function.mail]: SMTP server response: 550 The address is not valid. in C:\Inetpub\wwwroot\http\home\classes\notification.php on line 49

I believe Line 49 is: // echo "em h:" . $this->email_headers;
Thanks for any help.
Here's part of the page code:

Code:
}
/**
send email

@ string $to
@ string $subject
@ string $message
/
function send_email($to,$subject,$message) {

//	echo "em h:" . $this->email_headers;
		$result = mail($to,$subject,$message,$this->email_headers);
		if ($result == false ) { return false; } else { return true;}

	}

    What's the from address set to?

    It might be that the SMTP server you're attempting to use requires authentication, something the native mail() command doesn't support. In this case, you'll need to use an external PHP class (ex. PHPMailer) and provide the SMTP server with valid credentials.

      Thanks for your reply.
      I believe the server does require authentication.

      Could you clarify what you mean by "you'll need to use an external PHP class (ex. PHPMailer) and provide the SMTP server with valid credentials"?

      By "class' do you mean a mail program?
      My web host has hMail server.

      And "credentials" means?

      thanks

        chrisj wrote:

        By "class' do you mean a mail program?

        No, I mean a pre-made PHP class, such as PHPMailer (I believe another is called XPertMailer ?). These packages allow you to use SMTP authentication.

        chrisj wrote:

        And "credentials" means?

        Your login credentials - username and password.

          Thanks again for your reply.

          Why do you ask "What's the from address set to?"

            Well, if you don't have a "FROM: " header in the headers of the email, then the FROM e-mail address would default to the sendmail_from PHP directive. Either way, this address most likely has to be an address on the e-mail server, otherwise it looks like you're attempting to relay e-mail which is almost always not allowed.

              Write a Reply...