PHP Mail() function

  • JakeBurgh
  • Newbie
  • Newbie
  • JakeBurgh
  • Posts: 5

Post 3+ Months Ago

Having some trouble with the PHP mail() function. Wondered if someone could point me in the right direction?

All of the variables have been predefined.

PHP Code: [ Select ]
$conflink="link/register.php?stage=3&id=". $id ."";
 $wronglink="link/register.php?stage=4&id=". $id ."";
 $to='link';
 $subject='Registration';
 $mail="$firstname $surname has registered. He manages the following teams \n
\n Division 1: $td1
\n Division 2: $td2
\n Division 3: $td3
\n Division 4: $td4
\n Division 5: $td5
\n Division 6: $td6
\n \n Please follow the following link to confirm these details are correct: $conflink
\n \n Or follow this link to alter the details: $wronglink";
 $from='Interstar Registrations';
 mail($to, $subject, $mail, $from);
 print "<center>Your details have been forwarded to the administrator. <br />They will be checked and verified before you can access your account";
  1. $conflink="link/register.php?stage=3&id=". $id ."";
  2.  $wronglink="link/register.php?stage=4&id=". $id ."";
  3.  $to='link';
  4.  $subject='Registration';
  5.  $mail="$firstname $surname has registered. He manages the following teams \n
  6. \n Division 1: $td1
  7. \n Division 2: $td2
  8. \n Division 3: $td3
  9. \n Division 4: $td4
  10. \n Division 5: $td5
  11. \n Division 6: $td6
  12. \n \n Please follow the following link to confirm these details are correct: $conflink
  13. \n \n Or follow this link to alter the details: $wronglink";
  14.  $from='Interstar Registrations';
  15.  mail($to, $subject, $mail, $from);
  16.  print "<center>Your details have been forwarded to the administrator. <br />They will be checked and verified before you can access your account";
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8388
  • Loc: USA

Post 3+ Months Ago

I think you should look through the PHP.net manual for the mail function as you aren't using the "from" thing correctly.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 136 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.