Welcome to WebmasterWorld Guest from 54.197.116.116

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

FormMail.pl installed but emails coming with no content!

   
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?

# USER CONFIGURATION SECTION
# --------------------------
# 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.
#
BEGIN
{
$DEBUGGING = 1;
$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 = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
$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.

END_OF_CONFIRMATION
6:34 am on Apr 21, 2011 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



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.
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.
6:54 am on Apr 21, 2011 (gmt 0)



Also...look at the raw message? How do I do that?
1:05 pm on Apr 21, 2011 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



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.