Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6571351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:52:16+00:00 2026-05-25T14:52:16+00:00

I am facing a strange error when I execute a php mail script. Its

  • 0

I am facing a strange error when I execute a php mail script. Its related to server could not verify the sender. I see following error:

Failed to add recipient email@domain.com [SMTP: Invalid response code
received from server (code:550, response: Verification failed for
unrouteable address Sendor verify failed)]

Would you know why this error could pop up?

 <?php
require_once "Mail.php";
$kw = (string)$_GET['keyword'];
$e = (string)$_GET['emailid'];
$uname="xxx";
$password="xxx";
$con=mysql_connect("Localhost","root","");
if(!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("mysql_db",$con);

 mysql_query("INSERT INTO mail_alert       (uname,emailid,password,keyword)values('$kw','$e','$uname','$password')");



 $from = "mail.domain.com";
 $to = $e;
 $subject = "Hi!";
$body = "Hi,\n\nHow are you?";
$host = "ssl://domain.com";
$port="465";
$username = "login";
$password = "xxx";

$headers = array ('From' => $from,
'To' => $to,
'Subject' => $subject);
$smtp =Mail::factory('smtp',
array ('host' => $host,
'port' => $port,
'auth' => true,
'username' => $username,
'password' => $password));

$mail = $smtp->send($to, $headers, $body);

if (PEAR::isError($mail)) {
echo("<p>" . $mail->getMessage() . "</p>");
} else {
echo("<p>Message successfully sent!</p>");
}


 mysql_close($con);

?>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:52:17+00:00Added an answer on May 25, 2026 at 2:52 pm

    What you are doing here is trying to send an email as you were an owner/user of the domain.com.

    If you want to send an email via PHP, you must provide valid credentials of some email server. You can create mail server by yourself on your machine but it requires some effort. Well, in UNIXes it’s easier, on Windows you have to download some software like hMailServer.

    So, create a Gmail.com account, and here you have configuration data to set in your script (SMTP address, port number; user name and password are the Gmail’s account ones).

    SMTP: smtp.gmail.com
    Port for TLS/STARTTLS: 587
    Port for SSL: 465 
    User name: your Gmail email address
    Password: your Gmail password
    

    This example might be helpful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am facing a very strange issue. I get an error Object Reference Not
I'm facing kind of a strange issue which is related MD5-Hashes in Java and
I am facing a strange FlexUnit Error: Whoa... been asked to send another complete
I am facing a strange javascript object expected error in IE8? On IE Developer
I'm facing a strange bug. Page.ResolveUrl(~/myPage.aspx?param=valueA:valueZ); And it just not work, visibly cause of
We are facing a strange performance problem with SQL Server Express 2005 in a
I am facing a strange error in MOSS 2007 running under Windows 2008. I
I'm facing a strange problem when deploying my application to the production server. I've
I am facing a strange issue where-in my webpage does not load fully after
I am facing a strange problem. Without any change, hibernate does not do anything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.