469,636 Members | 1,832 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,636 developers. It's quick & easy.

Calling PHP email program from a Perl Script

Hi,

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?

Rahul

Apr 3 '07 #1
1 1530
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 'f**@example.com'");

In PHP:

<?php
$recip = $_SERVER['argv'][1];
if (!isset($recip))
$recip = 'd**************@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!
Apr 3 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by M Wells | last post: by
3 posts views Thread by R Evans | last post: by
1 post views Thread by David Meier | last post: by
3 posts views Thread by David Bear | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.