Developer Support »

Ignore fields  (See more user questions)

Hi

There's 24 validation errors on the new test form:

Probably get rid of most of them with a HTML 4.01 doctype. Get rid of them
all, see if it helps.

The Windows operating system could be relevant, but you would need to see
the host about that, as I have no idea how your server is set up.

As I said before, your script sends mail, the BCC, so it seems ok in that
regard. It is only failing with the inputs from the form.

We could take the guesswork out of it, just hard-code a To: address
($my_email) into the script, in the conventional fashion (try the free
script attached) and if it works, you can then be certain that it's the
inputs from the form that are causing the problem.

If there are validation errors on the form, the form field values can get
corrupted.

Of course, when you have done all the above, you might find that it is
indeed a problem with your server, whereby it will only send BCC emails,
which does seem highly odd.

Any questions, just let me know.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

----- Original Message -----
Sent: Wednesday, September 16, 2009 10:45 PM
Subject: RE: FormToEmail-Pro script


> Hi Charles,
>
> The page I give you was a plain brand new blank html page, how could it
> have
> errors? Anyway, my boss told me to ask you of it matters that it is on a
> Windows server?
>
>
>> -----Original Message-----
>> Sent: Wednesday, September 16, 2009 4:49 PM
>> Subject: Re: FormToEmail-Pro script
>>
>> Hi
>>
>> That could be down to your server setup, you will need to ask your host
>> about that (you get some weird and wonderful configurations that one
>> cannot
>> guess at). Everything was sweet on your script.
>>
>> First though...that new form page still has validation errors on it.
>> Personally I would try a form with zero validation errors to see if the
>> problem persisted. The reason I think it is particularly relevant here
>> is
>> because you are not hard-coding a fixed email address into the script,
>> but
>> are using one based on an input from your form.
>>
>> The BCC works, that is hard-coded in your script and does not rely on any
>> form input. Where form input is involved, you start to get errors, the
>> form
>> itself has errors. I would look there.
>>
>> A simple HTML 4.01 doctype is perfectly good for a form.
>>
>> Any questions, just let me know.
>>
>> Best wishes.
>>
>> Charles Sweeney
>> https://formtoemail.com
>> The world's easiest feedback script!
>>
>> ----- Original Message -----
>> Sent: Wednesday, September 16, 2009 2:01 PM
>> Subject: RE: FormToEmail-Pro script
>>
>>
>> > Hi Charles,
>> >
>> > I placed the form into a plain clean page:
>> >
>> > Got this error when I filled out the form:
>> > Warning: mail() [function.mail]: SMTP server response: 503 5.5.2 Need
>> Rcpt
>> > command. in D:\sites\test\formtoemailpro.php on line
>> > 1620
>> >
>> > Warning: Cannot modify header information - headers already sent by
>> > (output
>> > started at D:\sites\test\formtoemailpro.php:1620) in
>> > D:\sites\test\formtoemailpro.php on line 1758
>> >
>> >
>> >> -----Original Message-----
>> >> Sent: Tuesday, September 15, 2009 5:48 PM
>> >> Subject: Re: FormToEmail-Pro script
>> >>
>> >> My pleasure,
>> >> Keep me posted.
>> >>
>> >> Charles Sweeney
>> >> https://formtoemail.com
>> >> The world's easiest feedback script!
>> >>
>> >> ----- Original Message -----
>> >> Sent: Tuesday, September 15, 2009 10:19 PM
>> >> Subject: RE: FormToEmail-Pro script
>> >>
>> >>
>> >> > Thanks Charles, I'll give it a look over in the morning.
>> >> >
>> >> >> -----Original Message-----
>> >> >> Sent: Tuesday, September 15, 2009 4:32 PM
>> >> >>
>> >> >> Hi
>> >> >>
>> >> >> All looks well on the script for the recipient code.
>> >> >>
>> >> >> There are some validation errors on the form page:
>> >> >>
>> >> >> http://validator.w3.org/
>> >> >>
>> >> >> ...otherwise, I can't think what would make it behave in the way it
>> >> does.
>> >> >>
>> >> >> Please let me know if I can assist further.
>> >> >>
>> >> >> Best wishes.
>> >> >>
>> >> >> Charles Sweeney
>> >> >> https://formtoemail.com
>> >> >> The world's easiest feedback script!
>> >> >>
>> >> >> ----- Original Message -----
>> >> >> Sent: Tuesday, September 15, 2009 1:29 PM
>> >> >> Subject: RE: FormToEmail-Pro script
>> >> >>
>> >> >>
>> >> >> > Der-da-derrrr. See attached.
>> >> >> >
>> >> >> >
>> >> >> >> -----Original Message-----
>> >> >> >> Sent: Monday, September 14, 2009 5:05 PM
>> >> >> >> Subject: Re: FormToEmail-Pro script
>> >> >> >>
>> >> >> >> Hi
>> >> >> >>
>> >> >> >> I need to see your script. I can't see it from that link, as
>> >> >> >> the
>> >> PHP
>> >> >> >> code
>> >> >> >> is not visible to the outside world (thankfully!).
>> >> >> >>
>> >> >> >> If you attach it to an email, I can look at it.
>> >> >> >>
>> >> >> >> Cheers.
>> >> >> >>
>> >> >> >> Charles Sweeney
>> >> >> >> https://formtoemail.com
>> >> >> >> The world's easiest feedback script!
>> >> >> >>
>> >> >> >> ----- Original Message -----
>> >> >> >> Sent: Monday, September 14, 2009 9:55 PM
>> >> >> >> Subject: RE: FormToEmail-Pro script
>> >> >> >>
>> >> >> >>
>> >> >> >> > Here you go:
>> >> >> >> >
>> >> >> >> >>> > My test page is here:
>> >> >> >> >>> > http://www..com/test/form.html
>> >> >> >> >>> >
>> >> >> >> >>> > Script is here:
>> >> >> >> >>> > http://www..com/test/formtoemailpro.php
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >> -----Original Message-----
>> >> >> >> >> Sent: Monday, September 14, 2009 4:49 PM
>> >> >> >> >> Subject: Re: FormToEmail-Pro script
>> >> >> >> >>
>> >> >> >> >> Hi
>> >> >> >> >>
>> >> >> >> >> I need to see your edited script. Sounds like there's a
>> coding
>> >> >> error
>> >> >> >> on
>> >> >> >> >> it.
>> >> >> >> >>
>> >> >> >> >> Please also give me the URL of the form page.
>> >> >> >> >>
>> >> >> >> >> Cheers.
>> >> >> >> >>
>> >> >> >> >> Charles Sweeney
>> >> >> >> >> https://formtoemail.com
>> >> >> >> >> The world's easiest feedback script!
>> >> >> >> >>
>> >> >> >> >> ----- Original Message -----
>> >> >> >> >> Sent: Monday, September 14, 2009 8:34 PM
>> >> >> >> >> Subject: RE: FormToEmail-Pro script
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> > Charles,
>> >> >> >> >> >
>> >> >> >> >> > That does part of the trick. It seems to be working and
>> giving
>> >> me
>> >> >> >> >> > all
>> >> >> >> >> the
>> >> >> >> >> > data, as long as I have an address in the BCC field.
>> >> >> >> >> >
>> >> >> >> >> > 1. If I remove the address from the BCC field, I get this
>> >> error:
>> >> >> >> >> >
>> >> >> >> >> > Warning: mail() [function.mail]: SMTP server response: 503
>> >> 5.5.2
>> >> >> >> >> > Need
>> >> >> >> >> Rcpt
>> >> >> >> >> > command. in
>> D:\sites\test\formtoemailpro.php
>> >> on
>> >> >> >> line
>> >> >> >> >> > 1620
>> >> >> >> >> >
>> >> >> >> >> > Warning: Cannot modify header information - headers already
>> >> sent
>> >> >> by
>> >> >> >> >> > (output
>> >> >> >> >> > started at
>> >> >> D:\sites\test\formtoemailpro.php:1620)
>> >> >> >> in
>> >> >> >> >> > D:\sites\test\formtoemailpro.php on line
>> >> >> >> >> > 1758
>> >> >> >> >> >
>> >> >> >> >> > 2. If I leave the address in the BCC field, I receive the
>> >> message
>> >> >> at
>> >> >> >> >> > the
>> >> >> >> >> > BCC
>> >> >> >> >> > address but not at any of the selected addresses.
>> >> >> >> >> >
>> >> >> >> >> > PLEH
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > Either way, it's not getting sent to any of the addresses
>> that
>> >> >> >> >> > are
>> >> >> >> >> > associated with the dropdown.
>> >> >> >> >> >
>> >> >> >> >> >> -----Original Message-----
>> >> >> >> >> >> Sent: Friday, September 11, 2009 1:44 PM
>> >> >> >> >> >> Subject: Re: FormToEmail-Pro script
>> >> >> >> >> >>
>> >> >> >> >> >> Hi
>> >> >> >> >> >>
>> >> >> >> >> >> Good to hear form you.
>> >> >> >> >> >>
>> >> >> >> >> >> You need to put the field NAME in the list to ignore, NOT
>> the
>> >> >> field
>> >> >> >> >> >> value.
>> >> >> >> >> >> So you would put "recipent" in the array instead, like so:
>> >> >> >> >> >>
>> >> >> >> >> >> $fields_to_ignore =
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> array('Submit','submit','recaptcha_challenge_field','recaptcha_response_fi
>> >> >> >> >> >> eld','captcha_code','recipient');
>> >> >> >> >> >>
>> >> >> >> >> >> Any questions, just let me know.
>> >> >> >> >> >>
>> >> >> >> >> >> Best wishes.
>> >> >> >> >> >>
>> >> >> >> >> >> Charles Sweeney
>> >> >> >> >> >> https://formtoemail.com
>> >> >> >> >> >> The world's easiest feedback script!
>> >> >> >> >> >>
>> >> >> >> >> >> ----- Original Message -----
>> >> >> >> >> >> Sent: Friday, September 11, 2009 4:58 PM
>> >> >> >> >> >> Subject: FormToEmail script
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> > Comments: Hello, need your help with the Ignore Fields.
>> >> >> >> >> >> >
>> >> >> >> >> >> > I read this:
>> >> >> >> >> >> > You will get the selected recipient showing up in the
>> body
>> >> of
>> >> >> the
>> >> >> >> >> email
>> >> >> >> >> >> > like "Recipient: recipient_1". If using the free script
>> you
>> >> >> will
>> >> >> >> >> >> > have
>> >> >> >> >> >> > to
>> >> >> >> >> >> > put up with this (for all it is). If you are using the
>> Pro
>> >> >> script
>> >> >> >> >> >> > you
>> >> >> >> >> >> can
>> >> >> >> >> >> > ignore the recipient input by naming it in the fields to
>> >> >> >> >> >> > ignore
>> >> >> >> >> >> > configuration option. This simply means you will not see
>> it
>> >> in
>> >> >> >> >> >> > the
>> >> >> >> >> body
>> >> >> >> >> >> of
>> >> >> >> >> >> > the email but the email will still go to the correct
>> >> recipient
>> >> >> as
>> >> >> >> >> >> selected
>> >> >> >> >> >> > from the list. Also, if using an email template with the
>> >> >> >> >> >> > Pro
>> >> >> >> version
>> >> >> >> >> of
>> >> >> >> >> >> > the script, you can omit the recipient field from the
>> body
>> >> of
>> >> >> the
>> >> >> >> >> >> > email.
>> >> >> >> >> >> >
>> >> >> >> >> >> > Did this:
>> >> >> >> >> >> > $fields_to_ignore =
>> >> >> >> >> >> >
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> array('Submit','submit','recaptcha_challenge_field','recaptcha_response_fi
>> >> >> >> >> >>
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>> eld','captcha_code','recipient_1','recipient_2','recipient_3','recipient_4
>> >> >> >> >> >> ');
>> >> >> >> >> >> >
>> >> >> >> >> >> > And got this:
>> >> >> >> >> >> > Name: bobs big boy
>> >> >> >> >> >> >
>> >> >> >> >> >> > Email: @comcast.net
>> >> >> >> >> >> >
>> >> >> >> >> >> > Email2: 3333333333
>> >> >> >> >> >> >
>> >> >> >> >> >> > Recipient: recipient_2
>> >> >> >> >> >> >
>> >> >> >> >> >> > Comments: testing
>> >> >> >> >> >> >
>> >> >> >> >> >> > Was hoping that would remove the Recipient line like the
>> >> >> >> >> >> > instructions
>> >> >> >> >> >> say.
>> >> >> >> >> >> >
>> >> >> >> >> >> > My test page is here:
>> >> >> >> >> >> > http://www..com/test/form.html
>> >> >> >> >> >> >
>> >> >> >> >> >> > Script is here:
>> >> >> >> >> >> > http://www..com/test/formtoemailpro.php
>> >> >> >> >> >> >
>> >> >> >> >> >> > Please advise.