Send apple email - how do I set the - send FROM account?
found this nice script to auto create and send apple email...
Q: how do I set the : send from account?
tell application "Mail"
set theMessage to make new outgoing message with properties {visible:true, subject:"My Subject", content:"My Body"}
tell theMessage
make new to recipient at end of to recipients with properties {name:"test", address:"[email protected]"}
end tell
send theMessage
end tell
nice info here:
http://www.mactech.com/articles/mactech/Vol.21/21.09/ScriptingMail/index.html
I've been using the following which may be more complicated than necessary but it does work:
-- SCRIPT SEGMENT --
tell application "Mail"
activate
set listOfSenders to {}
set everyAccount to every account
repeat with eachAccount in everyAccount
set everyEmailAddress to email addresses of eachAccount
if (everyEmailAddress is not equal to missing value) then
repeat with eachEmailAddress in everyEmailAddress
set listOfSenders to listOfSenders & {(full name of eachAccount & " <"Mail"
set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody & return & return}
tell newMessage
set visible to true
set sender to theSender
make new to recipient at end of to recipients with properties {name:theName, address:theAddress}
set font to "Lucinda Sans"
set size to 14
end tell
activate
--send newMessage
end tell
-- END SCRIPT SEGMENT --
I have commented the actual "send message" line so that I can read the message before clicking the send button as I often will add a comment.
Al
Similar Messages
-
I would like so send emails to multiple addresses yet I want each recipient to only see his or her address
This question isn't related to Mozilla Firefox. However, I can still answer your question. In the 'to' field, put your own e-mail address and put each recipient's address in the BCC field. This way the only address seen is your own.
Please try to post in the appropriate forum next time. (Thunderbird, Gmail, etc.) -
Mail locked up because of sending problem. How do I stop the send function?
Mail locked up because of sending problem. How do I stop the send function?
Didn't help. Wound up talking to A Support & deleting the cache in my Library Mail file then restarting. Thanks anyway.
-
HT204053 My husband and I have separate apple IDs, how do we use the same iTunes account
My husband and I have separate apple IDs , how do we use the same iTunes account
You don't. Each ID is associated with a separate account. Each of you should maintain a separate user account on your computer so as to maintain separate iTunes Libraries. Do not sync your phone with your husbands account or Apple ID and vice-versa or your data will become inter-mixed or worse - deleted from the phone.
Try to understand that iDevices are intended for use by one person with one Apple ID, one iTunes Library, and one iTunes account. They are not multi-user devices. -
How do I set the default from email for invititations
I use my ical calendar for different business and personal calendars.
Is there any way to set up the "from" email account to coinscide with the calendar the event is made for.
i.e. If I make a personal event, the invite is sent from my personal e-mail, and if I make a business appointment, the invite is sent from my business account.
I was able to do this with google calendar, but I am trying to be all in the cloud.
Any help would be appreciated.
P.s. running 10.7 and iCal vs.5.0.1
ThanksI understand that you want each of several email accounts to act independently, such that mail for account 1 is sent and received only on that account, then account 2 likewise, etc.
For each email account, left click on the account name and then select 'View settings for this account'.
On the 'Account Settings' page, look at the 'Reply-to-Address' (should be blank) and also select the 'Manage Identities' box, which shows the default name and email address. If the default is not for that account, you can add or edit the entries and set the default.
Back on the 'Account Settings' page, select 'Outgoing Server (SMTP)' and check the user name/account there. It should be for the same account.
For each account, the other accounts should not be mentioned in any of the places identified above.
- duggabe -
I have an iPhone 5s and an iPad 2 both using the same Apple ID sometime I'd like to FaceTime the iPad from the iPhone to talk to my wife while at work how can I get it to do this it always says unavailable.
Naw I figure it out without all that had to go into the FaceTime settings and only use the phone number on the iphone and only use the Apple ID on the iPad works great now no need for two Apple ID or any signing in and out.
Thanks for your help though -
With apple pay, how do i delete the receipts from my phone
how do i delete receipts from my phone after using apple pay
If the photo was taken with the iPhone camera or copied from an email or the web you can use the Photos app to delete the photo.
If the photo was copied to the iPhone during a sync with a computer you delete the photos by doing another sync. Either delete the album the photos is in or move the photo out of the album it is in on your computer. Then complete the sync process. -
How do I set the songs from itunes on my iphone 4s as ringtones? I shouldn't have to purchase ringtones when I have a whole music library on my iphone to choose from and songs that I have already purchased! I should not have to rebuy music!!
If anyone can help me on this that would be great! Thank you!My comment is the same as Dyson2003.
I am very disappointed, as I thought by purchasing a ringtone the set up would be easy - this I find to be extremely misleading. Before iPhone allows you to purchase a ringtone, they should make it very clear that to download a ringtone you will need the GarageBand programme in order to enable the ringtone to work.
I sent an email to the support team, in the hope that they would be able to advise me. I was basically referred to a telephone number for the country that I live in. In writing this email, when finished I think I am going to ask back for a refund.
In reading the above comments, I am even more annoyed because I've googled GarageBand only to see that theirs a cost of £2.99. I am so not impressed! -
How do I set the number of Plays?
01Jul2011
I need to change the number of plays of some mp3 files in itunes. How do I change files that were played, but not counted as plays to played?
I have audio lectures, in order in a playlist that I don't want to hear again. My playlist is set only to list unplayed (plays <1) audio files. Sometimes the ipod I use to listen to the files locks up and does count the completed files as played (Plays = 1). How can I set the Plays from 0 to 1?
Thank you for your help with this.
Regards,
chhendenStart the file playing in iTunes then click on the right end of the play progress bar. Playback will end. The play count will increment and the next track will begin to play.
-
How do I set the Submit button to send the information directly to a specific email address?
How do I set the Submit button to send the information directly to a specific outside email address? It isn't clear to me where or how it says that you can do this.
Is this for a web form or a PDF? If PDF, you would have to use Acrobat to edit the form and replace the submit button action with either a "Submit a form" action using a mailto type URL, or use the doc.submitForm statement to do the same.
-
How can I set the program to automaticaly send recieved email addresses to my address book?
As the question asks, how can I set the program to automatically add new email address from messages to my address book. Other email programs can be set up to do this. If this can't be done in Firefox, why not. It's the best email program otherwise.
First off Firefox is an Internet browser and does not deal with email addresses or have an address book to add them to. Secondly I cannot think of a good reason to add the address of each piece of spam to the Thunderbird address book.
There are addons that will pick out addresses from incoming email and add them to the Thunderbird address book. I suggest you search through the add on list for one that fits your needs. -
my imad 'lol' mini say i set up an icloud account when i first got it and its been disabled everytime i try to reset it it prompts me to a different email how can i reset the origanal
Hi JackEDupdog,
Welcome to the Support Communities! The article below will help you troubleshoot the issue you are having with your Apple ID:
Apple ID: Contacting Apple for help with Apple ID account security
http://support.apple.com/kb/HT5699
Cheers,
- Judy -
I have two ipods in my house that were set up under the same email. I have since assigned two different emails. How can I change the game center account so that is not shared by both ipods because it is for two different users and they are not happy?
By "game center account", do you mean Apple ID?
If so, you can change it.
1. Tap settings and navigate to iTunes and App Stores
2. Tap "Apple ID" and then tap "Sign Out"
3. Log in with a different ID. -
How can I set the language when sending an e-mail with attachment - 'Html'?
"Character Broken"
I made an ALV program, and this convert to "HTML', and send an e-mail with this.
Used Process is:
DATA: gt_abaplist LIKE TABLE OF abaplist,
gt_html LIKE TABLE OF w3html,
doc_chng LIKE sodocchgi1,
objpack LIKE TABLE OF sopcklsti1 WITH HEADER LINE,
objhead LIKE TABLE OF solisti1 WITH HEADER LINE,
mail LIKE TABLE OF solisti1 WITH HEADER LINE,
reclist LIKE TABLE OF somlreci1 WITH HEADER LINE,
lv_line TYPE i.
DELETE FROM MEMORY ID '%_LIST'.
SUBMIT z_template
AND RETURN EXPORTING LIST TO MEMORY.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = gt_abaplist
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
TABLES
html = gt_html
listobject = gt_abaplist.
doc_chng-obj_name = 'URGENT'.
doc_chng-sensitivty = 'O'.
doc_chng-obj_descr = ' '.
doc_chng-obj_langu = '3'.
objhead-line = ' '.
APPEND objhead.
mail[] = gt_html[].
DESCRIBE TABLE mail LINES lv_line.
CLEAR: objpack.
objpack-transf_bin = 'X'.
objpack-head_start = 1.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = lv_line.
objpack-doc_type = 'htm'.
objpack-obj_descr = ' '.
objpack-doc_size = lv_line * 255.
objpack-obj_langu = '3'.
APPEND objpack.
CLEAR: reclist.
reclist-receiver = 'e-mail address'.
reclist-rec_type = 'U'.
APPEND reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = objpack
object_header = objhead
contents_bin = mail
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
SUBMIT rsconn01 AND RETURN.
I want to show this by "Japanese".
But the character is broken.
LIke This:
u01D1u072C u0205| u0205u072C u0508 QC u04B90m
How can I set the language? How can I solve "Charancter Broken" ?
Plesse, let me know.
Thank you so much.
Edited by: Jaime White 999 on Nov 21, 2011 8:45 AM
Edited by: Jaime White 999 on Nov 21, 2011 8:46 AMHi Jaime,
Are you saying, you are getting junk characters in the email attachment? Then pls check the following. Since you want to send Japanese fonts, please pass language 'J' in both objpack-obj_langu = '3' & doc_chng-obj_langu = '3' instead of '3' please replace it with 'J'.
Another thing which you may have to check is the SCOT device type. As I understand from my basis colleague, this may also affect your attachment fonts since the emails are sent through SCOT. Go to transaction SCOT-> Settings-> Device types for format conversion. Check whether wrong device type is defined for Japanese there. Hope this helps
Regards,
Gokul -
I have two email accts. set in my iphone,one is the default setting.when I send an email it shows that it was sent from a 3rd email acct. that I no longer use,and had been deleted from my phone?
Install ClamXav and run a scan with that. It should pick up any trojans.
17" 2.2GHz i7 Quad-Core MacBook Pro 8G RAM 750G HD + OCZ Vertex 3 SSD Boot HD
Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
Maybe you are looking for
-
CLAIM AGAINT ADOBE FOR UNAUTHORIZED CHARGES JANUARY 2012 TO FEBRUARY 2015 Adobe Photoshop CS5.1 WILL NOT STOP CHARGING MY CREDIT CARD !!!!!!!!!!!!!!!!!!!!!!! Adobe's system is set up to make it VERY difficult to stop charging your credit card AFTER
-
Transfer balance to another account
from an existing account on iTunes. Really could use help for addressing this issue.
-
I am unable to pair my Iphone 4 with my car stereo or hands free device. It worked preveiously; please help.
-
Dynamic screen brightness and eye distance system are not there
well, i formatted my b510 as soon as i got it, artitioned it to my needs and installed windows 7 a new. works just great. the only thing i am missing and could not find either in the drivers cd or online is the two mentioned above applications. i wou
-
Dear all, Please help me, i have a one web link have a flash display, below the flash display some scrolling picture, when we click the image that image goes up, as well as left and right have forward & backward button, how can i do this type of flas