Hi there
If I enter the following at the command line, I
successfully get an email sent to the correct name/email:
php /var/www/html/admin/adminscripts/welcome-cli.php
'Me' 'me@me.net'
However, if I visit
"http://www.example.com/example.php?
vID=Me&vUser=me @me.net"
which consists of the following:
<?php
@$vID = $_REQUEST['vID'];
@$vUser = $_REQUEST['vUser'];
exec('php /var/www/html/admin/adminscripts/welcome-
cli.php $vID $vUser');
?>
the email does not get sent.
I thought, "hmm, maybe $vID and $vUser are getting passed
as '$vID' and '$vUser' instead of 'Me' and 'me@me.net' so
I tried: (please excuse the line breaks)
<?php
@$vID = $_REQUEST['vID'];
@$vUser = $_REQUEST['vUser'];
$vExecString = "php
/var/www/html/admin/adminscripts/welcome-cli.php $vID
$vUser";
exec('$vExecStr ing');
?>
but still, the e-mail does not get sent. Does anyone
have any ideas/suggestions on how I can do this properly?
I've also tried system() and shell_exec() but to no
avail.
You might be asking why I am taking this route... the
answer is that the REAL script (the above is just a test)
will be sending 4,000+ emails, and I'd like to send the
website user to a new webpage immediately instead of
having stare at a blank browser window until the emails
get sent. Hence, my idea was to call the e-mail script
via the command line and send the user on their way to
view other pages while the mail gets sent in the
background.....
The system is a Linux box, Apache 2, PHP 5.0.2
I did not include any source from "welcome-cli.php"
because it is working properly via the command line
(telnet).
Thanks in advance....
If I enter the following at the command line, I
successfully get an email sent to the correct name/email:
php /var/www/html/admin/adminscripts/welcome-cli.php
'Me' 'me@me.net'
However, if I visit
"http://www.example.com/example.php?
vID=Me&vUser=me @me.net"
which consists of the following:
<?php
@$vID = $_REQUEST['vID'];
@$vUser = $_REQUEST['vUser'];
exec('php /var/www/html/admin/adminscripts/welcome-
cli.php $vID $vUser');
?>
the email does not get sent.
I thought, "hmm, maybe $vID and $vUser are getting passed
as '$vID' and '$vUser' instead of 'Me' and 'me@me.net' so
I tried: (please excuse the line breaks)
<?php
@$vID = $_REQUEST['vID'];
@$vUser = $_REQUEST['vUser'];
$vExecString = "php
/var/www/html/admin/adminscripts/welcome-cli.php $vID
$vUser";
exec('$vExecStr ing');
?>
but still, the e-mail does not get sent. Does anyone
have any ideas/suggestions on how I can do this properly?
I've also tried system() and shell_exec() but to no
avail.
You might be asking why I am taking this route... the
answer is that the REAL script (the above is just a test)
will be sending 4,000+ emails, and I'd like to send the
website user to a new webpage immediately instead of
having stare at a blank browser window until the emails
get sent. Hence, my idea was to call the e-mail script
via the command line and send the user on their way to
view other pages while the mail gets sent in the
background.....
The system is a Linux box, Apache 2, PHP 5.0.2
I did not include any source from "welcome-cli.php"
because it is working properly via the command line
(telnet).
Thanks in advance....
Comment