in reply to perl formmail question
I agree with stevieb. "Matt's Script Archive" was known as a pile of junk in 1995 when he started it. His versions of tools enabled people with (a) no programming ability and (b) no access to their server, to do something like what you are attempting, e.g. send an email through a form -- as long as you didn't care about security, or memory leaks, or the thing actually working all the time.
You should hire a Perl programmer and pay him or her to go into your server and redo your script with proper tools. Even the most unenlightened shared hosting company nowadays will have the necessary CPAN modules, such as MIME::Lite for example. Really, truly you should do this. It's an hour or two's work for anyone who knows what they are doing.
I see that you describe yourself as a "noobie" so maybe you would like to learn Perl: start by finding out what Perl modules your host server provides, and what is the procedure for installing them. If you are on a server using cPanel it should be just some buttons to click. When you have installed a module (or two) so that you can safely send emails using such tools, you can substitute your own script instead of the one you have, and you'll be able to use your same HTML page with the same form fields, so you don't have to worry about having to change the website. And then you'll be doing it right.
In the mean time, not that you should do this, because you should do what I suggested above, but try changing:
to:print MAIL "From: $Config{'email'} ($Config{'realname'})\n";
print MAIL "From: $Config{'realname'} <$Config{'email'}>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl formmail question
by Lotus1 (Vicar) on Aug 26, 2015 at 22:17 UTC | |
by 1nickt (Canon) on Aug 27, 2015 at 14:40 UTC |