Jump to content

mail code isnt working


dad00

Recommended Posts

<?php
$gamename = game name;
$gamed = a game;
$achievements = fun fun fun;

$to      = '[email protected];
$subject = 'New game'.$game_name;
$message = 'You have a new game '.$game_name.' the description is '.$gamed. ' he wants these achievements '.$achievements;

echo $message;
mail($to, $subject, $message);
?>

 

 

why dosent it work on localhost (no stmp so i know it wont send) i get this error:

Parse error: parse error in C:\wamp\www\mail.php on line 2

While on 110mb i get this error:

Parse error: syntax error, unexpected T_STRING in /www/110mb.com/d/a/d/0/0/_/_/_/dad00/htdocs/mail.php on line 4

 

http://dad00.110mb.com/mail.php

Link to comment
https://forums.phpfreaks.com/topic/145724-mail-code-isnt-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.