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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best submit script with attachments

Status
Not open for further replies.

marvelisticme

Technical User
Feb 3, 2005
70
US
Hi, all :) I'm not sure if I'm in the correct forum, but will start here and depend on you guys to redirect me if that is needed.

We are running a website using Apache 1.3.26, on Suse 8.3, and I need to know the best script to use for emailing with attachments on "submit" (cgi or perl). I'm not the web designer, but he doesn't know how to do it and I'm been given the responsibility of figuring it out for him, so please consider me a novice when responding :) Also, I don't know Linux, so I'm handicapped in that regard as well, but, I'm willing to learn, and that's all it takes most of the time...

If it helps, the form is at...

Thanks, in advance, for any help or ideas of where I might find help!
 
Hi

Taht is right, this question would be better answered in the forum452 ( CGI ).

But there is not much theory. Usually the [tt]sendmail[/tt] program is used to send the emails. Is opened through a pipe and the mail is wroten to its input. In Perl looks like this :
Code:
open MAIL,"|/usr/lib/sendmail -t";

print MAIL
"From: sender@example.com
To: destination@example.com
Subject: Hello dear destination

Hi.

Here should be the mail content.

Bye.";

close MAIL;

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top