• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need Help with Mail...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need Help with Mail...


  • Subject: Re: Need Help with Mail...
  • From: Bernardo Hoehl <email@hidden>
  • Date: Thu, 24 Feb 2005 09:16:26 -0300

Hi Wayne,


Thanks for the help.

It works.

I was trying

send message new_message

bu it should be

send  new_message


Bernardo

+++++++++++++++++


On 24 Feb, 2005, at 9:10 AM, wayne melrose wrote:

Here is some code pretty similar to yours, which has worked for me in the past, the only think I haven't tested this with is adding attachments ... As your code includes...


set theName1 to "Name1" set theName2 to "Name2" set theSender to "email@hidden" set theSubject to "Test" set theBody to "Test 123" set theAddress1 to "email@hidden" set theAddress2 to "email@hidden"

tell application "Mail"
set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody & return & return}
tell newMessage
set visible to false -- I don't think you need to make your mail visible if you need it to send straight away...
set sender to theSender
make new to recipient at end of to recipients with properties {name:theName1, address:theAddress1}
tell content
end tell
activate
send newMessage
end tell
end tell





On Feb 24, 2005, at 12:57 PM, Bernardo Hoehl wrote:

Hi List!


This is my script:


set theSubject to "The subject text"
set theBody to "The text of the message"
set theDestinationEmail to "email@hidden"
tell application "Mail"
set the new_message to ¬
(make new outgoing message with properties ¬
{visible:true, subject:theSubject, sender:"email@hidden", content:theBody & return})
tell the new_message
make new to recipient at end of to recipients with properties {address:theDestinationEmail}
tell content
make new attachment with properties {file name:alias "Sistema Vendas:Fotos:bernardo.jpg"} at after the last character
end tell
end tell
end tell



Problem:

I want this message to be sent right away withou having to go to Mail.app and hit the send button.

But I try the send message frase that is Mail.app dictionary's and it doesn't work. The message stays there waiting me to hit the send button.

Can someone add a frase to my script that will make it send the email right away?

Thank you,

Bernardo Höhl

Rio de Janeiro - Brazil _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Need Help with Mail... (From: Bernardo Hoehl <email@hidden>)
 >Re: Need Help with Mail... (From: wayne melrose <email@hidden>)

  • Prev by Date: Re: Need Help with Mail...
  • Next by Date: Re: Need Help with Mail...
  • Previous by thread: Re: Need Help with Mail...
  • Next by thread: Re: Need Help with Mail...
  • Index(es):
    • Date
    • Thread