cotonti.com : HTML Email https://www.cotonti.com Laatste forum onderwerpen Cotonti en Mon, 29 Dec 2025 03:23:59 -0000 urlkiller
but "best way" could differ from person to person ;)]]>
Wo, 28 Jul 2010 10:37:25 -0000
badsey

can i ask what would be the best way..?]]>
Wo, 28 Jul 2010 04:02:48 -0000
urlkiller
functions.php line 3009:
/**
 * Sends mail with standard PHP mail()
 *
 * @global $cfg
 * @param string $fmail Recipient
 * @param string $subject Subject
 * @param string $body Message body
 * @param string $headers Message headers
 * @param string $additional_parameters Additional parameters passed to sendmail
 * @return bool
 */
function sed_mail($fmail, $subject, $body, $headers='', $additional_parameters = null)
{
	global $cfg;

	if(empty($fmail))
	{
		return(FALSE);
	}
	else
	{
		$headers = (empty($headers)) ? "From: \"".$cfg['maintitle']."\" <".$cfg['adminemail'].">\n"."Reply-To: <".$cfg['adminemail'].">\n" : $headers;
		$body .= "\n\n".$cfg['maintitle']." - ".$cfg['mainurl']."\n".$cfg['subtitle'];
		if($cfg['charset'] != 'us-ascii')
		{
			$headers .= "Content-Type: text/plain; charset=".$cfg['charset']."\n";
			$headers .= "Content-Transfer-Encoding: 8bit\n";
			$subject = mb_encode_mimeheader($subject, $cfg['charset'], 'B', "\n");
		}
		if(ini_get('safe_mode'))
		{
			mail($fmail, $subject, $body, $headers);
		}
		else
		{
			mail($fmail, $subject, $body, $headers, $additional_parameters);
		}
		sed_stat_inc('totalmailsent');
		return(TRUE);
	}
}

AND this here is the header for aregular HTML email:

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

but remember corehacking is not the best way of achiving a goal! for my example you need to change the charset and type in the system/functions.php on line 3009.]]>
Wo, 28 Jul 2010 02:07:42 -0000
badsey ]]> Di, 27 Jul 2010 17:41:35 -0000