note 106007 added to function.mail

From: Date: Sun, 02 Oct 2011 14:18:07 +0000
Subject: note 106007 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-183586@lists.php.net to get a copy of this message
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 ---- Server IP: 187.73.33.10 Probable Submitter: 189.123.131.164 ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- https://master.php.net/note/edit/106007 Del: integrated -- https://master.php.net/note/delete/106007/integrated Del: useless -- https://master.php.net/note/delete/106007/useless Del: bad code -- https://master.php.net/note/delete/106007/bad+code Del: spam -- https://master.php.net/note/delete/106007/spam Del: non-english -- https://master.php.net/note/delete/106007/non-english Del: in docs -- https://master.php.net/note/delete/106007/in+docs Del: other reasons-- https://master.php.net/note/delete/106007 Reject -- https://master.php.net/note/reject/106007 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183586) next »