Store sent mails

To store all user-communication in our CRM we would need all E-Mails in this tool. While I can easily deactivate deleting mails after having them read by youtrack I can't enable storage of sent mails. My mail-server also offers no option to store all mails sent via an account. Is it possible to enable this somehow in youtrack?

5 comments
Comment actions Permalink

Hi! 

I'm Sergey from the YouTrack team. 

Generally, there are two types of emails sent from YouTrack:

* built-in notifications that users can set up in their profiles
* notifications sent via a workflow script, these can be sent to both registered and unregistered users. 

So can you please elaborate on your use case a bit? Do you want to store all the emails sent from YouTrack or only those sent via a workflow in your Helpdesk project? 

0
Comment actions Permalink

Actually just the once I've sent from the workflow (we only use that type). Is there an option to extend the workflow in a way to do this?

 

Thank you very much and kind regards,
Andreas

0
Comment actions Permalink

I see, thanks. There's no built-in solution for that, yet what I can suggest is to create a new project or issue and store the content of the sent workflows as new issues or comments. So you'll need to adjust the workflow that sends notifications so that it will also save the content in YouTrack. 

Generate Issues Automatically — should help get an idea of how to create issues. To create comments, just use the addComment() method of the Issue object. 

 

0
Comment actions Permalink

🤔 but this would not really solve my problem since I wouldn't have the original mails stored somewhere. I would need those for the original to addresses to allow the CRM to map them correctly. I assume the alternative is to call a webhook in the CRM directly from the YouTrack workflow?

0
Comment actions Permalink

Well, the original emails can only be retrieved from the server that sends them or the client that receives them. When you send a notification via a workflow, it sends data to your SMTP server, and then the email is sent to the client. YouTrack itself can just store the content that it passes to your SMTP server. 

So if you are looking for anything else other than the content itself, then it's not available in YouTrack. Theoretically, you can make http calls via a workflow and retrieve this data from elsewhere, but this is much less straightforward and more complicated.

0

Please sign in to leave a comment.