Multiple or Malformed new lines error with PHP email -


i'm getting error warning: mail() multiple or malformed new lines found in additional header... have tried giving $message variables different variable name, nothing works.

there error coming last line posted in this..

mail($to,$subject,$message,$headers); 

full code

$to = $approved_email;         $subject = 'there new user request join ';         $message = '         <html>         <head>             <title>new user request</title>         </head>         <body>             <p>hi '.$approved_firstname.',</p><br>             <p>your  account has been accepted. have been added group. sign in, click link             http://example.com . </p><br>             <p>thank you,</p>             <p>administration</p>         </body>         </html>         ';          $from = "user-requests@example.com";         $bcc = "user-requests-confirm@example.com";          // send html mail, content-type header must set         $headers  = 'mime-version: 1.0' . "\r\n";         $headers .= 'content-type: text/html; charset=iso-8859-1' . "\r\n";          // additional headers         $headers .= 'to: ' .$to. "\r\n";         $headers .= 'from: ' .$from. "\r\n";         $headers .= 'bcc: '.$bcc. "\r\n";          // send email         mail($to,$subject,$message,$headers); 

i have similar email in file , works. problem?


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -