PHP Email Help

Out of context: Reply #3

  • Started
  • Last post
  • 9 Responses
  • vaxorcist0

    are you sending an HTML or plaintext email?
    are you sending an attachment?

    example code from the PHP manual page...

    // 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 .= 'To: Mary <>, Kelly < . "\r\n";
    $headers .= 'From: Birthday Reminder < . "\r\n";
    $headers .= 'Cc: . "\r\n";
    $headers .= 'Bcc: . "\r\n";

    // Mail it
    mail($to, $subject, $message, $headers);

    • oops, I see your original code, but I always use the headers method for bcc....vaxorcist

View thread