Re: Mailing Script

2004-07-14 Thread Bill Jones
--- Gunnar Hjalmarsson [EMAIL PROTECTED] wrote: One web surfer - one web page. Don't understand what you mean by that. :) Well YOU ask THEM to surf to YOUR web site to fill out and HTML page =/ :) But then you E-MAIL them a reply. Why not just say what you want on the web page itself?

Re: Mailing Script

2004-07-14 Thread Gunnar Hjalmarsson
Bill Jones wrote: Well YOU ask THEM to surf to YOUR web site to fill out and HTML page =/ But then you E-MAIL them a reply. Why not just say what you want on the web page itself? Believe me - I understand you have a CPAN module for replying via e-mail (I seen it) - http://search.cpan.org/~gunnar/

Re: Mailing Script

2004-07-12 Thread Bill Jones
--- Randal L. Schwartz [EMAIL PROTECTED] wrote: Werner == Werner Otto [EMAIL PROTECTED] writes: Werner $email = param(email); Do *not* send email to addresses taken from forms. Ever. HTML + CGI + E-Mail = VeryBadThing... Well, at any rate, the best place to see if you are listed is at:

Re: Mailing Script

2004-07-12 Thread Bill Jones
--- Gunnar Hjalmarsson [EMAIL PROTECTED] wrote: one submitted address, the messages are plain text, and the size is limited). If some idiot would use it for sending unsolicited messages (has never happened so far), I would know and would be able to take actions. The only realistic option is

Re: Mailing Script

2004-07-12 Thread Gunnar Hjalmarsson
Bill Jones wrote: Gunnar Hjalmarsson wrote: Gunnar Hjalmarsson wrote: If you want to contact me privately, you can click the link below. If you fill the form, including your own email address, and submit it, you'll receive a copy of the message. That's for your record, for your convenience.

Mailing Script

2004-07-08 Thread Werner Otto
Hi All, I have this script mentioned below. When I run it from command line: perl test.cgi all works as it should. When I run it from my browser it only writes the file displays the confirmation, but does NOT email my files. From command line everything works. #!/usr/bin/perl use CGI

Re: Mailing Script

2004-07-08 Thread Gunnar Hjalmarsson
Werner Otto wrote: I have this script mentioned below. When I run it from command line: perl test.cgi all works as it should. When I run it from my browser it only writes the file displays the confirmation, but does NOT email my files. snip my $my_file_gif = 'logo.gif'; snip my $my_file_zip =

Re: Mailing Script

2004-07-08 Thread Werner Otto
Gunnar Hjalmarsson wrote: Werner Otto wrote: I have this script mentioned below. When I run it from command line: perl test.cgi all works as it should. When I run it from my browser it only writes the file displays the confirmation, but does NOT email my files. snip my $my_file_gif = 'logo.gif';

Re: Mailing Script

2004-07-08 Thread Gunnar Hjalmarsson
Werner Otto wrote: I would try changing those to full paths. It's not advisable to rely on an assumption about the working directory. Optionally you can set the working directory with the chdir() function. I have changed the path to the full path concerning the files attachments. Still it doesn't

Re: Mailing Script

2004-07-08 Thread Werner Otto
Gunnar Hjalmarsson wrote: Werner Otto wrote: I would try changing those to full paths. It's not advisable to rely on an assumption about the working directory. Optionally you can set the working directory with the chdir() function. I have changed the path to the full path concerning the files

Re: Mailing Script

2004-07-08 Thread Gunnar Hjalmarsson
Werner Otto wrote: Gunnar Hjalmarsson wrote: If you don't get any error messages, another theory is that it has something to do with the configuration of the mail server. You could for instance try to change my $mail_host = 'smtp.dcs.kcl.ac.uk'; to my $mail_host = 'localhost'; I can't see

Re: Mailing Script

2004-07-08 Thread Werner Otto
Gunnar Hjalmarsson wrote: Werner Otto wrote: Gunnar Hjalmarsson wrote: If you don't get any error messages, another theory is that it has something to do with the configuration of the mail server. You could for instance try to change my $mail_host = 'smtp.dcs.kcl.ac.uk'; to my $mail_host =

Re: Mailing Script

2004-07-08 Thread Gunnar Hjalmarsson
Werner Otto wrote: I've tried to change to localhost , no go... Okay. Add this line at the top of the script: use CGI::Carp 'fatalsToBrowser'; Change this line: $msg-send; to $msg-send or die Error sending msg: $!; -- Gunnar Hjalmarsson Email:

Re: Mailing Script

2004-07-08 Thread Werner Otto
Gunnar Hjalmarsson wrote: Werner Otto wrote: I've tried to change to localhost , no go... Okay. Add this line at the top of the script: use CGI::Carp 'fatalsToBrowser'; Change this line: $msg-send; to $msg-send or die Error sending msg: $!; Thank you, you are a Genius... The

Re: Mailing Script

2004-07-08 Thread Gunnar Hjalmarsson
Werner Otto wrote: Gunnar Hjalmarsson wrote: Add this line at the top of the script: use CGI::Carp 'fatalsToBrowser'; The permissions on running.pdf was not correct. It helps if you know how to debug! Talking about debugging... You should get the habit of including: use strict; use

Re: Mailing Script

2004-07-08 Thread Werner Otto
Gunnar Hjalmarsson wrote: Werner Otto wrote: Gunnar Hjalmarsson wrote: Add this line at the top of the script: use CGI::Carp 'fatalsToBrowser'; The permissions on running.pdf was not correct. It helps if you know how to debug! Talking about debugging... You should get the habit of including:

Re: Mailing Script

2004-07-08 Thread Wiggins d Anconia
Gunnar Hjalmarsson wrote: Werner Otto wrote: Gunnar Hjalmarsson wrote: Add this line at the top of the script: use CGI::Carp 'fatalsToBrowser'; The permissions on running.pdf was not correct. It helps if you know how to debug! Talking about debugging... You

Re: Mailing Script

2004-07-08 Thread Werner Otto
Wiggins d Anconia wrote: Gunnar Hjalmarsson wrote: Werner Otto wrote: Gunnar Hjalmarsson wrote: Add this line at the top of the script: use CGI::Carp 'fatalsToBrowser'; The permissions on running.pdf was not correct. It helps if you know how to debug!

Re: Mailing Script

2004-07-08 Thread Gunnar Hjalmarsson
Werner Otto wrote: When I include warnings and strict is give me allot of warnings. They are not warnings, they are fatal errors. What do they mean? They mean that you are using variables without declaring them first. You should not take those error messages too literally. If you did, you'd end

Re: Mailing Script

2004-07-08 Thread Wiggins d Anconia
Wiggins d Anconia wrote: snip When I include warnings and strict is give me allot of warnings. What do they mean? h1Software error:/h1 preGlobal symbol quot;$surnamequot; requires explicit package name at ola.cgi line 15. snip ola.cgi had compilation errors. /pre p For

Re: Mailing Script

2004-07-08 Thread Randal L. Schwartz
Werner == Werner Otto [EMAIL PROTECTED] writes: Werner $surname = param(surname); Werner $name= param(forename); Werner $email = param(email); I'm not sure what the rest of the script does, but if you put this on a form and then send email to that address, you will incur my wrath, and

Re: Mailing Script

2004-07-08 Thread Werner Otto
Randal L. Schwartz wrote: Werner == Werner Otto [EMAIL PROTECTED] writes: Werner $surname = param(surname); Werner $name= param(forename); Werner $email = param(email); I'm not sure what the rest of the script does, but if you put this on a form and then send email to that

Re: Mailing Script

2004-07-08 Thread Randal L. Schwartz
Werner == Werner Otto [EMAIL PROTECTED] writes: Do *not* send email to addresses taken from forms. Ever. Werner why is that? Because you have no authentication of the requestor. Any fool can go to your website, enter [EMAIL PROTECTED], and all of a sudden, I get a big PDF shoved down my

Re: Mailing Script

2004-07-08 Thread Gunnar Hjalmarsson
Randal L. Schwartz wrote: Werner Otto writes: Randal L. Schwartz wrote: Do *not* send email to addresses taken from forms. Ever. why is that? Because you have no authentication of the requestor. Any fool can go to your website, enter [EMAIL PROTECTED], and all of a sudden, I get a big PDF shoved

Re: Mailing Script

2004-07-08 Thread Camilo Gonzalez
Gunnar Hjalmarsson wrote: Randal L. Schwartz wrote: Werner Otto writes: Randal L. Schwartz wrote: Do *not* send email to addresses taken from forms. Ever. why is that? Because you have no authentication of the requestor. Any fool can go to your website, enter [EMAIL PROTECTED], and all of a

Re: Mailing Script

2004-07-08 Thread Randal L. Schwartz
Camilo == Camilo Gonzalez [EMAIL PROTECTED] writes: Camilo It may behoove you to send a confirmation email with a link Camilo that when clicked will opt in a user. This double opt-in Camilo procedure has become standard operating procedure for Camilo considerate marketers and an integral part

Re: Mailing Script

2004-07-08 Thread Gunnar Hjalmarsson
Camilo Gonzalez wrote: Gunnar Hjalmarsson wrote: I think you are exaggerating, Randal. How much convenience are you ready to sacrifice in order to fight possible abusers? If you want to contact me privately, you can click the link below. If you fill the form, including your own email address, and

Re: Mailing Script

2004-07-08 Thread Brad Lhotsky
Actually, it wasn't too long ago that someone posted a message here saying HELP Spammers have been using my cgi mailer to mass people and my ISP is threatening to shut me down!. When dealing with email.. always taint check and sanitize data. Never allow someone to post the To or Cc address,

Re: Mailing Script

2004-07-08 Thread Gunnar Hjalmarsson
Brad Lhotsky wrote: Gunnar Hjalmarsson wrote: If you want to contact me privately, you can click the link below. If you fill the form, including your own email address, and submit it, you'll receive a copy of the message. That's for your record, for your convenience. Personally I think that makes