Hey guys,I wondered if it is possible to store outgoing emails from osticket in the "Sent" folder (or any other) in the email account.Since the email account is connected via smtp it should be possible to manage somehow, shouldn't it?Thanks so much!Raph

That sounds like something that you ought to be able to do at the mail server level, but does not sound like something that osTicket can do.

Okay, do you have an idea what I could do to achieve this?When I connect an email client via smtp to the email account it works, so what's different when connecting osticket via smtp?

osTicket isn't an email client.  A feature like you have described has never been asked for before and how to achieve a similar result would really depend on what mail server you are using.

8 days later

Can be done if osticket uses IMAP to fetch from the mail server. The mail server then starts storing the emails in the sent folder.

Well that I thought so but I set it up as imap fetch and it doesn't store the emails in the account

IMAP has nothing to do with sent emails.  IMAP is for collecting emails from a server.  IMAP cannot be used to store outgoing emails in a sent folder.  I have no idea what he is talking about.

Usually when you connect an email client (I know that osticket is no email client) via imap and smtp ( for sending emails) with an email account the sent emails (via smtp) are stored in the email account (usually sent folder) that's what we're talking about.

Yes, I'm aware of what you are talking about.  However IMAP is for retrieving emails, not sending.SMTP is for sending.  osTicket does not save SMTP (outgoing emails) to your IMAP (retrieval protocol) mail box.  So no, it cannot be done currently with in osTicket.  You could either alter the core files to try to add this feature yourself , or depend on what mail server you are using you can probably setup rules on your mail server to do this sort of thing for you.

    3 years later

    ntozier

    ntozier Yes, I'm aware of what you are talking about.  However IMAP is for retrieving emails, not sending.SMTP is for sending.  osTicket does not save SMTP (outgoing emails) to your IMAP (retrieval protocol) mail box.  So no, it cannot be done currently with in osTicket.  You could either alter the core files to try to add this feature yourself , or depend on what mail server you are using you can probably setup rules on your mail server to do this sort of thing for you.

    ntozier,

    As with any client you use to connect to any mail server, it usually has an option to configure to send an additional SMTP command to make a copy of the sent email in the Sent folder. Maybe this is something that can be evaluated and added even though OsTicket is not an email client as you say.

    Dennis

      dayala the messages that are being sent are stored in the database as a response to a ticket. So I personally do not find this as necessary. I can understand why you might find it necessary though. This would double the storage requirements. In some cases it would more than double it as the outgoing email headers are not stored in the database so all those headers which are routinely longer than the body would take up more room on the mail server. I know this isn't the end of the world, but in my environment it would mean storing three copies of the email since we have an email archiver that well archives all emails sent/received by the mail server.

      Email clients do have this functionality, but they way that they do it is they effective send the email twice.
      Once with SMTP to actually send the message to its recipient, and then again to the server to store it in your mailbox.

      I would like to add that I am not the gatekeeper of new features. I do keep a running list for the devs, but ultimately I have little to no say in what features are implemented and which are not. If this is something that you really want then I would encourage you to open a Feature Request on github, or modifiy the core files yourself. I think that this could probably be achieved by using imap_append(). https://www.php.net/manual/en/function.imap-append.php

      You can open a Feature request by by starting a new issue on github and prefixing the title/subject with [Feature Request]. You can do that here:
      https://github.com/osTicket/osTicket/issues/new

      As a side note this thread is 3 years old and normally I would say please do not be a necromancer, and kill the zombie thread, but I do not want to shut down the conversation. If other people would like to voice their opinions, or throw out ideas about this please feel free.

      Write a Reply...