I wrote the following php code (letMeTry.php) in order to send an email
to otrs.
It works
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled</title>
</head>
<body>
<?php
$to = '[EMAIL PROTECTED]';
$subject = 'Let me try';
$body = 'Let me try, please';
$header = "X-OTRS-TicketKey1: Edificio 12";
if (mail($to, $subject, $body, $header)) {
echo 'E-mail successfully sent to: '.$to.'<br />';
echo 'subject: '.$subject.'<br />';
echo 'body: '.$body;
} else {
echo 'I was not able to send the email';
}
?>
</body>
</html>
Nice.
Now I get the email in otrs and the header X-OTRS-TicketKey1 is present.
And now? Which field and why it, should be filled?
Thank you in advance
Daniele
Daniele ha scritto:
I read http://doc.otrs.org/2.2/en/html/x1053.html#table-of-x-otrs-headers
and I would like to use it... but I can't use it.
1st) Where can I find a trial software to send email editing headers?
2nd) What does it mean in
otrs/index.pl?Action=AdminPostMasterFilter&Subaction=Update&Name=myFilter
Match:
Header 1: X-OTRS-TicketKey1 Value: myMatchValue
Set:
Header 1: X-OTRS-TicketValue1 Value: mySetValue
Is the meaning what I am going to decribe?
If I (OTRS) get an email with the value myMatchValue in the header
named X-OTRS-TicketKey1
I (OTRS) set
?? what ??
Thank you in advance.
Daniele
Have you take a look at X-OTRS headers to popluate FreeTextKeys
http://doc.otrs.org/2.2/en/html/x1053.html#table-of-x-otrs-headers
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support or consulting for your OTRS system?
=> http://www.otrs.com/