qskti Posted November 1, 2013 Share Posted November 1, 2013 A contact_form in old server was sending e-mail ( http://gjykataelbasan.qskti.com/Na-kontaktoni.php ), in new server does not work ( http://gjykataelbasan.gov.al/Na-kontaktoni.php) Can you tell me what can I do? The code is this: <?php $action=$_REQUEST['action']; if ($action=="") /* display the contact form */ { ?> <form action="" method="POST" enctype="multipart/form-data"> <div class="field"> <p> <input type="hidden" name="action" value="submit"> <Label> <b> Emri Juaj:</b></Label> <br> <input name="name" type="text" value="" size="30"/> </p> </div> <div class="field"> <p><br> <Label> <b> Email Juaj:</b></Label> <br> <input name="email" type="email" value="" size="30"/> </p></div> <div class="field"> <p><br> <Label> <b> Mesazhi Juaj:</b></Label> <br> <textarea name="message" rows="7" cols="30"></textarea> <br> </p> </div> <div class="field"> <p> <input type="submit" class="ui-widget-header" value="Dergo Mesazhin"/> </p> </div> </form> <?php } else /* send the submitted data */ { $name=$_REQUEST['name']; $email=$_REQUEST['email']; $message=$_REQUEST['message']; if (($name=="")||($email=="")||($message=="")) { echo '<span style="color:#CCFFFF;font-size:28px;text-align:center;">Fushat duhen plotesuar detyrimisht qe te mundesh dergimin e mesazhit!<a href="Na-kontaktoni.php"> Provo perseri</a>."</span>'; } else{ $from="From: $name<$email>\r\nReturn-path: $email"; $subject="Message sent using your contact form"; mail("ardianpali@yahoo.it", $subject, $message, $from); echo '<span style="color:#CCFFFF;font-size:28px;text-align:center;">Mesazhi u dergua!</span>'; } } ?> If you give me an answer, I'll be very grateful Ardian Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted November 1, 2013 Share Posted November 1, 2013 Did you configured PHP to use an SMTP server when you moved to the new server? does you new server come configured with an smtp server to use? Quote Link to comment Share on other sites More sharing options...
qskti Posted November 1, 2013 Author Share Posted November 1, 2013 it is a Host Server where I just host my site. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.