Emailing form data using PERL
Freeola Internet Get Dotted Domains Chat & Gaming
Freeola Gaming
Free 360 Games
Freeola Games HomeChat ForumsCheatsWalkthroughsTips & TrophiesReviewsWin Free GamesMyFreeolainvader-bob
£50,000 Domain Giveaway. Get Your FREE .info Domain Name Today!
 
Browse Chat Forums:
 Chat Forums Home View Latest Post Chat Rules Chat Safety & Tips Top Posters
  Games Homepage  Win Free Games  Latest Winners  Hall of Fame  See Who's Online  Update Your Profile
  Free Web Site  Free Domain Hosting  Emergency Internet  Broadband Offers  Broadband Speed Test
 

Did you know...?

Premium Customer Support

HTML & PHP Chat & Help

Visit our Support Pages E-mail a Support Request Contact Us

NOD32 Antivirus available from Freeola

nothing
You Are Here Chat Home (84)   Web Development & Technical Chat  Emailing form data u...
Just lurking around? Why not join in? You could win free games just by chatting. Choose your Nickname in MyFreeola or Sign Up Here.
 
 
 General Chat     Web and Technical Chat     Games Chat     Game Reviews   
 
Emailing form data using PERL
Regular
on 28/03/2007 at 8:17:00PM
Total Posts: 5
Original Post:
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!
View More Threads Post a Reply  
Displaying 1 - 5 of 5 Replies:
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.
 
Your Details MyFreeola Internet Settings Control Panel Your Details
Login or create a free account.
Forgotten your password?
Free Account Sign-Up
 
Your Details
Search
 
 
 
Fantastic FREE Unlimited Services for every freeola internet customer in the UK!
Register Domain Names. Buy from £2.99
e.g. yourcompany.com
or just yourcompany.
MORE ABOUT DOMAIN NAMES