getting message ID of a just send message - thunderbird

I am writing a thunderbird extension for which I want to perform an action, writing the messageID to a file, when the user sends a message. The user can activate this feature through a new toolbar element.
The problem is that at the moment the "compose-send-message"-event handler triggers the messageID is not defined yet. The best solution I found so far is to write the some identification of the message (recipient, subject,...) to a queue and wait for the newMailListener to trigger for a message with the same identification to be added to the sent mail folder. Is there a better solution for that?
Thanks

Related

Identify email message related to received webhook

Today I started to learn about webhooks and I was wondering if it is possible to know exactly what message is related to a received webhook.
For example, I have a website where customers can register and, after a successful registration, I'm sending them a confirmation via email. Is it possible to know that the customer clicked on that specific email message? (Considering that the customer can receive other types of email messages like password recovery, newsletters, etc). I know I can use the subject (something like if subject == 'Welcome to My Site' then do-email-post-registration-clicked-routine) but if the subject changes, or if they change it (when we reply to a message, usually the email client prepends "Re:" to the subject, I won't be able to track it.
Thanks in advance!
Yes. You can use custom arguments to track individual emails. Custom arguments get sent with event webhooks.
More documentation can be found here: https://sendgrid.com/docs/API_Reference/SMTP_API/unique_arguments.html

Making a mail hook to send a post request

I want to do something similar to http://www.mailhooks.com/. When a email is received, it sends a post request to a provided website, but I don't know where to start implementing such a thing. Do textual email interface, such as mutt and pine allow receive hook, if not what would be the best way to do this?
An easy way is to use .procmailrc or .forward. Using either one you can pipe any incoming messages to a program of your choice.
E.g. using procmailrc:
:0:
| ~/myprogram
The program should then read the message from stdin and perform the post request.

Enterprise library - Email Trace Listener is not working though i provided everything?

i have email event listner like, but the emails are not sending, please help me on this
and my exception handling code is
First check that you can send emails via your configured email server from the installation computer, Microsoft KB153119 will tell you how to do this.
Second check it is the email listener that is failing. Remove all but the email listener and try again. It removing the Event log listener helps then the application might not have sufficient rights to create the event log source (this should be done by the installer).
Third check the exception that would trigger an email is being raised, either step through code or swap the email listener to a text file listener.
Finally, as Ashwani says, provide a little of your code and config for us to look at.

How to customize the default message composer in iphone sdk?

I need to customize the default message composer as at To: I need to diplay the recipient number and body contains an automatic message.Can it possible to send this message without user interaction as he need not to be tap on to the send button.
Thanks to all,
Monish.
The documentation for MFMessageComposeViewController shows that you can programmatically set the body and the recipients of a text message. It does not, however, expose an API to send the message automatically. The framework requires user interaction.
It would be a terrible thing if an app could send a text message without user intervention. If that were possible, then apps could fire off as many text messages as they wanted, to whomever they wanted, all while charges are getting applied to the user's cell phone bill. That's a lawsuit waiting to happen.
So in a nutshell, you can pre-fill in some stuff, but the user will still have to tap the "Send" button.
No. You may add recipients and put what you like in the body of the message, but the user will always see the message and will be able to modify it. The user has to choose to send it.
If you need to do this automatically, you'll need to implement enough of SMTP to be able to send messages on your own, without the help of the mail framework.

MFMessageComposer iPhone,Auto Message Send

Any one know how to implement auto send message using MFMessageComposer....i mean No need of displaying The message Composer..we Have to sent the pre-defined message to a given Number..Or any other way without using MFMessageComposer..???
You can't auto-send messages with MFMessageComposer. It always displays the message to the user before sending (and rightly so).
An alternative would be to call a webservice which dispatches an email to you. Or put enough SMTP code in your app to get emails sending. You'll need your own email system for this though as you'll not be able to get the users email settings.