ik heb de volgende code gebruikt om de email in html weer te geven... maar nu krijg ik het from-veld niet ingevuld..hoe komt dit ?
hij mailt wel, maar in het from-veld in outlook zie ik me@localhost...
search heeft mij geen antwoord kunnen geven..
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| $from="the violet burning"; $boundary = "=====gilles." . md5(uniqid(time())) . "====="; $headers .= "From : joel@dds.nl\r\n"; $headers .= "MIME-Version:1.0\r\n"; $headers .= "Content-Type: multipart/mixed; \r\n\tboundary=\"$boundary\"\r\n\r\n"; $str = "--".$boundary."\r\n"; $str .= "Content-Type: text/html;\r\n\tcharset=\"us-ascii\"\r\n"; $str .= "Content-Transfer-Encoding: 7bit\r\n\r\n"; $str .= "$message\r\n\r\n"; $str .= "\r\n--$boundary--\r\n"; $body = $str; if (mail($to, $title, $body,$headers)) //if (mail($to, $subject, $body, $headers)) { echo "verzonden"; } |
hij mailt wel, maar in het from-veld in outlook zie ik me@localhost...
search heeft mij geen antwoord kunnen geven..
| www.everythingisspiritual.com | www.mosaic.org |