homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

FormMail.pl installed but emails coming with no content!

Msg#: 4301699 posted 5:28 am on Apr 21, 2011 (gmt 0)

Hi. I have uploaded FormMail.pl from 2 different providers, edited the file, changed the permissions correctly and added the correct line of script to my form on my website. The e-mails are sending from my site and arriving in my inbox no problem.......other than the fact that there is no content (no name, e-mail or content text) Please help! This is the edited part of the form mail. Can you see anything wrong?

# --------------------------
# Modify these to your own settings. You might have to
# contact your system administrator if you do not run
# your own web server. If the purpose of these
# parameters seems unclear, please see the README file.
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = '/usr/sbin/sendmail -oi -t';
$postmaster = '';
@referers = qw(abigbridge.com);
@allow_mail_to = qw(admin@abigbridge.com);
@recipients = ();
%recipient_alias = ();
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %B %d, %Y at %H:%M:%S';
$style = '/css/nms.css';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$address_style = 0;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
From: you@your.com
Subject: form submission

Thank you for your form submission.




WebmasterWorld Senior Member 5+ Year Member

Msg#: 4301699 posted 6:34 am on Apr 21, 2011 (gmt 0)

Sounds like a weird bug. Are you sure the emails are completely empty and it's not that your client just doesn't show the content or your anti virus removed it?
Which email client do you use? it might be worth a shot to look at the raw message.


Msg#: 4301699 posted 6:43 am on Apr 21, 2011 (gmt 0)

Thanks for the quick reply. I'm using horde on my cpanel. Also the default sent message screen shows no content. I have tried other mail viewers but nothing.


Msg#: 4301699 posted 6:54 am on Apr 21, 2011 (gmt 0)

Also...look at the raw message? How do I do that?


WebmasterWorld Senior Member 5+ Year Member

Msg#: 4301699 posted 1:05 pm on Apr 21, 2011 (gmt 0)

Please use example.com in place of your own URL when posting examples of code such as your configuration file above.

I see nothing wrong with your settings, so I think the trouble is probably with your HTML code. Indeed, it looks like you forgot to insert the
NAME attribute into your INPUT tags. You have something like this:

<input type="text" value="Name:">

Nothing within that
INPUT tag tells FormMail.pl the significance of the input. It only says the input type is text and the default value is "Name:", but of what this is the default value, it cannot tell.

So you need to include the
NAME="" attribute in your INPUT tags, so that you might have something like this:

<input type="text" name="realname" value="Name:">
<input type="email" name="email" value="E-mail:">
<textarea name="message">Message:</textarea>

I'm not familiar with the precise values of the
NAME attributes, as these depend on the script you're using, so you'll probably have to dig into the manual to find them.
Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved