SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    calif
    Posts
    741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Warning: mail() [function.mail]: SMTP server response

    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
    		 *
    		 * @param string $to
    		 * @param string $subject
    		 * @param 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;}
    			
    		}

  2. #2
    SitePoint Zealot
    Join Date
    Oct 2004
    Location
    Sydney, Australia
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The error is being generated from the line:

    $result = mail($to,$subject,$message,$this->email_headers);

    Obviously it doesn't like the $to address and is rejecting the mail.. Make sure the first parameter of send_email() is a valid email address.

  3. #3
    SitePoint Guru
    Join Date
    Nov 2004
    Location
    calif
    Posts
    741
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thank you....

    Thanks so much for your reply.

    How/where do I "Make sure the first parameter of send_email() is a valid email address". I don't understand. Can you elaborate? What exactly do I need to do to resolve this please?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •