|
-
Jun 23rd, 2001, 08:59 PM
#1
sendmail
can anybody show me a quick script in PERL using sendmail? I've been trying to do it, and I keep getting errors when I run it.
Thanks
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jun 24th, 2001, 10:35 AM
#2
hi Crpt
this is one example, if you want another you need to wait till I get home. I have another one that is more easier to read.
Code:
open(MAIL, "|$mail_program -t") || die "Can't open $mail_program!\n";
print MAIL<<EOF;
To: $admin_email
From: $as{'user_email'}
Subject: New Code $email_fields[0] Posted: $email_fields[10]
A new code has been posted to the $site_name web site. The code information is as follows.
Name: $as{'user_name'} ($as{'user_nickname'})
Email: $as{'user_email'}
Category: $as{'category_name'}
NAME OF SCRIPT: $email_fields[10]
EOF
if this don't help what type of errors are you getting?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|