| | |
| | | unset($path_parts); |
| | | } |
| | | |
| | | $header = "From: $from\nReply-To: $from\n"; |
| | | $header = "Return-Path: $form\nFrom: $from\nReply-To: $from\n"; |
| | | $header .= "MIME-Version: 1.0\n"; |
| | | $header .= "Content-Type: multipart/mixed; boundary=$uid\n"; |
| | | |
| | | $header .= "--$uid\n"; |
| | | $header .= "Content-Type: text/plain\n"; |
| | | $header .= "Content-Type: text/plain;\n\tcharset=\"UTF-8\"\n"; |
| | | $header .= "Content-Transfer-Encoding: 8bit\n\n"; |
| | | $header .= "$text\n"; |
| | | |
| | |
| | | mail($to, $subject, "", $header); |
| | | } else { |
| | | $header = "From: $from\nReply-To: $from\n"; |
| | | $header .= "Content-Type: text/plain;\n\tcharset=\"UTF-8\"\n"; |
| | | $header .= "Content-Transfer-Encoding: 8bit\n\n"; |
| | | mail($to, $subject, $text, $header); |
| | | } |
| | | |