note 106007 deleted from function.mail by danbrown

From: Date: Mon, 03 Oct 2011 13:12:34 +0000
Subject: note 106007 deleted from function.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-183603@lists.php.net to get a copy of this message
Note Submitter: contato at listaemail dot net Reason: 2 ---- In Windows Hosting The line break to use the header should be "\ r \ n" <php / / The sender must be an e-mail for your domain as determined by RFC 822. / / The return-path should be the same e-mail sender. $ headers = "MIME-Version: 1.1 \ r \ n"; $ headers .= "Content-type: text / plain; charset = iso-8859-1 \ r \ n"; $ headers .= "From: eu@seudominio.com \ r \ n" / / Sender $ headers .= "Return-Path: eu@seudominio.com \ r \ n" / / return-path $ send = mail ("destinatario@algum-email.com", "Subject", "Text", $ headers); if ($ send) echo "Message sent successfully"; else echo "The message could not be sent"; ?> see http://listaemail.net/como_usar

« previous php.notes (#183603) next »