Created
May 2, 2018 17:42
-
-
Save didiraja/1570255d0d1d5c8f46c8742b4d5e107a to your computer and use it in GitHub Desktop.
Mail PHP compatível com Locaweb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// O importante é que o header e o emailsender possuam um email de mesmo domínio | |
// Outro detalhe é '-r' que vai junto ao $emailsender. Para mais detalhes, https://wiki.locaweb.com.br/index.php?title=Como_enviar_e-mails_com_a_fun%C3%A7%C3%A3o_mail()_do_PHP&redirect=no | |
$nomeremetente = 'Sistema The Box - Concept Living <[email protected]>'; | |
$emailsender = '[email protected]'; | |
$headers = "MIME-Version: 1.1\r\n"; | |
$headers .= "Content-type: text/html; charset=utf-8\r\n"; | |
$headers .= "From: $nomeremetente\r\n";// remetente | |
$headers .= "Return-Path: $emaildestinatario \r\n";// return-path | |
mail($emaildestinatario, $assunto, $mensagemHTML, $headers,"-r".$emailsender); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment