I have to try to make a send e-mail php using neobook InternetPost function, but im not sure how to do this. I have the following php script which
can do it when you execute on server, but i don't know how to modify the code if I want to execute with variables from neobook.
So the sendmail.php on remote server looks like:
Code: Select all
<?php
$to = "mail@mail.com"; ----//this section should be modified from a NeoBook variable like [the_recepient_mail_address]
$subject = "Hi!";
$body = "Hi,\n\nHow are you?"; ---//this section should be modified from a NeoBook variable like [the_information]
$headers = "From: example@example.com\r\n".
"X-Mailer: php";
if (mail($to, $subject, $body, $headers)) {
echo("<p>Message sent!</p>");
}
else {
echo("<p>Message delivery failed...</p>");
}
?>
Thank You!
Dudus