Source language: Translate to:

PHP sendmail with InternetPost function

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

Moderator: Neosoft Support

PHP sendmail with InternetPost function

Postby Dudus » Sun Dec 17, 2017 3:51 am

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
User avatar
Dudus
 
Posts: 118
Joined: Wed Sep 07, 2005 12:15 pm
Location: Hungary, Budapest

Re: PHP sendmail with InternetPost function

Postby Neosoft Support » Thu Jan 11, 2018 7:03 pm

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

Re: PHP sendmail with InternetPost function

Postby Wrangler » Fri Jan 12, 2018 9:53 am

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
User avatar
Wrangler
 
Posts: 1515
Joined: Thu Mar 31, 2005 11:40 pm
Location: USA


Return to NeoBook and the Internet

Who is online

Users browsing this forum: No registered users and 1 guest

cron