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

27 results found
Sort by:
Post not yet marked as solved
286 Views

MEComposeSessionHandler alert message not shown

When the mail extension invoke allowMessageSendForSession func, the error prompt did not show the error description. What am I missing? Below is the code:     enum ComposeSessionError: LocalizedError {         case invalidRecipientDomain                  var errorDescription: String? {             switch self {             case .invalidRecipientDomain:                 return "example.com is not a valid recipient domain"             }         }     }          func allowMessageSendForSession(_ session: MEComposeSession) async throws {         // Before Mail sends a message, your extension can validate the         // contents of the compose session. If the message isn't ready to be         // sent, throw an error.         throw ComposeSessionError.invalidRecipientDomain     }
Asked Last updated
.
Post not yet marked as solved
68 Views

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
Asked
by MobileTen.
Last updated
.
Post not yet marked as solved
55 Views

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.
Asked
by Winnie12.
Last updated
.
Post not yet marked as solved
59 Views

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
Asked
by Denny787.
Last updated
.
Post not yet marked as solved
125 Views

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.
Asked Last updated
.
Post not yet marked as solved
201 Views

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?
Asked
by lfleur.
Last updated
.
Post not yet marked as solved
59 Views

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
Asked Last updated
.
Post not yet marked as solved
100 Views

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?
Asked Last updated
.
Post not yet marked as solved
157 Views

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?
Asked
by JKing42.
Last updated
.
Post not yet marked as solved
465 Views

MailKit for macOS 12 access to attachments

Hello, MailKit for macOS 12 looks great, but it is possible to have access to incoming/outgoing email attachments? For the moment MEMessage does not give access to such properties. Or any other ways to achieve this? (like some data parsing)? Thank you
Asked Last updated
.
Post not yet marked as solved
171 Views

Outlook MSFT Office 16.53 Still Not Working with Monterey Beta 5

I updated MSFT Outlook to the latest version 16.53 and it is still not working with Monterey Beta 5. Getting the beachball spinning every time I open an email. Does anyone have fixes for this or know when Apple/MSFT will be sending out an update? Thanks!
Asked Last updated
.
Post not yet marked as solved
283 Views

HTML Signature Font Issue in Apple Mail

I have added an HTML signature to the Apple Mail, whenever I hit compose the font is the same, but when I hit send and receive the email, the font changes to something of a similar version. I have used a custom font in the email signature. Why does this issue happen?
Asked Last updated
.
Post not yet marked as solved
180 Views

Problems with url image on apple signature mail

Hey what's up everybody. A long time without connecting here. I'm pretty sure my trouble is not a new topic but I still having this trouble each time I want to sign my email. Do someone know how to solucionaste the problem of the image that disappears from the signature mail. I still using the apple mail platform... Thx
Asked Last updated
.
Post marked as solved
326 Views

Body data missing in decodedMessage call

I have a multipart message and in the MEMessageSecurityHandler.decodedMessage(forMessageData:) function call, I can access all of the headers of the email, but when I get to the body section, the actual content of the email is missing. I've dumped the data out to a file and can see that there is an X-Apple-Content-Length header been added, but the content of the multipart email --=-=W2HxPVXDSaWZZw=-= X-Apple-Content-Length: 11 Content-Type: application/pgp-encrypted --=-=W2HxPVXDSaWZZw=-= Content-Transfer-Encoding: 7Bit Content-Disposition: inline; filename=openpgp-encrypted-message.asc Content-Type: application/octet-stream; name="openpgp-encrypted-message.asc" X-Apple-Content-Length: 9608 --=-=W2HxPVXDSaWZZw=-=-- How can I access the content of these parts to decrypt the message?
Asked Last updated
.