Mail Extensions

RSS for tag

Use Mail Extensions for composition, message actions, secure email, and content blocking in the Mail app.

Posts under Mail Extensions tag

109 Posts

Post

Replies

Boosts

Views

Activity

Default mail app is not detected when Apple mail app deleted (mailto)
I detected a possible bug during development that the default mail app is not detected by apps when the Apple mail app is deleted. Reproduced on more than 3 iPhones - all with iOS version 14.8 or higher. Setup: I have 3 mail apps on my device: Apple Mail, Outlook, and a third one. I never touched default mail app settings before. Then I deleted Apple Mail and Outlook was automatically set as the new default mail app in the phone settings. Expected: When an app attempts to open the default mail app (mailto link), the Outlook app is opened. Actual: A message pops up saying that Apple Mail app is not installed on the device. Once I go to my phone settings and actively select Outlook or the other mail app as the default mail app, it works. Other apps open the default app and don't show the popup to install Apple Mail. This is an issue since users will not be aware that they need to actively set an email app in their phone settings even if it already appears to be set, and appears to be unwanted behaviour. We would love to leverage the functionality of using the phone's default mail app, but we have reproduced this issue on multiple devices and I couldn't find anything related to this issue online. Is this issue known yet? Where can I place this problem?
0
1
1.3k
Apr ’22
MailKit: access rawData for email
Hi, I am trying to build a Mail 'action' extension, and want to access the email body and parse it for specific content. Not sure how to go about converting the 'rawData' that comes in the MEMessage into something that I can read. Here's how I access the rawData property: func decideAction(for message: MEMessage, completionHandler: @escaping (MEMessageActionDecision?) -> Void) { var action: MEMessageActionDecision? = nil      if let messageData =  message.rawData {          print("messageData = \(messageData)") // what to do here??      } else {          action = MEMessageActionDecision.invokeAgainWithBody      } return action } The documentation just says this is 'unprocessed data': The content is available after MailKit downloads the message. MailKit provides the content as unprocessed data. For details about the format of the data, see RFC 2822. But I'm not sure what I'm supposed to do to go about converting the unprocessed 'data' into something that is accessible and useful to my app. Let me know if you have any thoughts or recommendations
2
0
1.7k
Apr ’22
Use Cryptotokenkit for mail deciphering
Hello, I recently implemented the Cryptotokenkit for IOS in order to sign mails (via Apple Mail app). This part went relatively smooth. I found in the Mail settings the parameter under S/MIME that enable Signing mails. Now that this step is complete I also wanted to implement mail deciphering. I tried to run some tests but I met the following message when opening encrypted mail: This message is encrypted. Install a profile containing your encryption identity to decrypt this message I'm sure I've encrypted the mail for me. and I'm also sure the identity is saved and usable inside the Cryptotokenkit I implemented. My questions are: is it possible to use the Cryptotokenkit for mail deciphering? (I assume that since I can sign mail via Cryptotokenkit I can also do mail deciphering, right ?). If the first question's answer is yes. then how do you enable the Cryptotokenkit to do mail deciphering? (I thought the option was close to the one for enabling signing mails but I only found mail encryption)
1
1
1.1k
Feb ’22
Universal Linking in Apple Mail
Hi Everyone, My boss and I are trying to choose and assimilate into a project management workflow and are currently considering some of the major PM apps available (Daylite, Basecamp, etc.). We are currently using Notion as a knowledge capture tool and project manager modeled after a program (Year Zero) created by productivity content creator August Bradley. But, one major requirement that we have and can't seem to figure out is creating a universal link to emails in Apple Mail. My boss uses Apple Mail to process his emails and would like to simply create a universal link to emails that contain action items or require later review, and send it to whatever PM software we choose, or to store in Notion. We have discovered a somewhat useful but clunky workaround in which you export an email to reminders or notes and it creates a link in the form of an icon back to the email, but the icon is not copy/paste-able into other apps like Notion, etc. Now, we are also aware that certain programs like Daylite, ToDoist, and Basecamp allow you to forward emails to your workspaces via proprietary email addresses that link to their databases, but these have varying degrees of utility as they often are very limited in the degree of control one has over where the email is sent and stored, and what information/formatting is retained. Anyway, does anyone have information about how to effectively universally link to an original email on the Apple Mail servers?
0
0
738
Jan ’22
Mail Extension for Creating Signature
Hi, I have an application which adds custom signature to Signature tab of the Mail Preference window based on the inputs entered (first name , last name , Designation,Phone , address etc etc....). I’m wondering if the new Mail Extension can be used to do signatures more ‘natively’. Can MEComposeSessionHandler be used for this? Please help. Thanks In Advance. Regards, Neetha
2
0
1.4k
Jan ’22
Setting or injecting mail signatures
Hi All Is there a way to assign an email signature through the MECompose class? This process already working for gmail accounts, signatures settings can be set from an api provided by google. For outlook there is an AddIn that supports injecting a signature upon composing a mail. Now that extensions have come up for monterey, I wonder if they provided a way to do it for the mac mail app as well through the Mail Extension service. An example of what I want (to be able to do either of this 2 options) after pressing the extension (better solution to do it automatically just by this extension to be installed): Set a new signature name, for example 'Work' if it doesn't exist and fetch a signature from a REST API and edit it there. Upon composing new mail fetch a signature through REST API and set/replace the current signature with the one returned. Is it possible with the new Mail Extension package? It would also be nice for a short snippet of how to start with this. Regards, Shlomi
0
0
544
Dec ’21
MailKit API Documentation
Does any have anyone have documentation on the usage related to the forMessageContext and messageContext parameters and for the methods below? This is undocumented while public making it an unusable API. func extensionViewController(messageContext: Data) -> MEExtensionViewController? func primaryActionClicked(forMessageContext context: Data) async -> MEExtensionViewController? The APIs are located here but lack any kind of proper documentation and examples https://developer.apple.com/documentation/mailkit/memessagesecurityhandler/3882908-extensionviewcontroller
0
0
949
Nov ’21
Apple Watch optimized email doesn't work
I am currently trying to develop an Apple Watch optimized email. But none of the existing approaches like using headers Content-Type: text/watch-html; charset="utf-8" Content-Type: text/X-watch-html; charset="utf-8" doesn't work. I also used the tricks described in the article on Litmus https://www.litmus.com/blog/how-to-send-hidden-version-email-apple-watch/ but it also had no effect. Apple Watch displays the standard text/html version of the email. Perhaps someone has a working solution or an explanation for the reason for this behavior.
0
0
512
Nov ’21
Ios 15.2 beta mail search
Hi All, I’ve noticed that the mails search by contact is not working as it should. it is showing emails of 2 months ago’ but the most recent ones. My accounts are pop 3 and mails are still on the server. Can this be related to the beta version? Thanks for your help. D
2
0
726
Nov ’21
Unable to construct MEDecodedMessage since Monterey Beta 7
I've already created feedback id FB9647811 about this, but as there has been no response to that I was wondering if anyone else had experienced the same or found a fix. My extension was working until Monterey beta 7 but now it crashes with the following message: [MEDecodedMessage initWithData:securityInformation:]: unrecognized selector sent to instance According to the documentation this is the correct constructor.
1
0
1k
Nov ’21
dont receive emails
Hello! I registered with one tv provider in my country with my apple id, but since registering it shows my e-mail as my apple private email relay service email and due to this i can't change my email or password,because i didnt receive them to my actual e-mail. how do I change this and why my e-mails aren't forwarded to my actual e-mail?
1
0
735
Nov ’21
Default mail app is not detected when Apple mail app deleted (mailto)
I detected a possible bug during development that the default mail app is not detected by apps when the Apple mail app is deleted. Reproduced on more than 3 iPhones - all with iOS version 14.8 or higher. Setup: I have 3 mail apps on my device: Apple Mail, Outlook, and a third one. I never touched default mail app settings before. Then I deleted Apple Mail and Outlook was automatically set as the new default mail app in the phone settings. Expected: When an app attempts to open the default mail app (mailto link), the Outlook app is opened. Actual: A message pops up saying that Apple Mail app is not installed on the device. Once I go to my phone settings and actively select Outlook or the other mail app as the default mail app, it works. Other apps open the default app and don't show the popup to install Apple Mail. This is an issue since users will not be aware that they need to actively set an email app in their phone settings even if it already appears to be set, and appears to be unwanted behaviour. We would love to leverage the functionality of using the phone's default mail app, but we have reproduced this issue on multiple devices and I couldn't find anything related to this issue online. Is this issue known yet? Where can I place this problem?
Replies
0
Boosts
1
Views
1.3k
Activity
Apr ’22
MailKit: access rawData for email
Hi, I am trying to build a Mail 'action' extension, and want to access the email body and parse it for specific content. Not sure how to go about converting the 'rawData' that comes in the MEMessage into something that I can read. Here's how I access the rawData property: func decideAction(for message: MEMessage, completionHandler: @escaping (MEMessageActionDecision?) -> Void) { var action: MEMessageActionDecision? = nil      if let messageData =  message.rawData {          print("messageData = \(messageData)") // what to do here??      } else {          action = MEMessageActionDecision.invokeAgainWithBody      } return action } The documentation just says this is 'unprocessed data': The content is available after MailKit downloads the message. MailKit provides the content as unprocessed data. For details about the format of the data, see RFC 2822. But I'm not sure what I'm supposed to do to go about converting the unprocessed 'data' into something that is accessible and useful to my app. Let me know if you have any thoughts or recommendations
Replies
2
Boosts
0
Views
1.7k
Activity
Apr ’22
How to compose and send email with high importance in MAC Email client ??
How to compose and send email with high importance in MAC Email client ??
Replies
0
Boosts
0
Views
806
Activity
Mar ’22
Use Cryptotokenkit for mail deciphering
Hello, I recently implemented the Cryptotokenkit for IOS in order to sign mails (via Apple Mail app). This part went relatively smooth. I found in the Mail settings the parameter under S/MIME that enable Signing mails. Now that this step is complete I also wanted to implement mail deciphering. I tried to run some tests but I met the following message when opening encrypted mail: This message is encrypted. Install a profile containing your encryption identity to decrypt this message I'm sure I've encrypted the mail for me. and I'm also sure the identity is saved and usable inside the Cryptotokenkit I implemented. My questions are: is it possible to use the Cryptotokenkit for mail deciphering? (I assume that since I can sign mail via Cryptotokenkit I can also do mail deciphering, right ?). If the first question's answer is yes. then how do you enable the Cryptotokenkit to do mail deciphering? (I thought the option was close to the one for enabling signing mails but I only found mail encryption)
Replies
1
Boosts
1
Views
1.1k
Activity
Feb ’22
Mail Extension
How can I add an icon like MEComposeIcon on my mail toolbar in spite of Compose Window?
Replies
0
Boosts
0
Views
754
Activity
Jan ’22
Add extension icon on the Mail Viewer window
With the help of MEComposeIcon I know that we can add a extension icon in the compose window. Just wanted to know how can we add the app extension on the mail main Viewer window like when we open the mail there is top toolbar which contains icon for compose mail delete mail etc. See the attached screen shot.
Replies
0
Boosts
0
Views
828
Activity
Jan ’22
Mail : Different colors MacOs, IOS
Hello, We have an issue with the dark mode color in the different OS in Mac OS the color is #1F2329 and in IOS is #1C1C1E. How to set up for this ? Thanks for your help
Replies
1
Boosts
0
Views
707
Activity
Jan ’22
MFMailComposeViewController.canSendMail() how to detect which mail client is available
MFMailComposeViewController.canSendMail() returns true even when Mail app is not installed on the device. This seems to have changed recently. Is this normal behaviour?
Replies
1
Boosts
0
Views
789
Activity
Jan ’22
Universal Linking in Apple Mail
Hi Everyone, My boss and I are trying to choose and assimilate into a project management workflow and are currently considering some of the major PM apps available (Daylite, Basecamp, etc.). We are currently using Notion as a knowledge capture tool and project manager modeled after a program (Year Zero) created by productivity content creator August Bradley. But, one major requirement that we have and can't seem to figure out is creating a universal link to emails in Apple Mail. My boss uses Apple Mail to process his emails and would like to simply create a universal link to emails that contain action items or require later review, and send it to whatever PM software we choose, or to store in Notion. We have discovered a somewhat useful but clunky workaround in which you export an email to reminders or notes and it creates a link in the form of an icon back to the email, but the icon is not copy/paste-able into other apps like Notion, etc. Now, we are also aware that certain programs like Daylite, ToDoist, and Basecamp allow you to forward emails to your workspaces via proprietary email addresses that link to their databases, but these have varying degrees of utility as they often are very limited in the degree of control one has over where the email is sent and stored, and what information/formatting is retained. Anyway, does anyone have information about how to effectively universally link to an original email on the Apple Mail servers?
Replies
0
Boosts
0
Views
738
Activity
Jan ’22
Mail Extension for Creating Signature
Hi, I have an application which adds custom signature to Signature tab of the Mail Preference window based on the inputs entered (first name , last name , Designation,Phone , address etc etc....). I’m wondering if the new Mail Extension can be used to do signatures more ‘natively’. Can MEComposeSessionHandler be used for this? Please help. Thanks In Advance. Regards, Neetha
Replies
2
Boosts
0
Views
1.4k
Activity
Jan ’22
Setting or injecting mail signatures
Hi All Is there a way to assign an email signature through the MECompose class? This process already working for gmail accounts, signatures settings can be set from an api provided by google. For outlook there is an AddIn that supports injecting a signature upon composing a mail. Now that extensions have come up for monterey, I wonder if they provided a way to do it for the mac mail app as well through the Mail Extension service. An example of what I want (to be able to do either of this 2 options) after pressing the extension (better solution to do it automatically just by this extension to be installed): Set a new signature name, for example 'Work' if it doesn't exist and fetch a signature from a REST API and edit it there. Upon composing new mail fetch a signature through REST API and set/replace the current signature with the one returned. Is it possible with the new Mail Extension package? It would also be nice for a short snippet of how to start with this. Regards, Shlomi
Replies
0
Boosts
0
Views
544
Activity
Dec ’21
MailKit API Documentation
Does any have anyone have documentation on the usage related to the forMessageContext and messageContext parameters and for the methods below? This is undocumented while public making it an unusable API. func extensionViewController(messageContext: Data) -> MEExtensionViewController? func primaryActionClicked(forMessageContext context: Data) async -> MEExtensionViewController? The APIs are located here but lack any kind of proper documentation and examples https://developer.apple.com/documentation/mailkit/memessagesecurityhandler/3882908-extensionviewcontroller
Replies
0
Boosts
0
Views
949
Activity
Nov ’21
Apple Watch optimized email doesn't work
I am currently trying to develop an Apple Watch optimized email. But none of the existing approaches like using headers Content-Type: text/watch-html; charset="utf-8" Content-Type: text/X-watch-html; charset="utf-8" doesn't work. I also used the tricks described in the article on Litmus https://www.litmus.com/blog/how-to-send-hidden-version-email-apple-watch/ but it also had no effect. Apple Watch displays the standard text/html version of the email. Perhaps someone has a working solution or an explanation for the reason for this behavior.
Replies
0
Boosts
0
Views
512
Activity
Nov ’21
Ios 15.2 beta mail search
Hi All, I’ve noticed that the mails search by contact is not working as it should. it is showing emails of 2 months ago’ but the most recent ones. My accounts are pop 3 and mails are still on the server. Can this be related to the beta version? Thanks for your help. D
Replies
2
Boosts
0
Views
726
Activity
Nov ’21
Unable to construct MEDecodedMessage since Monterey Beta 7
I've already created feedback id FB9647811 about this, but as there has been no response to that I was wondering if anyone else had experienced the same or found a fix. My extension was working until Monterey beta 7 but now it crashes with the following message: [MEDecodedMessage initWithData:securityInformation:]: unrecognized selector sent to instance According to the documentation this is the correct constructor.
Replies
1
Boosts
0
Views
1k
Activity
Nov ’21
dont receive emails
Hello! I registered with one tv provider in my country with my apple id, but since registering it shows my e-mail as my apple private email relay service email and due to this i can't change my email or password,because i didnt receive them to my actual e-mail. how do I change this and why my e-mails aren't forwarded to my actual e-mail?
Replies
1
Boosts
0
Views
735
Activity
Nov ’21
MailExtension cannot block sending a mail
when I throw an exception in the func allowMessageSendForSession(_ session: MEComposeSession), the mail.app will show alert with two buttons: "cancel" and "send anyway", if I press the "send anyway" then the mail will be sent successfully! I'm wondering: how to really stop sending email? Thanks
Replies
1
Boosts
0
Views
692
Activity
Nov ’21
Issue in Mailto url encoding in latest iOS version
Hello, I am not able to use or \n to take a new line in the email body in the default iOS mail application. Example: mailto:abc@gmailDOTcom?subject=test&body=Hello,mailBody Result in latest iOS mail app: Hello,mailBody Expected result: Hello, mailBody Will you please help me to resolve this issue?
Replies
2
Boosts
0
Views
1.2k
Activity
Nov ’21
Broken Sample Xcode Project Xcode 13.1
The Sample Mail App Extension project no longer builds under Xcode 13.1 due to conflicting swift and obj-c protocol method signatures
Replies
1
Boosts
0
Views
1k
Activity
Oct ’21
mail won't load known senders
The new apple mail doesn't seem to want to automatically load emails from known senders. I can click the button to do the download, but it's getting annoying. I am sure there is a setting somewhere for that but haven't been able to find it yet. Anyone?
Replies
1
Boosts
0
Views
674
Activity
Sep ’21