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

Mailing Forms - How to?

Status
Not open for further replies.

Siberdude

Programmer
Apr 4, 2000
29
GB
Hey,<br>Anyone wanna tell me the command for writing to a Mail?? Ie sending a mail request via CGI<br>Thanks<br>Siberdude <p>Siberdude<br><a href=mailto:siberdude@settlers.co.uk>siberdude@settlers.co.uk</a><br><a href= - Settlers community site</a><br>16 years old, capable of:<br>
Html, CSS, Javascript, DHTML, Perl, and even a little JAVA<br>
Not that i like to brag :p
 
assuming some UNIX variant....<br><br># !/your/perl/path/perl....etc....<br>$mailprog = '/usr/lib/sendmail';<br>open (MAIL, &quot;¦$mailprog&nbsp;&nbsp;-f $whoFrom &quot;) ¦¦ &log(&quot;Failed to open mail pipe\n&quot;);<br><br>print MAIL &quot;mail stuff&quot;;<br><br>close MAIL;<br><br># end perl <br><br>If, in fact, you are on a UNIX variant, use the sendmail man pages to figure out<br>which chunks of the email you want to mess with ( ie.From:, Reply-To:, Subject:,<br>whatever.....).&nbsp;&nbsp;Just print the stuff you want to the opened MAIL handle.&nbsp;&nbsp;When you close the handle, the mail is gone.<br><br>Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top