Page 1 of 1

Doubts on "headers"!!

Posted: Mon Jan 21, 2008 5:36 pm
by guma
Next my mail server requires a pradrao differently than it has in the library SWIFTS.


Padrao required is this:

Code: Select all

$headers  = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$fromName." <".$from.">\r\n";
I wonder how I put it in my default code?

So I know that there is more outside that I lost someone can give me a hand?

$message =& new Swift_Message($assunto, $texto, "text/html");


I await in the

Re: Doubts on "headers"!!

Posted: Mon Jan 21, 2008 5:45 pm
by Chris Corbyn
Swift Mailer already includes those headers. If you need to specify the iso-8859-1 part, then do this:

Code: Select all

$message =& new Swift_Message($assunto, $texto, "text/html", "iso-8859-1");

Re: Doubts on "headers"!!

Posted: Mon Jan 21, 2008 6:12 pm
by guma
Chris Corbyn wrote:Swift Mailer already includes those headers. If you need to specify the iso-8859-1 part, then do this:

Code: Select all

$message =& new Swift_Message($assunto, $texto, "text/html", "iso-8859-1");

Earned face

It worked