Jump to content

Margarida

New Members
  • Posts

    1
  • Joined

  • Last visited

Margarida's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I am wondering how to add a code to automatically send a copy as conformation to the sender. I need this code to send a exact copy to sender's email. I would appratite very much if someone can help. $nome = $_POST['nome']; $emaill = $_POST['email']; $to = "mail@mail.pt"; $boundary = "XYZ-".md5(date("dmYis"))."-ZYX"; $headers = "MIME-Version: 1.0" . PHP_EOL; $headers .= "Content-Type: multipart/mixed; "; $headers .= "boundary=" . $boundary . PHP_EOL; $headers .= "$boundary" . PHP_EOL; if(mail($to, $assunto, $mens, $headers)){ I tried add $headers .= "Cc: $emaill" . PHP_EOL; But don't work. Can you help me?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.