Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Problem in sending Form data via email

by George_Sherston (Vicar)
on Jul 05, 2002 at 21:07 UTC ( #179742=note: print w/replies, xml ) Need Help??


in reply to Problem in sending Form data via email

I'd guess that this is a programme that needs to be installed on your server, rather than on your local machine, though without seeing the script it's hard to say. Where have you installed it? If locally, that's probably (at least one part of the) problem. If you'd post the first few lines of the script, someone might be able to tell you.

Another possibility is that the directory where the file is located is not Perl-enabled. This is a problem of webserver configuration rather than Perl. Your ISP will tell you how to fix it - they will have a procedure for you to run CGI scripts (if they don't, you're *really* in trouble).

One final thought is that if you got your programme from Matt's Script Archive, you'd do well to replace it with the much better version that does all the same things but without tears, from nms.

George Sherston
  • Comment on Re: Problem in sending Form data via email

Replies are listed 'Best First'.
Re: Re: Problem in sending Form data via email
by hallian92 (Initiate) on Jul 06, 2002 at 04:42 UTC
    I have installed the following program on my desktop and trying to run on a Dos prompt while online but doesn't send mail. Here is the code that I am trying to test.
    <CODE>
    #!/usr/bin/perl -w
    use Mail::Mailer;
    print "\nTo: ";
    $dest = <STDIN>;
    chomp $dest;
    print "Subject: ";
    $subj = <STDIN>;
    chomp $subj;
    print "\nBody:\n";
    $body = <STDIN>;
    $mailer = Mail::Mailer->new("smtp", Server=> "pop.prodigy.net");
    $mailer->open( { From => 'Mr Grits <xyz@prodigy.net>',
    To => "burn_hall@yahoo.com",
    Subject => "TESTING THE MAIL" } )
    or die "Could'nt do it: $!\n";
    print $mailer $body;
    $mailer->close();

    thanks for help
      change this part:
      $mailer = Mail::Mailer->new("smtp", Server=> "pop.prodigy.net");
      with this :
      $mailer = Mail::Mailer->new("smtp", Server=> "smtp.prodigy.net");
      I think this is the problem cheers!!!!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://179742]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2019-07-19 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?