Send Mail to RT from PHP Form

Hi There,

I’ve created on my web site a form to get some information from my customers
and send this by mail. I’ve received the email’s and the ticket get created
in the right queue… except that the custom field value I pass.

If I send by Outlook as a plan text mail, its works well and the custom
field values get set…amazing! I have over to 120 fields on this process
as well.

My Header and Body:

$headers .= “\nMIME-Version: 1.0\n” . “Content-Type: multipart/mixed;\n” . “

// multipart boundary
$message .= “This is a multi-part message in MIME format.\n\n” .
"–{$mime_boundary}\n" . “Content-Type: text/plain; charset=“ascii”\n” .
“Content-Transfer-Encoding: 8bit\n\n” . $message . “\n\n”;
$message .= “–{$mime_boundary}\n”;

Anyone thoughts are appreciated

Marcelo Calado.

My template:
Year|Body|Year-> (.+)$||q|
Amended Individual Income|Body|Amended Individual Income-> (.+)$||q|
Amended By TBS|Body|Amended By TBS-> (.+)$||q|
ID Number|Body|ID Number-> (.+)$||q|
And other +100 fields

My Body:
Year-> 2015
Amended Individual Income-> Yes
Amended By TBS-> Yes
ID Number-> 857-248

My Header from Outlook:
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Received-SPF: pass ( domain of designates as permitted sender) client-ip=;
Content-Language: en-us
content-type: text/plain; charset="utf-8"
X-Received: by with SMTP id m62mr5183043pfi.130.1454529394768;
Wed, 03 Feb 2016 11:56:34 -0800 (PST)
Message-ID: 068d01d15ebc$fbd72aa0$f3857fe0$
Received: by with SMTP id b133csp59489wle; Wed, 3 Feb 2016
11:56:34 -0800 (PST)
Received: from
( []) by
with ESMTPS id hs5si11001698pac.243.2016. for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 03
Feb 2016 11:56:34 -0800 (PST)
Received: from TBSPC3 ([]) by with id
DvwZ1s0043vzp0G01vwZnW; Wed, 03 Feb 2016 12:56:33 -0700
Authentication-Results:; spf=pass ( domain of designates as permitted sender)
Thread-Index: AdFevPmEs61bTMpRRCegCvqUjvtg5g==
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ascii
Content-Length: 95

My Header from PHP Form:
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-RT-Original-Encoding: ascii
Content-Length: 1754