View Full Version : Newbie cant work this out, Receive email but browser says prob
tom182
20-Jun-2006, 12:28 PM
:confused: :o
Part 1 I download the formmail.php edited it in Notepad and did the test alert, Fine no problems, the test email gets sent.
can someone please clarify the following (simply as I am not a programmer but just dabble the odd time when needed)
Forum documentation says $TARGET_EMAIL = array("^jack@smithy\.org$"); so in my case I would use soemthing like
"$TARGET_EMAIL = array(^tom@kinleygroup\.com$);
BUT
in the help text in the actual formmail.php it says to "repalce yourhost\.com" with your mail server's name)" which i am told is mail.kinleygroup.com
Part 2 I downloaded the sampleform.txt,
1) Put the full address of the formmail.php addess in the action value
2) put the email address that I want the results to go to in the 'recipeints' value
3)did not change the default values for the required values- i.e. I did not edit that line
4)left subject title as default, i.e. I did not edit that line either
Hence I only edited steps 1 & 2 for the sample form.
Bottom line is that the form does send an email but the browser sees an error displayed ?
form is here www.kinleygroup.com/contact.htm (http://www.kinleygroup.com/contact.htm) and my default one from this site is at www.kinleygroup.com/sampleform.htm (http://www.kinleygroup.com/sampleform.htm)
Anyways I am off to pull my hair out and stick pins in my eyes,
appreciate any help ,
Thanks,
Tom
tom182
20-Jun-2006, 12:48 PM
ok so its telling me thatr the form has an internal error i.e. i have no valid recipeints WTF?
I downloaded the sampleform and changed the recipients value to the address I want it to go to, again I get the email but the viewer sees an error after submitting. This is so frustrating, I suppose I am now meant to sign up for the paid support ;) to resolve this.
Please any info is muchly appreciated,
Thanks,
Tom
crabtree
20-Jun-2006, 09:40 PM
Hi,
:confused: :o
"$TARGET_EMAIL = array(^tom@kinleygroup\.com$);
this is correct, but dont forget the quotes!
[/quote]
BUT
in the help text in the actual formmail.php it says to "repalce yourhost\.com" with your mail server's name)" which i am told is mail.kinleygroup.com
terminology is slighlt askew. probably should say "domain name" instead of "mail server name".
Bottom line is that the form does send an email but the browser sees an error displayed ?
form is here www.kinleygroup.com/contact.htm (http://www.kinleygroup.com/contact.htm) and my default one from this site is at www.kinleygroup.com/sampleform.htm (http://www.kinleygroup.com/sampleform.htm)
the sampleform shows an error and says it alerted you. what does the alert say ?
crabtree
20-Jun-2006, 09:43 PM
ok so its telling me thatr the form has an internal error i.e. i have no valid recipeints WTF?
I downloaded the sampleform and changed the recipients value to the address I want it to go to, again I get the email but the viewer sees an error after submitting. This is so frustrating, I suppose I am now meant to sign up for the paid support ;) to resolve this.
if youve put a valid email address in recipients (which your sample for seems to have), then it's just your setting of $TARGET_EMAIL.
you seem to be close with it. just copy one of the many examples near that setting in formmail.php
tom182
21-Jun-2006, 10:16 AM
Crabtree, thanks for your help.
This si the error I am getting
The following error occurred in FormMail :
no_valid_recipients
**********
Error=The form has an internal error - no valid recipients were specified.
I have attached a screengrab of the lines I modified in the formmail.php (using notepad) can you reccommend one that cna list the line numbers-preferably freeware :o),
http://www.kinleygroup.com/wtf.jpg
Hopefully I have missed something basic-
thanks,
Tom
david_de
21-Jun-2006, 11:10 PM
Hi,
Try this
$TARGET_EMAIL = array(EMAIL_NAME."@kinlaygroup\.com$");
define("DEF_ALERT","tom@kinlaygorup.com");
For a PHP Editor try PHP Designer 2006 (http://www.mpsoftware.dk/)
tom182
22-Jun-2006, 08:58 AM
:( nope doesnt work :( (and I used the corrected address)
I am now receiving this message
"To: tom@kinleygroup.com (tom@kinleygroup.com)
From: FormMail@www.kinleygroup.com (FormMail@www.kinleygroup.com)
The following error occurred in FormMail :
mail_failed
**********
Error=Failed to send email "
but again I receive the form results and the browser gets the error page after hitting the submit button,
Does anyone out there know of another sendmail, formmail that I can use as I am about to give up on this script :mad:
thanks
Tom
david_de
22-Jun-2006, 04:09 PM
Ok the message from formmail@XXXXXXXXX is an error message. The data from the form should have come with a from address for your server not formmail. At least that is the way mine works.
On finding another Form Mail script. Good luck. The reason I use this one is because it is the best I have ever seen. It has to be some simple little detail that is causing the problem.
tom182
23-Jun-2006, 10:16 AM
Quote> "On finding another Form Mail script. Good luck."
unfortunately Dave I've no choice, my changes were correct and it just doesnt work :( :mad:
Tom
asket
02-Jul-2006, 11:03 AM
in your sampleform.htm you have:
<input type="hidden" name="recipient" value="tom">
but correctly it should be recipients and an email address, e.g.:
<input type="hidden" name="recipients" value="tom@yourdomain.com">
regarding your contact.htm file
there you've forgotten the "" (.. method=post ..) .. it rather has to be:
<form action="http://www.kinleygroup.com/formmail.php" method="post">
as well as you've to change the hidden redirect thing to:
<input type="hidden" name="good_url" value="http://www.kinleygroup.com/thankyou.htm">
I hope that's it ...
asket
02-Jul-2006, 01:56 PM
in your sampleform.htm you have:
<input type="hidden" name="recipient" value="tom">
but correctly it should be recipients and an email address, e.g.:
<input type="hidden" name="recipients" value="tom@yourdomain.com">
... unless you are using a .ini file for configuration (in that case value="tom" can be correct, too – I don't know if you're using one and if yes, how it's configured)
Powered by vBulletin® Version 4.1.4 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.