How to get email address from MFMailComposeViewController - iphone

Application is sending email by using MFMailComposeViewController, everything works just fine. However after sending email, the recipient address needs to be stored for further processing. As far as I can tell, there is no API for this.
How do I get the email address where message was sent to?
Should I subclass MFMailComposeViewController and override something? What would that be?
Could I find email address by looking at MFMailComposeViewController view hierarchy? What would I be looking for there?
Any other ideas?

Figured out a partial answer, here's the details:
http://jomnius.blogspot.com/2011/02/how-to-find-mfmailcomposeviewcontroller.html
Problems: it finds the recipient email address(es), but only if that fits in about 35 character text string. Otherwise you find only a summary string like "aaa#aaa.aa & 2 more...". So where are the actual email addresses in this case?

As an alternate UI flow -- though obviously I don't know your app, so only you'll know whether this can work -- you could instead have the user enter recipient info into a textfield and then push the mail composition viewcontroller (with the recipient(s) pre-filled).
You could even use a variation of Joe Michel's Multi-Recipient Picker library to make it feel more like the native recipient selection.

Related

Send an email I want it isn't received

:)
I searched for any solution but I found nothing. I'd send an email like as follows:
To: Recipient1#domain.com CC: Recipient2#domain.com
but I'd want that Recipient1 does NOT receive the email, while Recipient2 does. In this way, Recipient2 thinks I sent the email also to Recipient1 but, actually, Recipient1 received nothing.
Is it possible?
Thank you very much.
Try adding special characters to the first email address, like a non breaking space, or a similar looking character from another character set, you may find a way to generate a failing address while not really displaying it!
I know it works that way with URL and some spam e-mails...

How Unsend.it works?

I was a little bit surprised to see Unsend.it this morning.
How is it possible to unsend or edit a sent email ?
I would like to know technical details of how this works.
Is it possible for us to achieve this through programming ? If possible can anyone present me some code sample ?
They don't actually "un-send" the email. How it works is that the text content of the email is transposed into an image file and the text is removed from the email and replaced with the dynamic image file that contains the transposed text. So it looks like a text email, but is actually an image of the text of your email.
The image is remotely loaded from their servers so if you want to "un-send" the email, they change the image and remove the original text. The email itself remains in the recipients Inboxes', its now just a blank email that has been "un-sent".
Update 2019:
The email is not actually sent, instead they just wait for a cancellation period (which is configurable), to actually send it. So until this time passes, the email is actually sent. So if you click cancel within the timeframe, the email is never sent.

How to implement email correlation with subject and body modification?

I have a system that sends mail.
I have a system that receives mail.
I need to identify that a received mail correlates with the one the other system sent.
The particular thing here is that either the subject or the body can be modified.
I thought on putting some hash in the header of the sent email, but I don't know where this could be added
Don't you have any clue?
As you did not supply enough detail for a language specific answer, I will explain the general approach.
You can add a custom header to your outbound email, using x-vendor-header style for the header (start with x- to mark it as an extension, then vendor- for your company and end with the header name. The can be a unique identifier for the email message.
You can look for this header in your inbound process to identify the message.
I've finally found the solution:
Most email's servers support to put something after the username using '+' as separator. So I can encrypt some id and decrypt it when is replied looking on the from address.
example:
neuquino+encryptedID123421234#gmail.com
I hope this can help someone else with the same problem

Embed indentifier within an Email

I am trying to embed an ID into an email so that when a recipient replies to an email that my system sends out, my system can pick it up and match the two together.
I have tried appending a custom header, however this is stripped out when the user replies.
I have tried embedding an HTML comment within the email, but outlook does not seem to keep comments when a reply email is created.
Worst case scenario, I can manually try and match the sent and received emails by time span or have a visible tag within the message body.
Does anyone know of a more elegant solution?
Thanks in advance
Email messages already contain such an identifiers, called Message-ID. And there's even a way to send which message you're replying to by sending that ID in a header called In-Reply-To. That's done by pretty much all email clients, that's how they usually do their threading.
It's defined in RFC 822 (yep that's pretty old) and probably re-defined and refined in more modern versions of that.
I have seen a method that includes a one byte image with a unique name that's linked to the user. When they view the email and download the images, your HTTP server will record a hit for that unique image. Of course the user needs to display images, but you can include a message in the body asking them to display the images. We actually include content in an image so they need to show images.
If your incoming e-mail can handle +foo or -foo suffixes, use that.
Many e-mail systems can route user+foo#example.com or user-foo#example.com
to user#example.com. You can replace foo with some kind of identifier.
Several mailing list servers use this for tracking bounces.
While I can't say for certain, my investigation in that sort of matter some time ago yielded the following "conclusion":
Headers are transformed a lot
Message bodies are transformed a lot
This is partly because, I suspect, of:
Need to protect users from malicious intentions
Need to perform "targeted marketing"
I have seen "unique codes" flying around in clear text in the email body but I would suggest having a unique identifier embedded in the return address instead.
The usual approach is to place the id in the subject line and/or somewhere visible in the message text and informing the recipient that he should not modify the subject or quote the original mail when responding.

Wordpress plug-in to instantly reply to a form?

Does anyone know if there is a wordpress plug-in which lets you set up a form which has an email field, among others.
The form, after filled in, would:
send the content of the form fields to an email address (name:joe, phone number: 555 etc)
send an instance response to the email provided ('thanks for your contribution')
add email address to an internal database (which is exportable) within the wprdpress admin
Thanks.
This will accomplish your task and more - http://wordpress.org/extend/plugins/formstack/
cformsII from Delicious Day is what you're looking for. Customizable, easy to set up, and can be set up to track all form submissions. Find it at http://www.deliciousdays.com/cforms-plugin/