Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email connection from CGI

Status
Not open for further replies.

samesale

Programmer
Sep 15, 2003
133
US
I have written the following program to allow the e-mail to connect a user to the e-mail from the CGI program. It does work. Please help.

#!/usr/bin/perl
print "Content-type:text/html\n\n";
use CGI;
$query = new CGI;
#email.cgi

$mailprog ='/usr/lib/sendmail';
$email ="sales\@xxxx.com";
open (MAIL, "| $mailprog $email") or die "Could not open Mailprogram:";
# connect to the email from here.

print "If interested contact by e-mail:";
print "location :
 
check out the faqs section of the Perl forum. There are several faqs on emails and I think a couple using sendmail.


If you still have questions, continue here.

'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top