apple-mail

imap - get attached file

青春壹個敷衍的年華 提交于 2019-12-05 00:39:38
How do I get the attached file from this email? This email is sent from an apple computer and the email struture is not like any other (surprise).. here the part with the disposition is one dimension deeper than else.. The script works with every other email where the part with the file is in the first dimension, but not with this one $part->dparameters[0]->value returns the file name, but strlen($data) returns 0 imap stream $structure = imap_fetchstructure($this->stream, $this->msgno); if(isset($structure->parts)){ print_r($structure->parts); $this->parse_parts($structure->parts); } function

Launch Mail app (iOS) from my own app

橙三吉。 提交于 2019-12-01 00:53:10
There's a lot of questions on this topic, but no updated answer. I want to open the native iOS mail app WITHOUT the compose view (from within my own app). All answers so for say it's impossible, but the app Slack manages to do this. Anyone have any idea? Vladimir You can launch mail app using message:// url scheme, e.g. NSURL* mailURL = [NSURL URLWithString:@"message://"]; if ([[UIApplication sharedApplication] canOpenURL:mailURL]) { [[UIApplication sharedApplication] openURL:mailURL]; } I was not able to find any information about it in apple documentation, but the scheme is present in URL

Email Sender Image from Google+ Account

走远了吗. 提交于 2019-11-30 22:22:39
I'd like for all emails send from my server (e.g. mail@example.com) to arrive in recipients inboxes with a custom sender image used in Apple Mail and Google Inbox. I have created a new Google+ account, linked and verified my website (by uploading the .html file, you know ;]), but still, the emails don't contain my Google + profile image as their sender image. I assume it's something to do with me not sending emails from the new gmail address I've created with Google+. I'm hoping someone knows how to work around this and have Google+ treat any emails coming from my domain as the new Google+

Email Sender Image from Google+ Account

浪子不回头ぞ 提交于 2019-11-30 17:46:08
问题 I'd like for all emails send from my server (e.g. mail@example.com) to arrive in recipients inboxes with a custom sender image used in Apple Mail and Google Inbox. I have created a new Google+ account, linked and verified my website (by uploading the .html file, you know ;]), but still, the emails don't contain my Google + profile image as their sender image. I assume it's something to do with me not sending emails from the new gmail address I've created with Google+. I'm hoping someone knows

How to set the sender of the current Mail.app outgoing message via AppleScript?

浪尽此生 提交于 2019-11-30 07:30:52
I'd like to write an AppleScript to set the sender of the current outgoing message in Apple's Mail.app. I've tried this: tell application "Mail" to set sender of front outgoing message to "<my email address>" but I get the error message error "Mail got an error: Can’t set sender of item to any." number -10006 from sender of item to any which doesn't make sense to me. When I try to interrogate the front outgoing message as follows: tell application "Mail" to get properties of front outgoing message I get {class:item} in return, instead of an "outgoing message" object like I'd expect. Any ideas?

Not able to Execute AppleScript within “Mail” application

余生长醉 提交于 2019-11-28 04:44:20
问题 I have create one mail plugin and add "Button" beside the "Send" button of outgoing Mail, and now i want to send outgoing Mail from my Button also and i also write applescript for that like activate application "Mail" tell application "System Events" tell application process "Mail" log "foo" tell menu bar 1 tell menu bar item "Message" tell menu "Message" click menu item "Send" end tell end tell end tell end tell end tell This script is working in Applescript editor but NOT WORKING FROM MY