Saving new emails back to email server
Michael Mantkowski
michaelj at clientrax.com
Wed Jun 17 12:04:17 EDT 2015
Hi Mike,
I understand your reasoning... However, I wonder if a client side program can read the header? I do not remember this being an option in the Outlook Client (but I have not looked for it either). If it's not possible, then users that do not have an Exchange server would not have a way to see this flag...
Many of our users use Gmail or Yahoo and those sort of free email servers to send their email and use the respective companies Web Based email clients to manage their email. Usually the "rule operations" are more limited on these types of setups so I wonder how that would work in that situation as well.
Just things to think about. I will check into my cline side Outlook to see if it supports looking at the header. I run my email via Time Warner SMTP.
*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************
-----Original Message-----
From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of Mike Matthews
Sent: Wednesday, June 17, 2015 11:45 AM
To: OmnisDev List - English
Subject: Re: Saving new emails back to email server
Hello Rudolf, Michael & Rainer,
I like Rudolf's answer best. A couple of reasons:
1 It is cross platform, and Rainer's answer relied on using Outlook. This is not always the case for Mac or Windows users, they could be using Thunderbird, etc.
2 Michael's answer relies on client side rules, but could be sone server side I think.
3 I like the idea of adding a X-Header for SQLWorks, which could have the project ID as well embedded. It does mean the IT support dude (usually Lineal) need to setup server side rules though, but then these rules work for ALL devices accessing the user's email account.
I wonder how current email clients manage to write a copy to the Sent box? In the correct format for the mail server. Hmmm
Something to ponder...
Mike
Mike Matthews,
Managing Director, SQLWorks Software Ltd
Tel: +44 (0)1271 375999
Email: mike.matthews at sqlworks.co.uk
Web: www.sqlworks.co.uk
SQLWorks replaces Sage, ACT!, Opera, Access, SAP
On 17 Jun 2015, at 14:30, Rudolf Bargholz <rudolf at bargholz.ch> wrote:
> Hi Mike,
>
> The SMTPSend command allows you to add extra headers (xtrahdrs) to the mail. BCC your own mail address in the SMTPSend. Your mail program can read the header and, based on a set value, automate the moving of mail into a predefined folder. Note: if you add a text to the mail and use the text in the mail body to move the mail via a mail rule, an Exchange server will only be able to move the mail when Outlook is open. This can only be implemented as a client side rule. The Exchange server can however read the header of a mail, so the rule is then valid even if you mail client is closed.
>
> Another option is to concatenate/store the contents of the status procedure into an instance variable and store this value directly in your database. You then get something similar to the following:
>
> ------------------------------------------
> <- 220 mail.tui.de ESMTP Postfix
> -> HELO 10.145.9.3
> <- 250 mail.tui.de
> -> MAIL FROM:<a at b.ch>
> <- 250 2.1.0 Ok
> -> RCPT TO:<x.y at z.com>
> <- 250 2.1.5 Ok
> -> DATA
> <- 354 End data with <CR><LF>.<CR><LF> Date header sent Priority
> header sent Header sent:From:
> Header sent:To:
> Header sent:Subject:
> ->
> .
> <- 250 2.0.0 Ok: queued as A969316E3
> -> QUIT
> <- 221 2.0.0 Bye
>
> This is the body of the mail
> ------------------------------------------
>
> This is not what you wanted, but in case you do not know of this option I thought I might mention it.
>
> You can use Outlook Automation to create an email in a specific folder (you pass a an appropriate parameter/number after the $createobject), but this got too complicated for me so I stayed with the options above. Problem here also is this is Windows-only.
>
> Regards
>
> Rudolf
>
> -----Ursprüngliche Nachricht-----
> Von: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] Im Auftrag von Mike Matthews
> Gesendet: Mittwoch, 17. Juni 2015 13:16
> An: OmnisDev List - English
> Betreff: Saving new emails back to email server
>
> Hello All,
>
> I want to know if anyone saves an email that they have made in Studio and sent via the SMTP command? We save our emails into our database, but does anyone save it into the users Sent Items mailbox on their email server?
>
> The IMAP and POP3 commands do a job of reading messages, moving and deleting messages, but how do you save a new message into any mailbox?
>
> I could of course send it to myself, but then I would have to move it from my InBox to my Sent Items mailbox.
>
> Still using v5.2 on OSX and Windows.
>
> Thanks
>
> Mike
>
>
>
>
> Mike Matthews,
> Managing Director, SQLWorks Software Ltd
>
> Tel: +44 (0)1271 375999
>
> Email: mike.matthews at sqlworks.co.uk
>
> Web: www.sqlworks.co.uk
>
> SQLWorks replaces Sage, ACT!, Opera, Access, SAP
>
>
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list