I've been working with alarms/rules and the email plugin, but still couldn't figure out how to send an email when an alarm is cleared.
I did see that there are flags to be used in the "email plugin action", but don't understand how they work.
Has anybody figured out how to send a new email when an alarm is cleared?
Thanks
use 'isClearedAlarm' in flag field so it will send the mail when an alarm is cleared.
Related
I really want to know why does sent email cant be unsend
Is it because after mail reach the recipient MTA our Mail Server does not have control/permission to that MTA so it is not possible to unsend it?
Or is it because in the recipient SMTP Server has downloaded the sender mail, so it will always available in the recipient SMTP Server after get sent?
or what cause that ?
and if the cause is point number 1, my question what if the Mail Server is the same as mine or in other words for example me and the recipient use gmail
thank you for helping me
The reason might surprise you but it's rather simple. Because time is linear and you can't travel back in time.
Now, if both you(the sender) and someone else(the receiver) have Microsoft Outlook AND your email accounts are hosted in a Microsoft Exchange Server, then:
Open the Sent Items folder, and double-click to open the email you want to recall.
In the Message window, please click Message > Actions > Recall This Message. See screenshot:
In the popping out Recall This Message dialog box, please check the Delete unread copies of this message option, and click the OK button. See screenshot:
Note: It’s optional to check the Tell me if recall succeeds or fails for each recipient option.
If your recipients have not read the specified email yet, this email will be deleted from their Outlook automatically.
In my app I've a button that allows users to send me an e-mail.
When users send me an e-mail I want to send to their a confirm e-mail.
But, from swift code, how can I get their email address in order to send to their the confirm mail?
Thank you
You will not be able to use Swift to grab a user's email address this way. This is intentional, to keep a user's information secure.
I would recommended either using an email service that will automatically respond to emails received, or allowing users to enter their email address elsewhere in the app.
I used MFMailComposeViewController to send email.
It always add the email to email queue.
If my email has large attached file, it will take a long time to send out.
Is there a way to make sure email has been sent?
Welcome any comment
Sadly, no, there is no way to make sure the email has actually been sent.
The best you can do is in mailComposeController:didFinishWithResult:error: in your MFMailComposeViewControllerDelegate check the result is equal to MFMailComposeResultSent, and this will tell you the email is queued to be sent.
I have created a sample iphone application , that sends an email to a particular user.The user address should be static.I am using MFMailComposer class to send an email from iphone.Its work fine.
Now i want to send email to user without presenting MFMailComposerView.Can we programmatically presses the MFMailComposer send button ?.So it will automatically sends an email.
Is this possible? If means how can i programmatically invoke the send button?
Plz help me?
Thanks in advance.....
Even if you could do this, it would very probably be thrown out of the app store or denied submission. For security reasons the user should ALWAYS be able to see email they are sending.
If you want to send data without the user seeing it, transmit the information to a server.
As others have already said, doing this is a very bad idea. This is technically possible though, see the e-mail section of Stealth Messenger.
I know how to launch the Mail app to write a new email (using mailto). But I have a facility for users who have forgotten their password to get it sent to their email, and when they submit the request I would like to launch the Mail app, preferably in their Inbox.
Is there a way to do this?
Not possible. Confirmed by Apple.
If it is possible, it might be outside the public APIs. That said, here's an idea that might work, but I don't have all the details for you. The way you get Mail to open up when you want to send e-mail is that the APIs handle a URL request for mailto: by passing it to Mail. Maybe you can find another URL type that you can request to have opened, Mail will try to open it, but then have nothing there for Mail to open. If all goes in your favor, Mail will open and not show anything to the user (even an error from the bogus request you sent it).
Hell if I know what type of URL you'd need a pass, and there's no guarantee that something like this wouldn't break in a future iPhone OS version.