Questions tagged [apple-mail]

148 questions
1
vote
1 answer

Applescript: Use user inputs to get contact email from Address Book and add to Mail message

I would like to know what script I can use to add an email address of a person in Contacts to Mac Mail? This is what I have thus far, it asks for various inputs and then uses these to compile a message. The rest of the code for the message works…
coachpienaar
  • 63
  • 1
  • 11
1
vote
1 answer

How to find the default mail client on Mac OS X?

I've an application which gives Images as outputs and those outputs are to be opened in a mail client's new message [as an attachment]. On Mac OS X, Apple mail is the default mail client. So what I did was, wrote an automator workflow and opened the…
Vighnesh Pai
  • 1,795
  • 1
  • 14
  • 38
1
vote
1 answer

Mac Mail "See More" messes up html formatting

I have an html email I send out. It is formatted with tables because the original designer said, those were more reliable than divs for mail clients. All styles are inline: When a single email is received,…
KateYoak
  • 1,591
  • 3
  • 18
  • 34
1
vote
1 answer

Mail.app plugin - a toolbar button

How could I add a button to the Apple Mail's toolbar? As i understand, I need to "swizzle" some methods of the MessageViewer class (this is the first responder window of the Mail.app). Thanks to several open source Mail plugins, I managed to…
0
votes
2 answers

Applescript Moving Email to Trash, But Not Deleting from the Server

I wrote an AppleScript that moves selected emails to the Trash. The script works fine in that regard. The problem is that the emails remain on the server. Is there additional code I need to add to get it to do that? Here's the code: using terms from…
curt
  • 4,422
  • 3
  • 42
  • 61
0
votes
1 answer

Apple Mail and its Webview Component

Does anyone know what Apple Mail is written in? I'm trying to determine what component it uses to render HTML, is it using the Webview Class? Are there any other options to render HTML when building OS X applications?
Abs
  • 56,052
  • 101
  • 275
  • 409
0
votes
2 answers

Using AppleScript to Move Mail Messages to Trash

I've written a script that is invoked by a Mail rule. I want the script to move messages to the trash under certain conditions. It didn't work so I've commented out the test and it still didn't work. I got the code from an online tutorial. The…
curt
  • 4,422
  • 3
  • 42
  • 61
0
votes
0 answers

iCloud account other domains

I am developing a web application with go as backend. It has a functionality that uses github.com/emersion/go-imap/v2 imap client to login. In that, I am not able to login to icloud account of other domains (doesnt end with icloud.com) with the app…
nitcherry
  • 21
  • 4
0
votes
1 answer

How to ensure the html email signature looks good on different email programmes?

I have an issue with an email signature I created in HTML with inline styling. When I paste the ready signature into Outlook the signature looks completely wrong (image is bigger than it should be, the icons are missing and more...), whereas when I…
2pacan
  • 1
0
votes
0 answers

Applescript to extract dates from email to create ical Calendar event

I have only limited understanding of Applescript but wanted to automate every time I recieve an email regarding an event to automatically create an event in calendar. I have set up a rule in Apple Mail to run an Applescript when the email comes from…
alsleben
  • 1
  • 2
0
votes
1 answer

Issues with the CSS in this email for Apple mail IOS 16

I've been working on this mailer for a few months now - I'm not a coder but was able to use some pre designed templates and add in the additional requirements for outlook, gmail and Apple mail. However when I go to test the mailer it is appearing…
0
votes
1 answer

NodeMailer plus Apple Mail -- how to create a Draft email

Trying to use NodeMailer to create a Draft email in Apple Mail. The following approaches have not yet been successful: Using NodeMailer's mail option saveToDrafts: true Saving an email as a .eml file in the Finder, using AppleScript to open the…
WhatsYourFunction
  • 621
  • 1
  • 9
  • 25
0
votes
1 answer

Does imaplib works to download a pdf inside a mail from AppleMail?

I am trying to download the pdf from a mail received on an Apple account xy@me.com. I have already managed to do it from a gmail account with no trouble but the result from imaplib.fetch seems to be empty using RFC822 when I apply it to a "@me.com"…
0
votes
1 answer

Deleting with IMAP4.uid Apple Mail: UID command error

I'm trying to revive a python 2 code that I found on github to clean out my icloud mails. My code logs in, selects INBOX and fetches status, IDs and UIDs successfully using imaplib.IMAP4_ssl as email_connection. It, then, should flag emails in…
0
votes
0 answers

Applescript: Making a text file for every mailbox containing subject + sender + date of every mail

I'm trying to compare all emails from the "Mail" application on an old mac to a newer one. I'm trying out AppleScript for the first time to help me. I'm good at using C-family programming languages but have difficulty getting my head around the…
user765151
  • 83
  • 1
  • 9