私はDrupalサイトで作業しています。私はphpメール機能を使用してそのサイトにメール機能を追加しました。私はmozilla thunderberdを使ってメールを正しく検索しました。とにかくコードを変更せずに全く動作していません。以下は、私が電子メールを送信するために使用したコードです。私はmootools.hereを使用して、このメール機能を発射するAjaxのreqestを使用PHPを使用してメールを送信
$success = mail('[email protected]','hi',$message);
if($success){
print "email send successfully";
}else{
print "email sending failed";
}
はその
$('emailButton').addEvent('click', function(event) {
alert("hi I am here");
event.stop();
var hello = 'hello world.......!';
var req = new Request({
method: 'post',
url: 'mail.php',
data: { 'hello' : hello },
onRequest: function() { alert('The request has been made, please wait until it has finished.'); },
onComplete: function(response) { alert('The response is the following : ' + response); }
}).send();
});
のコードがその作業と同じコードのために働いていないために何らかの理由があるのですか?