Page 1 of 1

PHP sendmail with InternetPost function

PostPosted: Sun Dec 17, 2017 3:51 am
by Dudus
Hello everybody!

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>"); 
}
?>


So ho can i do it from a browser titlebar or from NeoBook with InternetPost command?
Thank You!
Dudus

Re: PHP sendmail with InternetPost function

PostPosted: Thu Jan 11, 2018 7:03 pm
by Neosoft Support
Most servers won't allow an external program to execute a php script. It would be a huge security risk since it would allow anyone to use the server to send Spam.

Re: PHP sendmail with InternetPost function

PostPosted: Fri Jan 12, 2018 9:53 am
by Wrangler
Take a look at WAMP. Apache, PHP, Mysql for windows installs on your computer. Open source.