Checking Mail actually sends mail
Checking Mail actually sends mail
- Subject: Checking Mail actually sends mail
- From: Jay Louvion <email@hidden>
- Date: Thu, 17 Sep 2009 17:40:32 +0200
- Thread-topic: Checking Mail actually sends mail
Title: Checking Mail actually sends mail
Hi all,
I’ve been using an AS which ends by sending out an email (the snippet hereunder is part of a subroutine), but somehow the sending either hangs and never happens, either Mail quits before an email gets sent...
How more frustrating can it get to notice that Entourage has better AS response than Mail ?
tell application "Mail"
set MessageSent to false
set newMessage to make new outgoing message with properties {subject:theSubject}
tell newMessage
set visible to false
set sender to theSender
make new to recipient at end of to recipients with properties {name:Photographer, address:theAddress}
set html content to "<html><head><title>" & theSubject & "</title></head><body>" & "<i>Ceci est un message automatique.</i>" & theSource & "</b><br><br>Retrouvez votre planning personnel sur le web: " & thelink & "<br><br></body></html>"
end tell
repeat until MessageSent is true
set MessageSent to messages of outbox is {}
send newMessage
end repeat
end tell
I have also noticed that my latest mod (which the script above reflects, where I use the length of messages in Outbox, instead of specifying set MessageSent to send newMessage to get the boolean) seems to generate multiple mails in the OutBox (and that seems plain crazy)
Thanks to anyone who has even a vague idea how I could make this work better.
Best,
j.
Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva
T+4122 840 3272
F+4122 840 3271
www.studiocasagrande.com
P Please consider the environment before printing this email.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden