PDA

View Full Version : Emails not reaching me from contact form



PaulP
08-24-2007, 12:00 PM
Can anyone please help? I have followed the BV tutorials and have managed to create a very simple contact form on my website that seems to work, as it directs me to the thank you action page.

However It seems like the results are going as unread emails directly to my Outlook express "deleted items" folder !

Can anyone tell me what may be wrong and how to correct this please?

VodaHost
08-24-2007, 12:10 PM
It sounds like you created a rule, create a new rulle in your outlook that will make them go to your inbox.

PaulP
08-24-2007, 12:28 PM
Thanks for the quick reply.
I've had a quick look and can't seem to find anything that would make them go to the deleted items box.
Could it be an error in the script on my action page? I did find that the video tutorial and written tutorial below it seemed to contradict each other slightly slight in what items ( in blue) to change of the html code.
Here is the script of my action page that I pasted in "beginning of body"
<?PHP
$mailto = "artisan-mayenne@wanadoo.fr";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "contact form submission";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>

PaulP
08-24-2007, 12:59 PM
OK - I've just found out what the problem was ! I hadn't named the email form field as "email"

PaulP
08-24-2007, 06:23 PM
Problem has returned I'm afraid

Hi Can anyone help with this please?

I've found out that my customer email responses (from my contact page form on my website), only ever reach me if the email form field has been completed by visitors to my site.

If the email box is left blank, and any other field is completed, then the emails go automatically to my deleted items folder in Outlook Express and so I miss them.

I do not seem to have any message rules set up and the email address has been working fine for years.

navaldesign
08-25-2007, 10:53 PM
Please check these deleted emails and see if the sender results to be the same as your own email address used for the form. If yes, it means that you have created a rule in your Outlook Express that sends in the Deleted Mail folder all those emails that are sent from this email address.

You can delete this rule, or you can modify one line of the script as followes:

if ($email == "") {
$email = "no_email@myform.com";
}

You don't really need to use this virtual email address, you can use anything similar.

PaulP
08-26-2007, 10:29 AM
Navaldesign you are a star!

I changed the script with the line you posted and it now all works fine. Many thanks for your help!

navaldesign
08-26-2007, 10:43 AM
You are very welcome.

KristineSheehan9@aol.com
08-30-2007, 10:45 PM
Hi -

I've posted re: this issue before but can't find answers! HELP!!

This is the message I receive when I fill out a test form from my link

http://www.themerrybird.com/service.html

I've rebuilt and still no luck, I've pasted Html in the "inside tag" - no luck...
I've changed html according to bv rep advice..... no luck!!

Help!!!!


A message that you sent contained no recipient addresses, and therefore no
delivery could be attempted.

------ This is a copy of your message, including all the headers. ------

To:
X-Autorespond: Order Submission
X-Loop:
From: "The Merry Bird" <info@themerrybird.com (info@themerrybird.com)>
Content-type: text/plain; charset=us-ascii
Subject: Thank you for flying in!
Message-Id: <E1IQrg7-0006ED-0X@voda7.vodahost.com (E1IQrg7-0006ED-0X@voda7.vodahost.com)>
Date: Thu, 30 Aug 2007 16:35:51 -0500

Thank you for inquiring about The Merry Bird...pen, ink and design.

If you just placed an order, you will be contacted shortly.

Thank you for flyin' in!

navaldesign
08-30-2007, 10:53 PM
1. You have no email field in your form.

2. the script DOES send you the mail, or the autoresponder would not be triggered.

Please post here the code that you have pasted in your action page