Results 1 to 2 of 2

Thread: send email using php

  1. #1
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    send email using php

    hi,

    i want to send a email using php with the headers and CC ...
    if anyone have the code plz post here...otherwise plz tell me how can i send it ? i am a new learner of php.

    --------------
    suresh


  2. #2
    Junior Member
    Join Date
    Jan 2007
    Answers
    3

    Re: send email using php

    // 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: ABC , def ' . "\r\n";
    $headers .= 'From: Me ' . "\r\n";
    $headers .= 'Cc: pqr@pqr.com' . "\r\n";
    $headers .= 'Bcc: pqr@pqr.com' . "\r\n";

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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact