|
|
 |
 |
|
 |
 |
Just lurking around? Why not join in? You could win free games just by chatting. Choose your Nickname in MyFreeola or Sign Up Here.
|
 |
|
Regular on 28/03/2007 at 8:17:00PM
Total Posts: 5 |
Can someone please tell me how I get my PERL script to work following the recent security changes? Here are the relevant lines of the script:
(sales@mysite.com is a Freeola address)
$mailprog = '/usr/sbin/sendmail';
$youmail = "sales\@mysite.com";
open (MAIL, "|$mailprog $youmail") || die "Can't open $mailprog!\n";
print MAIL ("Reply-To: $replyto\n");
print MAIL ("To: $youmail\n");
print MAIL ("From: sales\@mysite.com\n");
print MAIL ("Subject: $subject\n\n");
Thanks!
|
|
|
|
|
|
|
|
Bob
"Chief Webmaster"
Staff Moderator Send a message on 29/03/2007 at 1:12:12PM
Total Posts: 47
|
|
Try this code:
$mailprog = '/usr/sbin/sendmail';
$youmail = "sales\@mysite.com";
open (MAIL, "|$mailprog -f $youmail") || die "Can't open $mailprog!\n";
print MAIL ("Reply-To: $replyto\n");
print MAIL ("To: $youmail\n");
print MAIL ("From: sales\@mysite.com\n");
print MAIL ("Subject: $subject\n\n");
|
|
|
Gav1n
Regular on 29/03/2007 at 8:43:20PM
Total Posts: 5
|
|
No, that gives a 500 error.
|
|
|
Reg Stevens
Regular on 02/04/2007 at 7:19:48PM
Total Posts: 1
|
|
I had the same problem, following the Freeola changes.
You can keep your script, it looks fine. You just need to change the $mailprog line to:-
$mailprog = '/usr/sbin/sendmail -t -f some@freeolaaddress.com';
Then it should work.
|
|
|
Gav1n
Regular on 02/04/2007 at 9:54:27PM
Total Posts: 5
|
|
Yes, that worked.
Thanks for you help!
|
|
|
WSW
Regular on 13/10/2009 at 9:43:36AM
Total Posts: 1
|
|
Have there been any changes since, folks? I just cannot get the thing to work...
$mailprog='/usr/sbin/sendmail -t -f my@freeola_email_address';
$to='fred@flintstone.com';
$from= 'my@freeola_email_address';
open(MAIL, "|$mailprog") || die "Can't open $mailprog!n";
etc etc
Anyone spot anything wrong?
Steve
Reg Stevens wrote:
> I had the same problem, following the Freeola changes.
>
> You can keep your script, it looks fine. You just need to
> change the $mailprog line to:-
>
> $mailprog = '/usr/sbin/sendmail -t -f
> some@freeolaaddress.com';
>
> Then it should work.
|
|
|
|
|
 |
|
|