473,324 Members | 2,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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

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
2 4082
johny10151981
1,059 1GB
you are using \n, but you will have to use \r\n, fix this issue first
Apr 23 '12 #2
problem is smtp server and port no not configured( like google server: smtp.gmail.com; port:465.

use pearmail package.
Apr 27 '12 #3

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

Similar topics

1
by: ashim.chowdhury | last post by:
While using mail() function in PHP I am getting thjis error Warning: mail(): SMTP server response: 505 5.7.3 Must issue a STARTTLS command first I have used...
9
bonski
by: bonski | last post by:
hello everybody.. i just want to know what this error means... Error: mail() : SMTP server response: 501 #5.1.1 bad address the smtp set up was correct.. valid emails... and port. so im just...
5
by: deepakNagpal | last post by:
hi friends i am trying to create a contact feedback form. but when i am running the code it showing some warning: Please if anyone can help me. PHP Warning: mail() : SMTP server response:...
8
by: punitshrivastava | last post by:
Hi to All. I am Punit .I am back with new question .Please help me. I want to create one enquiry form in php.for this I code it: form code: <form name="enquiry" method="post" ...
0
by: nituja | last post by:
Hi I want to send mail thru the program but I am getting above error. What I want to do is to send mails thru the program and recieve in my inbox ..... I dnt know how to proceed what SMTP...
2
by: Ronald Raygun | last post by:
I am calling the mail() function in a PHP script and I get the ff error: Warning: mail() : SMTP server response: 501 5.5.4 Invalid Address in C:\test\test.php on line 394 Relevant Info: OS:...
1
by: creative1 | last post by:
I am trying to setup contactus page. and testing it to work throug localhostI. I ahve setup everything php.ini and even tred to use following to make sure that everything is ok: ...
7
by: mukeshrasm | last post by:
Hi I am no able to send mail and it is giving this error Warning: mail(): SMTP server response: 530 5.7.3 Client was not authenticated in c:\inetpub\wwwroot\eshop\includes\classes\email.php on...
6
by: phpmagesh | last post by:
Hi, I am using mail function in my php page, As soon i update the details, i have to send mail to the customer with the updated details, problem is when i send mail it simple through waring msg...
1
by: lisa007 | last post by:
Warning: mail() : SMTP server response: 503 valid RCPT command must precede DATA on whenever user click on to get new password but doesnt fill in the username field it shows that message i have...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.