Gossamer Forum
Quote Reply
PHP mail()
I'm having quite a few problems with the mail() function in PHP. The code I am using is as follows;

Code:
$EmailSending = $row['Email'];

mail("$EmailSending","LinksSQL.net Plugins/Services Update...", $Message,
"From: $FromEmail ($From)\r\n"
."Reply-To: $FromEmail ($From)\r\n"
."MIME-Version: 1.0\r\n"
."Content-type: text/html; charset=iso-8859-1\r\n");

The most annoying thing is, that it works fine in another part of the script... yet it just sends as plain text every where else. Anyone got any ideas?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] PHP mail() In reply to
Andy,

Hi.

I don't know if this will help, but what codes do you have in the $Message var?

For HTML mails, you do need to have the HTML header and anchor tags in the message...

Example:

<html>
<head>
<title>Something</title>
</head>
<body bgcolor=#FFFFFF>
SOMETHING
</body>
</html>
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] PHP mail() In reply to
I don't think that is the problem, it sends fine in HTML when I use webmaster@linkssql.net, or any *@linkssql.net email, but as soon as I put a different email (i.e andy.newby@ace-installer.com), it just comes through as plain text Frown I've emailed Alex about this, as its looking more like a server/software mis-configuration, or just too much security Crazy

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!