Mail Codes in php.ini

the mail() function

Moderators: macek, egami, gesf

Post Reply
User avatar
php-forum Active User
php-forum Active User
Posts: 359
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Re: Mail Codes in php.ini

Post by freshnet » Fri Mar 23, 2012 2:51 am

Here's what I use as my headers in one site.

Code: Select all

$headers = "MIME-Version: 1.0" . "\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\n";
$headers .= "From: $from" . "\n";
Do you get any error, if so, what is it? This link may help you as well for configuring things on the ini side.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest