title: Syntax error, unexpected T_SL
body: <p>I'm fairly new to php and I'm using a script that creates a function called the "mime_mailer" which essentially allows me to use PHP to send emails that are able to be designed with CSS instead of being merely plain text. </p>
  
  <p>Yet, in my registration script, I try to write some code that sends a CSS email, but I get an error saying that there's a syntax error. Could someone please fill me in on this?</p>
  
  <pre><code>            $subject = "Your Red-line Account";
      $css     = "body{ color: #090127; background-color: #f0f0f0; }"; 
      $to     =   $usercheck;
  
      //Message
      $message =&lt;&lt;&lt;END 
                  &lt;html&gt;
                      &lt;head&gt;
                          &lt;title&gt;
                              Red-line
                          &lt;/title&gt;
                      &lt;/head&gt;
                      &lt;body&gt;
                          &lt;p&gt;
                              Hi $first_name, 
                          &lt;/p&gt; 
  
                          &lt;p&gt;
                              Your Red-line account is almost complete. To finish, go to &lt;a href='www.thered-line.com'&gt;The Red-line&lt;/a&gt; and enter your eight digit confirmation code.
                          &lt;/p&gt; 
  
                          &lt;p&gt;
                              Your confirmation code is: &lt;b&gt;$code&lt;/b&gt;
                          &lt;/p&gt; 
  
                          &lt;p&gt;
                              Sincerely,
                          &lt;/p&gt; &lt;br /&gt;
  
                          &lt;p&gt;
                              The Red-line Operator
                          &lt;/p&gt; 
                      &lt;/body&gt;
                  &lt;/html&gt;
              END;
  
                      //  To send HTML mail, the Content-type header must be set
          $headers    =   'MIME-Version: 1.0' . "\r\n";
          $headers    .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  
                      //  Additional headers
          $headers    .=  "From: The Red-line &lt;messages@theredline.com&gt;\r\n";
          $headers    .=  "To: $first_name $last_name &lt;$usercheck&gt;\r\n";
  
                      //  Mail it
          require_once("function_mime_mailer.php");
  
  
          mime_mailer($to, $subject, $message, $headers, NULL, $css); 
  }
  </code></pre>
  
  <p>Here is the code for the "function_mime_mailer.php" file.</p>
  
  <pre><code>  if(basename(__FILE__) == basename($_SERVER['PHP_SELF'])) send_404(); // stop http access           to         this file
  
   function mime_mailer($to, $subject, $message, $headers = NULL, $attachments = NULL, $css = NULL)
   {
         if(!preg_match('/^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-        z]{2,6})$/', $to)) return FALSE;
  if(preg_match('/&lt;(html|head|body|div|a|h|p|table|br|img|b|hr|ol|ul|span|pre|i|form)[^&gt;]*[^&gt;]*&gt;/i', $message)) $html = TRUE;
  
   if(stristr($message, '&lt;body')) $message = stristr($message, '&lt;body');
       $message = delete_local_links($message);
   if(empty($headers)){
       $headers = "MIME-Version: 1.0\n";
   }else{
       $headers.= "\nMIME-Version: 1.0\n";
   }
   if(empty($html)){
       $result = plain_text($message);
   }elseif(isset($html) and $html == TRUE){
       if(!isset($css)) $css = NULL;
       if(preg_match('/&lt;img[^&gt;]+&gt;/i', $message)){
         $result = multipart_related($message, $css);
     }else{
         $result = multipart_alternative($message, $css);
     }
   }
   $result['message'] = delete_non_cid_images($result['message']);
   if(!empty($attachments)){
     $parts = attachments($attachments);
     array_unshift($parts, implode('', $result));
     $result = multipart_mixed($parts);
   }
  $headers = $headers.$result['headers'];
  //print '&lt;pre&gt;'.htmlspecialchars($headers.$result['message']).'&lt;/pre&gt;';exit;
  if(mail($to, $subject, $result['message'], $headers)) return TRUE;
  return FALSE;
  }
  ?&gt; 
  </code></pre>