GetDotted Domains

Viewing Thread:
"Emailing form data using PERL"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Wed 28/03/07 at 20:17
Regular
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:

([email protected] 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!
Tue 13/10/09 at 09:43
Regular
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='[email protected]';
$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
> [email protected]';
>
> Then it should work.
Mon 02/04/07 at 21:54
Regular
Posts: 5
Yes, that worked.

Thanks for you help!
Mon 02/04/07 at 19:19
Regular
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 [email protected]';

Then it should work.
Thu 29/03/07 at 20:43
Regular
Posts: 5
No, that gives a 500 error.
Thu 29/03/07 at 13:12
Regular
Posts: 612
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");
Wed 28/03/07 at 20:17
Regular
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:

([email protected] 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!

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Easy and free service!
I think it's fab that you provide an easy-to-follow service, and even better that it's free...!
Cerrie
Impressive control panel
I have to say that I'm impressed with the features available having logged on... Loads of info - excellent.
Phil

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.