[php] email in html .. de From werkt niet ?

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

  • whitehouse
  • Registratie: Maart 2000
  • Laatst online: 18-09-2019
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 ?

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 |


Acties:
  • 0 Henk 'm!

Verwijderd

Zie je die spatie voor de dubbelepunt?
Lees eens RFC 822 of RFC 2822, en je ziet dat dat niet mag.

Acties:
  • 0 Henk 'm!

  • Jurgle
  • Registratie: Februari 2003
  • Laatst online: 24-06 00:27

Jurgle

100% Compatible

offtopic:
En die niet spatie na 'MIME-Version:'

My opinions may have changed but not the fact that I am right ― Ashleigh Brilliant