# Whats wrong with this? (php mail)

**URL:** <https://forum.kirupa.com/t/whats-wrong-with-this-php-mail/36573>\
**Category:** programming\
**Created:** [November 28, 2003, 12:59pm UTC](https://forum.kirupa.com/t/whats-wrong-with-this-php-mail/36573 "2003-11-28T12:59:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m\_andrews808](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@m\_andrews808](https://forum.kirupa.com/u/m_andrews808)\
**Post date:** [November 28, 2003, 12:59pm UTC](https://forum.kirupa.com/t/whats-wrong-with-this-php-mail/36573/1 "2003-11-28T12:59:05Z")

</div>

```php

<?

mail( "Mark <m_andrews808@hotmail.com>" , "test" , "this is a test message", "MarkTest <me@me.com>");

?>

```

its been a while since I’ve touched php, and I didn’t know how to do much in the first place. I’m just trying to set up a simple email form so I’m using this script to test my free php host will let me do send mail. Problem is when I load the page it just says there’s an error. Can anyone see whats wrong with this or do you think it should work without problem.

Thanks :love:
