Re: mail() silly question
| From: | Ludovic André | Date: | Sat, 01 Sep 2007 13:15:31 +0000 |
| Subject: | Re: mail() silly question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261588@lists.php.net to get a copy of this message | ||
Hi,
Question: Why? What's the real difference between $header .= 'From: info@villaarmonica.org.mx' . "\r\n"; and $header .= 'From: info@villaarmonica.org.mx\r\n"; Your second declaration is incorrect: you start with a single quote ('), and you end with a double (").So, you'd say "ok, let's fix it": $header .= 'From: info@villaarmonica.org.mx\r\n'; BUT, special chars like \n or \r need to be inside a double-quoted string in order to be taken into account. This one is then correct: $header .= 'From: info@villaarmonica.org.mx' . "\r\n"; This one as well: $header .= "From: info@villaarmonica.org.mx\r\n"; Ludovic André