# \[PHP\] Sending mail problem

**URL:** <https://forum.kirupa.com/t/php-sending-mail-problem/84267>\
**Category:** programming\
**Created:** [March 25, 2005, 9:02pm UTC](https://forum.kirupa.com/t/php-sending-mail-problem/84267 "2005-03-25T21:02:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [March 25, 2005, 9:02pm UTC](https://forum.kirupa.com/t/php-sending-mail-problem/84267/1 "2005-03-25T21:02:35Z")

</div>

I have a form that asks for the user’s name and email. Then I have another PHP file that sends the info to my email. Here is the PHP code below.

```auto

line 21 $msg = "Name: " . $name; . "
" . "Email: " . $email;
line 22 mail($to, $subject, $msg);

```

And here is the problem output:

```auto

Parse error: parse error, unexpected '.' in /home/neodream/public_html/jobprocessor.php on line 21

```

The form worked fine until I added in the new line command (  
) after $name. Maybe there’s something wrong with that?
