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

Piping file thru perl to sendmail

Status
Not open for further replies.

marybailey

Programmer
Mar 14, 2002
47
US
Help!
I am writing a Tell A Friend option on a website which gives the visitor the ability to forward information that is on the site such as the about us information.

1. Do I have to set it up so each line I want sent has the " print MAIL "info I want sent\n";"? Or is there a way to pipe in the original file as is?
2. Is there a way, besides a link, to send a web page via sendmail?

Thanks!
Mrs B
 
Hi Mrs B,

You can do the normal redirection trick in the system command if you'd prefer.

system('sendmail me@home < source_file');

the web page I don't know about, sorry Mike
______________________________________________________________________
&quot;Experience is the comb that Nature gives us after we are bald.&quot;

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top