PHP sendmail with InternetPost function

Questions and information about creating Internet aware NeoBook applications. Including PHP, HTML, FTP, HTTP, Email, etc.

Moderator: Neosoft Support

Locked
User avatar
Dudus
Posts: 120
Joined: Wed Sep 07, 2005 12:15 pm
Location: Hungary, Budapest

PHP sendmail with InternetPost function

Post 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
Neosoft Support
NeoSoft Team
Posts: 5628
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA
Contact:

Re: PHP sendmail with InternetPost function

Post 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.
NeoSoft Support
User avatar
Wrangler
Posts: 1531
Joined: Thu Mar 31, 2005 11:40 pm
Location: USA
Contact:

Re: PHP sendmail with InternetPost function

Post by Wrangler »

Take a look at WAMP. Apache, PHP, Mysql for windows installs on your computer. Open source.
Wrangler
--------------
"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour

Windows 7 Ultimate SP1 64bit
16GB Ram
Asus GTX 950 OC Strix
Software made with NeoBook
http://highdesertsoftware.com
Locked