By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,203 Members | 1,383 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,203 IT Pros & Developers. It's quick & easy.

how to solve the SMTP server response: 550 Requested action not taken: mailbox unava

P: 1
My html coding:
Expand|Select|Wrap|Line Numbers
  1.  <form action="mailer.php" method="post" >
  2. <div>
  3.         <table align="center">
  4.           <tr>
  5.             <td> Contact Person </td>
  6.             <td><input type="text" name="ContactPerson"  /></td>
  7.           </tr>
  8.           <tr>
  9.             <td>Company name *</td>
  10.             <td><input type="text" name="CompanyName" /></td>
  11.           </tr>
  12.  
  13.           <tr>
  14.             <td>Country</td>
  15.             <td><select>
  16.                 <option>india</option>
  17.                 <option>london</option>
  18.                 <option>United Kingdon</option>
  19.                 <option>UnitedStates</option>
  20.               </select></td>
  21.           </tr>
  22.           <tr>
  23.             <td>Email Id </td>
  24.             <td><input type="text" name="EmailId"  /></td>
  25.           </tr>
  26.           <tr>
  27.           <td>
  28.           Message</td>
  29.           <td>
  30.           <textarea name="Message"></textarea></td>
  31.           </tr>
  32.  
  33.           <tr>
  34.             <td>Mobile </td>
  35.             <td><input type="text" name="Mobile"  /></td>
  36.           </tr>
  37.           <tr>
  38.           <td></td><td><input type="submit" name="submit" value="submit" /><input type="reset" name="clear" value="clear" /></td></tr>

this is my php coding:

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. $ContactPerson = $_POST['ContactPerson'];
  3. $CompanyName = $_POST['CompanyName'];
  4. $EmailId = $_POST['EmailId'];
  5. $Mobile = $_POST['Mobile'];
  6. $Message = $_POST['Message'];
  7. $mail_to = 'manoj@i2isoft.com';
  8.  
  9.  
  10.  
  11. $subject = 'Message from a site visitor ' . $ContactPerson;
  12. $body_message = 'From: '.$ContactPerson."\n";
  13. $body_message .= 'E-mail: '.$EmailId."\n";
  14. $body_message .= 'Message: '.$Message."\n";
  15. $headers = "From: $EmailId\r\n";
  16. $headers .= "Reply-To: $EmailId\r\n";
  17. $mail_status = mail($mail_to, $subject, $Message, $headers);
  18. ?>
error:rning: mail() [function.mail]: SMTP server response: 550 Requested action not taken: mailbox unavailable or not local in C:\inetpub\vhosts\talenttex.in\httpdocs\mailer.php on line 25
please check my coding and reply my mail id
Apr 23 '12 #1
Share this Question
Share on Google+
2 Replies


100+
P: 1,059
you are using \n, but you will have to use \r\n, fix this issue first
Apr 23 '12 #2

P: 1
problem is smtp server and port no not configured( like google server: smtp.gmail.com; port:465.

use pearmail package.
Apr 27 '12 #3

Post your reply

Sign in to post your reply or Sign up for a free account.