Lotus Notes mail forwarding with a REST URL - objective-c

I want to forward Lotus Notes mail using a REST API with Objective C. With this method, the mail is still in the Draft directory, but never sent.
https://servername/mail/xxx.nsf/($Drafts)/$new/?EditDocument&Form=l_JSVars&PresetFields=Form=m_SentView,s_NotesForm;memo,s_CopyFromUnid;parentUnid
How can I do this?

To the best of my knowledge, there is not a URL command to forward or send an email. I believe that the way to do this would be by using the Domino Data Service's Document PUT command to create a new document in the server's mail.box database. If your goal is to forward, your code will have to read the existing document, add the required item values for mailing (e.g., SendTo, etc.) and PUT the result into mail.box.

Related

Mailjet: Exlude an email from being tracked when open-tracking is enabled

I am using Mailjet to send emails and have the 'open tracking' enabled ("Once activated, an invisible tracking pixel (image) is added to each email you send via Mailjet").
What I want to do is to deactivate the inclusion of this tracking pixel for certain emails. I know that it is possible with Mailjet for links to do that, but were not able to find a similar functionality for the tracking pixel.
Thank you!
Yes you can. (perhaps not at the time of the original question)
API send request accepts the Mj-trackopen field.
SMTP way accepts the header X-Mailjet-TrackOpen
API info - https://dev.mailjet.com/email/reference/send-emails/
SMTP info - https://dev.mailjet.com/smtp-relay/custom-headers/

How to modify the default receiver list in system Mail app

I'm using Objective-C. I wonder is there any plug-ins or libraries that can allow me to modify the default receiver list in system Mail app?
For example, I have made an app which can scan a card and fetch the E-mail information on it.
Now, I'd like to put the E-mail data I've fetched into system Mail app's receiver list. That is, when I use the system Mail app and write a new mail, I can see the E-mail address I fetched when I type some letters in the receiver column.
Is that possible to achieve?
This list is stored as a Sqlite database and it should be possible to append to it from another process, even while Mail.app is running. I haven't tested it, though.
The following article should help. It describes how to delete entries but adding new ones would work in pretty much the same way: http://hints.macworld.com/article.php?story=20110516152604993

how to send mails with a .Net app, via Outlook

I'm new in web development and would like to add a feature to a project I'm working on.
I'd like to send emails with this project, and also to have a kind of agenda.
I'm already using outlook for the mails and the agenda. The thing I'd like is to have a kind of template. I've got it difficult to explain what I'm looking for, as far as I'm not a native english speaker.
So, let's have an example :
I'd like to develop customer loyalty. So, I'd like to send mails to a few customers (maximum 10 mails sent per offer).
In the view, I'll have to make a research on a keyword, which will return a list of customers. I'd like to have, next to each client, a hyperlink called "mail", wich would open Outlook, with the mail that's allmost fullfilled (with the name of the guy I'm mailing).
Is it possible to do this like that?
While I am not 100% positive what and how you're trying to accomplish, and because Outlook is an email client app, I'll assume, that the website user is going to click the link and use Outlook. In that case the answer to your question is right under your nose :-) - examine the "Share a link to this question via email" on this very page - it uses a "mailto" tag.

Programmatic Reaction to Receiving New Email

I'm interested in automating some reactive work I do when receiving certain emails in one of my email accounts. What I would like to have happen is:
On receipt of new email in the account
If the new email passes the "Need to React" criteria (based on body content and subject line)
3a. Scrape some content out of the email body and subject lines
3b. Populate a template form (e.g. Excel spreadsheet) with the scraped data
3c. Print the populated form and save the populated form in some folder (e.g. as a pdf)
What's the best (defined as easiest to implement by myself) approach / combination of technologies for achieving this automation?
i have not done exactly what you are asking, but I know Microsoft Outlook has a Rules engine that can take incoming messages, check for various content, and then do various actions including running applications and/or scripts.
You should look at Visual Studio Tools for Office if you are a c# person.
http://msdn.microsoft.com/en-us/vsto/default
You can write an Outlook add-on that can do pretty much everything you have outlined above.

How do I have mails to a specific address trigger actions on a web server?

What I'm trying to do is figure up how I can configure a mail server such that mails to a specific address will trigger certain actions- e.g. inserting the subject line into a MySQL database, etc. This is for a web app in LAMP- basically I want people to be able to add things automatically via email if they'd rather do that than use the web interface. Kind of like how e.g. with Evernote you can send a mail to your custom address to add a note that way.
I realize this is a pretty vague question, what I'm looking for is a general place to start looking and learning. I'm reasonably familiar with website tech but when it comes to mail servers I'm completely clueless. I'm not looking for any specific implementation: Rather I just want to know what are the basics I need familiarize myself to be able to attack the problem.
If you want to trigger actions "in realtime" you best work with your own mailserver and use something like procmail: Here is an example from the procmail faq how to trigger actions on incoming mails: http://porkmail.org/era/procmail/mini-faq.html#rtfm
But if you can avoid this, just let the fun stuff of mailserver work handle your provider and scan one or more mailboxes via cron-job (on linux/unix) triggered scripts. A cronjob could e.g. be a command line PHP script or a wget script that does a HTTP request on your webserver script to start the action. Your script reads the actual mails via something like http://pear.php.net/manual/en/package.networking.net-pop3.php
(Try to avoid importing the same mail twice e.g. by relying on the message id of the mail or by creating SHA1/MD5 hashes on parts or the body of the mail).
A lot of ticket systems work like this (for example OTRS: http://otrs.org/downloads).
This is traditionally handled on unix-like systems using fetchmail and/or procmail.