Loading ...
Sorry, an error occurred while loading the content.

PHP utk Email

Expand Messages
  • Yayat H
    Dear all... rekan2... saya member baru..., Ok. langsung aja Saya pemula dalam PHP, saya mencoba membuat form email dengan php.... Gimana yach... agar hasil
    Message 1 of 1 , Mar 1, 2004
    • 0 Attachment
      Dear all... rekan2...
      saya member baru..., Ok. langsung aja
      Saya pemula dalam PHP, saya mencoba membuat form email dengan php....
      Gimana yach... agar hasil email dari form email tdk berantakan
      diterimanya, Pleaseeeeeee tolong dong...

      Makacih
      Yayat Hidayatna
      (Programming Beginning)

      Coding utk kirim ke email
      =========================
      <?php
      $headers = "From: $email\r\n";
      $to = "yayatna@...";
      $subject = "Dodol";
      $pesan.= "----------------------\r";
      $pesan.= "Details of Document + Number + Date of Issue + Expired Date +
      Issued at \r";
      $pesan.=
      "---------------------+-------------------+-----------------+------------------+---------------\r";
      $pesan.="Passport $nopaspport $passday - $passmonth - $passyear
      $expassday - $expassmonth - $expassyear $ispass\r";
      $pesan.="Seaman Book $nosea $seaday - $seamonth - $seayear
      $exseaday - $exseamonth - $exseayear\r";
      $success = mail($to, $subject, $pesan, $headers,$html_message);
      ?>

      Hasil email
      ============
      DOCUMENT
      Details of Document + Number + Date of Issue + Expired Date + Issued at
      ---------------------+-------------------+-----------------+------------------+---------------
      Passport 334ds3434 3 - 2 - 1972 3 - 2 - 1972 dsfdsf
      Seaman Book 3434sdfds 3 - 3 - 1975 4 - 3 - 1972
      ---------------------+-------------------+-----------------+------------------+---------------
    Your message has been successfully submitted and would be delivered to recipients shortly.