0

I am facing this error. I have created one contacts form in php via which I can receive mails from users. I uploaded it on big rock hosting. But I am getting this error which is in the image I am giving my php code in description.

<?php
    $name = $_POST['name'];
    $from = $_POST['email'];
    $phone = $_POST['phone']; 
    $email = "abc@gmail.com" ;
    $message = $_POST['message'];
    $subject = $name+$phone;
    mail($email,$subject,$message,"From".$from);
    echo "mail sent";
    header('Location: index.php');
?>`
Jose Rodriguez
  • 9,753
  • 13
  • 36
  • 52
  • Whats the error? What is `$subject = $name+$phone;`? The from should be `From:` – chris85 Oct 28 '15 at 14:30
  • click on this error in description to see the error – user2721154 Oct 28 '15 at 14:35
  • Is it too difficult? https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=mail()%3A+SMTP+server+response%3A+530+relaying+not+allowed – Akshay Oct 28 '15 at 14:37
  • @akshay there is no specific solution found...they are giving solution on wamp server but i am asking about after hosting it on big rock... – user2721154 Oct 28 '15 at 14:57

0 Answers0