# Form-2-mail errors

**URL:** <https://forum.kirupa.com/t/form-2-mail-errors/283911>\
**Category:** programming\
**Created:** [March 12, 2009, 12:58pm UTC](https://forum.kirupa.com/t/form-2-mail-errors/283911 "2009-03-12T12:58:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimjiminyjimjim](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)\
**Post date:** [March 12, 2009, 12:58pm UTC](https://forum.kirupa.com/t/form-2-mail-errors/283911/1 "2009-03-12T12:58:33Z")

</div>

I’ve been using a form-2-mail script successfully for a couple of years without any problems - a few weeks ago it started throwing up a load of errors after submitting the form -

About 20 lines of this code:

Notice: Use of undefined constant HTTP\_HOST - assumed ‘HTTP\_HOST’ in E:\domains\c\*\*\*\*\*\*\*\*\*.co.uk\user\htdocs\form-2-mail.php on line 89

Then:

Notice: Use of undefined constant required - assumed ‘required’ in E:\domains\c\*\*\*\*\*\*\*\*\*.co.uk\user\htdocs\form-2-mail.php on line 105

Notice: Use of undefined constant errorpage - assumed ‘errorpage’ in E:\domains\c\*\*\*\*\*\*\*\*\*.co.uk\user\htdocs\form-2-mail.php on line 120

Warning: Cannot modify header information - headers already sent by (output started at E:\domains\c\***.co.uk\user\htdocs\form-2-mail.php:89) in E:\domains\c\***.co.uk\user\htdocs\form-2-mail.php on line 121

I’ve attached the form2mail script.

I’m guessing there’s been a server upgrade as I haven’t changed anything in this script - I would really appreciate any help on sorting out this problem as my webhost has been very unhelpful with this.

Thanks.
