Hi Frederik,

AFAIK, all email options OTRS offers (found in SysConfig > Framework > 
Core::Sendmail > SendmailModule) are based on Perl modules in 
$OTRS/Kernel/System/Email/*.pm.
It should be possible to place an additional module there that does what you 
want. Use the existing modules as examples where to get the data to deliver.

The module $OTRS/Kernel/System/Email.pm selects (based on the SysConfig 
setting) which module is called to send the mail, if you want to have special 
addresses for OSM.

HTH,
Martin

P.S.: If any of this is not correct, I'm sure more knowledgable people will 
chime in.


-----Ursprüngliche Nachricht-----
Von: dev <[email protected]> Im Auftrag von Frederik Ramm
Gesendet: Dienstag, 10. Juli 2018 22:25
An: [email protected]
Betreff: [dev] custom way of sending a message

Dear OTRS devs,

I'm with OpenStreetMap. We use OTRS "community edition" 6 to manage tickets 
where people complain about vandalism or other conflict.

OpenStreetMap has a web-based messaging system. If I want to send a message to 
user "FooBert123" then I need to log in to the OSM web site and submit a form. 
At this stage of the process there's no way of using email to reach a user.

I would love to be able to reach an OSM user from within OTRS, perhaps by 
entering a pseudo email address like "osm::FooBert123" or maybe even 
"[email protected]" or something, and then I would like OTRS to deliver 
that message not via sendmail, but via a properly authenticated HTTP POST to 
the OSM web site.

I am familiar with Perl but haven't yet coded anything for OTRS. Can someone 
maybe point me to something vaguely similar to what I want to do, that I could 
use as an example? Or is there a show stopper down the road that I have 
overlooked?

(If the user replies to the message in OSM, OSM will generate an email that 
lands in OTRS, so the return channel is working, it's just the channel from 
OTRS into OSM that needs a workaround. And while implementing that workaround 
on the OSM side, in the form of allowing actual emails to be sent to 
[email protected] or so, is difficult because user names could 
differ only in case, or contain names not allowed in email local parts...)

Bye
Frederik

--
Frederik Ramm  ##  eMail [email protected]  ##  N49 00'09" E008 23'33"
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/mailman/listinfo/dev

Reply via email to