Having a few issues with a flash contacts page as it does not send my email. Could someone please check and comment.
The
php is:
- Code: Select all
<?php
mail("your@emailhere.com", $subject, $message, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>
and the action script code on the whole page is:
- Code: Select all
stop();
function lineAdapt() {
message_send = message;
while (msg_count<length(message)) {
msg_count = msg_count+1;
if ((substring(message_send, msg_count, 2)) eq "\r") {
message_send = (substring(message_send, 1, msg_count-2)) add "\n" add (substring(message_send, msg_count+2, (length(message_send))-msg_count+2));
}
}
message = message_send;
delete msg_count;
delete message_send;
}
and on the button:
- Code: Select all
on (release) {
if (subject eq "" or message eq "" or from eq "") {
stop();
} else {
lineAdapt();
loadVariablesNum("mail.php3", 0, "POST");
gotoAndStop(2);
}
}
it then goes to a new frame, confirming email sending:
I have attached my .
fla file so people can see what I have done.