Jump to content

mail com texto formatado


Recommended Posts


Através do comando mail, em PHP, consigo enviar um email "simples" sem formatação de texto.

Por exemplo:

mail( teste@email.com , "negócio importante" , "$msg" , "From: meu@email.com" " );

sendo que:

$msg="Boa Tarde";

Neste caso estou a enviar texto simples

Mas se eu tentar o seguinte:

$msg="Boa <b>tarde</b>";

Em vez de enviar o email com o termo Boa tarde, envio o código html sem qualquer formatação (Boa <b>tarde</b>)

Alguem sabe resolver isto?

portalmundial.net »» criamos sites

Link to comment
Share on other sites

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.