Hi all,
I have contact form in html page. I have 3 fields NAme,Message,Email. I want to send these data to another email. I try this with PHP as follows. It shows success message. But i am not receiving any mail. Can anyone help me to solve this.
script:
$(document).ready(function(){
$('#submit').click(function(){
var name=$('#name').val();
var email=$('#email').val();
var message=$('#message').val();
var vardata = 'name=' + name + '&email=' + email + '&message=' + message;
console.log(vardata);
alert(vardata);
$.ajax({
type: "POST",
url: 'send_mail.php',
data: vardata,
success: function () {
alert(vardata);
alert("success");
}
});
});
});
Form:
Please enter name
E-mail is not a valid format
Please enter message
E-mail was successfully sent.
There was a problem validating the form please check!
The connection to the server timed out!
answer this question.
Dipankar BiswasPosted May 12, 2015, 1:33 PM
Check this links..http://stackoverflow.com/questions/24888376/unable-to-send-email-through-exchange-server-in-a-php-based-website-question2an
http://phpmailer.worxware.com/
Kavitha MPosted May 6, 2015, 8:22 AM
Thanks for your reply. Our server is an exchange server not an SMTP server. Is there need to give credentials for exchange server
Afzaal Ahmad ZeeshanPosted May 6, 2015, 8:18 AM
Do you need to send your authentication key/value pair (username/password) also? If your server requires, then yes. You do need to send these values before you can send the email through their server.