Posted by Toby A Inkster on 04/03/07 08:14
rahulthathoo wrote:
> After i finish some amount of computation using a perl script, i need
> to send out an email to a receipient which can change and is known to
> the Perl script. Is there a way to call the email.php(the php program
> to send out the email) passing to it the recipient email ID, from the
> perl script?
In Perl:
system("php email.php 'foo@example.com'");
In PHP:
<?php
$recip = $_SERVER['argv'][1];
if (!isset($recip))
$recip = 'default-address@example.com';
?>
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
Navigation:
[Reply to this message]
|