Jump to content

mail()


Gurzi

Recommended Posts

Posted

Ola malta..

Tenho um daqueles editores WYSIWYG e queria enviar uma newsletter só que aquilo traduz para html, ou seja quando envio o mail() ele envia as tags html.. como posso trazudir isto para isto no email fica correctamente formatado consoante as tags de html?

Posted

Acho que já se falou disso aqui no forum, faz aí search 🙂

Não peças ajuda por PM! A tua dúvida vai ter menos atenção do que se for postada na secção correcta do fórum!

Posted

Tens que enviar o email com o header:

Content-type: text/html; charset=iso-8859-1

(...)
$cabecalho = "FROM: teu@email.com";
$cabecalho .= "Content-type: text/html; charset=iso-8859-1";

mail( $para, $assunto, $mensagem, $cabecalho );
Posted

fiz isso kingless mas aparece tudo assim junto

@ email. comcontent-type <teu> hide details 12:07 am (0 minutes ago)

reply-to

@ email. comcontent-type <teu>,

text/html <>,

charset=iso-8859-1 <>

Posted

Acho que faltava apenas colocar  \r\n no fim de cada cabeçalho eu esqueci-me de colocar no exemplo 🙂

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.