Parse Error Syntax Error Unexpected T_sl Heredoc
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site parse error syntax error unexpected t_sl php About Us Learn more about Stack Overflow the company Business Learn more about
Php Heredoc Syntax Error
hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss heredoc php Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Syntax error, unexpected
Php Eot
T_SL up vote 7 down vote favorite 1 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. Yet, in my registration script, I try to write some code that sends a CSS email, unexpected end of file but I get an error saying that there's a syntax error. Could someone please fill me in on this? $subject = "Your Red-line Account"; $css = "body{ color: #090127; background-color: #f0f0f0; }"; $to = $usercheck; //Message $message =<< Hi $first_name, Your Red-line account is almost complete. To finish, go to The Red-line and enter your eight digit confirmation code. Your confirmation code is: $code Sincerely, The Red-line Operator