Applescript mail used to work...

but just stopped...my app receives email via a mail rule, processes it via osascript, then sends a reply...this worked until 12mar:
tell application "Mail"
tell (make new outgoing message with properties ¬
{subject:"re: " & cmd, content:(resultMsg as string) & return})
set sender to my dvrEmail
make new to recipient at end of to recipients with properties {address:replyTo}
send
end tell
end tell
here's the sent msg:
Subject: re: tvpi2DVR:send2sammy
From: [email protected]
Date: March 12, 2010 8:25:40 AM EST
To: [email protected]
[email protected] - tvpi2DVR:send2sammy
/tmp/1003_12__08_2534-program.tvpi
to
/Volumes/DVR/recordings/ScheduleMar_17_2010__08_00_5-1PM.tvpi
crontab updated
but by 16mar, the recipient was no longer getting set, thus no send. everything else is fine..the unsent msg sits in drafts, showing all expected inputs but no recipient:
Subject: re: tvpi2DVR:send2sammy
From: [email protected]
Date: March 16, 2010 11:48:02 AM EDT
[email protected] - tvpi2DVR:send2sammy
/tmp/1003_16__11_4718-program-2.tvpi
to
/Volumes/DVR/recordings/ScheduleMar_22_2010__09_00_5-1PM.tvpi
crontab updated
a simple standalone test script works, but the osascript invocation simply ignores the replyTo value, which is valid (and was output in the body of the msg)
i don't recall when i applied the 10.6.3 update, but perhaps something changed with mail...any ideas?

someone mentioned needing a delay in mail, so i put one just before the send, and it works again...seems snow leopard has event timing issues:-(

Similar Messages

  • AppleScript Mail using URL

    So, here's my problem.
    I have a message URL which goes something along the line of "message://%3c<Some string of numbers, hyphons etc.>%3e"
    What I want it to have a message id of the format "message id ### of mailbox "<Some mailbox name>" of account "Google""
    At the moment, I'm opening the URL, setting the message to the selection, and that variable is then of the form above that I want it.
    Does anyone know of any script that will take in a Message URL and churn out a Message ID for Mail?
    Thanks to everyone!!!

    Well, for a start you're not setting your AppleScript variable to a URL - you're setting it to the content of the email. Sure, that content may contain a URL, but it will also contain other characters such as the return after the URL, which is what the %0A translates to.
    In other words you're assuming the content of the email is just a URL, which isn't the case - it's a URL followed by a new line.
    If you're confident that the format of the email will be consistent and you just need to nix the last character you can use something like:
    set theText to content of theMessage
    set theText to (characters 1 through -2 of theText) as text
    This will chop off the last character, whatever that may be.
    If it's also just the linefeed at the end of the URL you're concerned about, you could also:
    set theText to paragraph 1 of (content of theMessage)
    This will ignore anything past the first line - useful if there's ever any other content in the message.
    One other observation - your script says:
    set the clipboard to theText
    I don't know what you plan to do with the URL in the rest of the script (if there is any), but in general you should avoid manipulating the clipboard in your script. Since this is running as a mail rule, it could get invoked at any time, including when you're working in some other application and may have copied some data to the process of some other workflow. As soon as this mail triggers you lose your previous clipboard contents in favor of the URL in the email.
    I would look more closely at what you intend to do with the URL - for example if you plan to pass that URL to some other application then look to do so directly, not via the clipboard.

  • My mail, which used to work, comes up with a blank page, with no escape.i no longer connects to to the internet as it once did.

    My email, which used to work, now comes up with a blank page, with no escape.

    Wayne-
    Can you get back to the home page?  If so, double click on the Home button and a row of recent Apps will line up along the bottom of the screen.  Scroll across and look for the Mail icon.  Press and hold on it until it starts to wiggle.  A red minus sign should appear on each icon.  Press the minus sign on the Mail App to remove it from the list of recent Apps.  This will stop it from running in the background.
    If you can not get back to the home page, try to reboot the iPad.  Hold both the Home and Sleep buttons for several seconds until the Apple logo appears.  Ignore the "Slide to power off" arrow.  The iPad should restart in a couple of minutes.
    Fred

  • I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    I want to use Mac Mail for my work email address, which containts multiple outbound options (i.e. hr@, me@ etc). Is there a way to set up Mac Mail to have an account with multiple outbound addresses rather than adding in multiple accounts?

    This sounds like the age old problem with keychain & Safari. I don't know of a way to solve it without using something like 1Password.
    The iOS app has it's own built in browser, so it has more control over what gets autofilled. Safari on OS X has an 1Password extension that handles account selection & autofill etc.
    Keychain is great in principle, but it quickly falls down when you need tight integration with many ID's & different use cases (work, home etc).
    I'd suggest you submit feedback to Apple about your thoughts. I did so years ago about this issue & this is how far we have come (back to the point where me.com synced passwords) :^)
    http://apple.com/feedback/macosx.html
    Other tools like lastpass or keypassx may also help if you want to truly segregate password storage, but that doesn't fix autofill, the way around that issue is to dedicate one browser for work.

  • On my iphone4 i need to be able to use both TDS and Yahoo e-mail.  TDS works only sporadically.  For instance, today I was able to both send and receive, then an hour later could not send.  got the message that the server was not recognized.

    On my iphone4 I need to be able to receive and send both TDS and Yahoo e-mail accounts (I also need to access from my Macbook Pro and my HP desktop).  I have NO problem with Yahoo, but with TDS, the e-mail seemed to work on my phone.... and then it didn't.)  In adding the TDS account, I chose "other" ( TDS is somehow accessed on the back end through gmail).  For the incoming server I used the Incoming Sever Name of pop.gmail.com and the Outgoing Mail Server as smtp.gmail.com.  I have using SSL "on" and the server port is 995.  Is this setup correct for TDS?

    FYI: POP will by default, delete messages from the server after downloading them (This applies to most pop clients, computer or mobile). POP is old tech and is not recommended if IMAP or Exchange are available. The default when setting up a g-mail type account is IMAP. Full synchronization with the server. You may also be able to set it up as an Exchange account, allowing for push e-mail and sync of calendars and contacts as well. See the Gmail help pages for instructions.

  • HT3748 since upgrading to Mountain Lion, my Mac Mail no longer works well w/exchange email; so, I have had to switch back to outlook. Now, how can I use outlook for mac's calendar and contacts with icloud?

    Since uprgading to Mountain Lion, my mac mail no longer works with my exchange email properly. I finally gave up and moved back to outlook for mac, but now my new issue is using outlook calendar and contacts with icloud; possible?

    Sorry but I'm really not to sure what I have. I'm not good with knowing my computer model. All I know is that its a MacBook running with Leopard. I got my computer last year so I suppose its fairly new. Is there a place on my computer where I can check to see what it is (sorry to be so dumb with my own mac)
    And everything else works fine. I love Safari. It's just my mail that doesn't work. Here's the message that pop up several times.
    "The MobileMe IMAP server “mail.mac.com” rejected the password for user “akcastaldo”
    Please re-enter your password, or cancel."
    The only problem here is, even though I enter my password it doesn't do anything. It makes that message go away for about 3-5 mins. After that it pops right back up. And I can't even go into my preference and change my email password. So I don't know what to do.

  • HT201320 I have IOS 7 5S and using mail. Receiving works great. Sending mail will not work. Using Centurylink. On my IOS 6 Iphone 4 it works great. Compared settings and they are identical. Now what?

    I have IOS 7 5S and using mail. Receiving works great. Sending mail will not work. Using Centurylink. On my IOS 6 Iphone 4 it works great. Compared settings and they are identical. Now what?

    Well, this is a recurring issue for many users...a small percentage of users but still a bug.  Report the issue here to Apple:  www.apple.com/feedback
    iOS7.0.3 will be released next week, which as of now, I know is primarily for an iMessage but hopefully it will clear up some of these email issues some are also having.

  • I am using i pad mini. I am going through a issue in which i am not able to send mails to my work email add wherein i am able to receive emails from same email id.

    i am using i pad mini. I am going through a issue in which i am not able to send mails to my work email add wherein i am able to receive emails from same email id.

    With one mailbox server in the production site and one in the DR site, you do not have high availability.  If the main site goes down, the cluster loses quorum and all databases dismount.  You must then force quorum or move the file share
    witness to restore quorum.
    I can't tell you why what you observed happened.  At the time of the problem I would have been looking at the transport queues to see what's queued and to where.
    I recommend you look at the configuration of your send connectors to ensure that none of them are dependent upon the DR site server.
    To send mail outside, you must allow relay.  To do this, I recommend you create a new receive connector that's configured to allow relay and restrict access to the application server to keep anyone else from using it to relay.  There are plenty
    of articles on the Internet that describe how to configure a relay connector.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • While listening to a podcast on my iPhone I can e-mail the podcast ID. The email contains the url for the specific podcast. So you would assume that you could put that url into iTunes and it would take you to the podcast. This used to work but no longer.

    While listening to a podcast on my iPhone I can e-mail the podcast ID to share it with someone else. The email contains the url for the specific podcast. So you would assume that you could put that url into iTunes and it would take you to the podcast. This used to work but no longer. Months ago when I would e-mail myself the url all I had to do was click on the link in the e-mail and it took me right to the specific podcast in iTunes. Now it only opens iTunes and I can't figure out how to find the specific one. What good is the e-mail tab on the iPhone if it doesn't connect you to the podcast you sent?

    Same here. I just posted a question too.

  • I can not connect to my work e-mail using both regular e-mail set-up and mail 2003 (work has Outlook 2003).  I get the error message "no internet connection- as soon as a connection is made it will switch back".  Does anyone have any suggestions?

    Why can't I connect to my work e-mail (Outlook 2003) using either the regular e-mail account set-up or Mail 2003? Does anyone have any suggestions?

    I have yet to find an email server that does not work with Mail.app. Your solution will be to configure its ports and send/receive protocol according to the email server's requirements.
    Try the Zimbra support forums. I found this excerpt from a relevant post:
    http://www.zimbra.com/forums/users/46221-mac-mail-app-dont-work-outside-company. html
    in which the following ports were suggested
    ports 25, 465, and/or 487 to send mail.
    port 143/993 to retrieve mail over IMAP

  • I am unable to "open link behind mail" using Mac Mail now. It used to work fine, and just clicking works but not right clicking to open behind mail. Please help

    This used to work on my Mac using Firefox and Mac Mail but now it doesn't. Opening regular links are unaffected. I can still click and open easily. This only happens when I try to use the feature, to open links behind mail. When I right click nothing happens. Nothing is opened.

    Hi GetPaulHoward,
    Thank you for posting your question to the SUMO support forum, however I am not sure this pretains to Mozilla. There is a help forum you can contact at Apple.
    [https://discussions.apple.com/message/23817335#23817335]
    Hope this helps.

  • After installing the notified update I am unable to send e-mails (using O/E on XP) as my system is supposedly unsecure. (I receive a message saying "... Secure(SSL): No, Error Number: 0x800CCC0F".) Everything was working fine immediately before I updated.

    After installing the notified update I am unable to send e-mails (using Outlook Express on Windows XP) as my system is now thought to be Unsecure. (I receive a message saying "... Secure(SSL): No, Error Number: 0x800CCC0F") Everything was working fine immediately before I installed the update. Can anyone (pleeeease) tell me where Flash has changed my security settings as I have looked at the setup, but everything looks okay. Thankyou!

    Branching this to a new discussion as it appear you are facing difficulties with the installation or running the programs you have been downloading and installing.

  • Mail will not work, it says "you can"t use this version of mail with this version of mac os x. mail version 4.5 help please

    Mail icon displays the following "you can't use this version of mail with this version of mac os x"
    Mail version 4.5
    It was ok on friday, my daughter used the mac to update her ipod to ios6, would this cause a problem?
    All my updates are up to date.
    Any help, thanks.

    !! WARNING !!
    about the September 2012
    "Security Update 2012-004"
    If you've got "Mail.app" in a folder OTHER THAN the root "Applications" folder,
    MOVE "MAIL.APP" TO THE APPLICATIONS FOLDER
    **BEFORE** INSTALLING THE "004" UPDATE!!
    Because *IF* you use OSX's integrated Software Update app from the Apple menu to do the "004" updating, and *IF* your Mail.app is NOT in the Applications folder, then buddy, you've got some sitdown fixit time ahead of ya and/or some internet tie-up time downloading the "004" update file itself.
    Been through it all, already.  In fact, just got done getting my Mail back up & running. And I tried everything short of attempting to unpacking my "Mail.pkg" receipt file using... whatever... even Pacifist couldn't get it out. So that fixit "Plan D" died quick. And I'm not savvy enough to use Terminal commands to do "Plan E," so that SUDO stuff was my brick wall.
    So I compressed my entire "Mail" subdirectory that contain all my emails, for safekeeping during the required surgery, or whatever would work, leaving the original Mail directory where it was. In case something bad happened in all my fixit whatevers, the one thing I *didn't* want to cross paths with was a hosed Library -> Mail folder. Then I'd be pssd. But I can wipe out that ZIP now 'cause all's well now. After 6 hrs of downloading thru a mobile broadband hotspot running at only 14KB/sec speed due to my having gone over my T-Mobile hotspot plan's bandwidth amount (throttled-down after reaching the limit, tho not cut off completely. Kinda nice, but it's a huge speed drop).
    I tried moving the two Mail.app versions around, compressing them & then trashing the original so they wouldn't be recognized, blabla, even booted my Mac in Safe Mode & reinstalled the "MacOSX 10.6.8 (Snow Leopard) Update Combo.dmg" update file, which in the past has fixed many problems. But after restarting, not this one.
    Like a dummy who ignored knowing better, I had my Mail.app in a folder other than the Applications folder, with only an alias to that being in the Applications folder. NOT GOOD ENOUGH. The updater don't see that as nuthin special or useful.
    So if you've got, like I've got, "old" icons for Mail.app (v4.5) in your Finder toolbar & in your Dock that all point to "Mail.app v4.5" in whatever folder you've got that in, other than in the Applications folder (where Apple apparently REQUIRES that it be located, and ONLY there, at least for OSX updating purposes), then after you download & autorun that "004" updater using Software Update, NONE of your pre-existing Mail icons will work. And MOST aggravatingly, **NOR** will your brand-new "Mail.app v4.6" work that came out of the "004" updating installation.  So basically, your Mail.app's... all of 'em.... are hosed. But only if you run the "004" update without your "Mail.app v4.5" being located in your Applications folder and ONLY in your Applications folder. And duplicates of Mail.app, scattered around your HDD??  Always a problem with many Apple apps.... The Apple software engineers apparently like 'em to be in the Applications folder, and in ONLY there, and ONLY the latest version, and ONLY 1 single copy of each on your entire HDD. They just don't seem to stress that enough, it appears. Kind of an oversight for them to not emphasize that, IMO...
    My recommendation for this particular September 2012 "004" update:
    If you run Software Update, and if you see the "Security Update 2012-004" listed as available for download, UNCHECKMARK IT.  DO NOT DOWNLOAD IT USING SOFTWARE UPDATE !  Instead, download the actual update file itself.
    Same thing, only a different way of doing it. Most importantly, you'll be skipping the auto-installation that Software Update performs.
    AND you'll have that update file on your HDD for future fixits, should a nasty "unfixable" problem come up.
    First, #1. Do a filename search for "Mail" (Option-Command-Spacebar). Scroll down to where the "Apps" are located in the list under the "Kind" column heading. First, find your Mail.app that's v4.5. Get that bugger into your Applications folder if it's not already there. Next, Trash all other "Mail.app" apps you see in that same list that you may have elsewhere on your HDD.
    #2. Go here: https://support.apple.com/kb/DL1586
    And download the actual "004" DMG update file: "SecUpd2012-004.dmg"
    And of course, it's a biggie.... 270MB... so watching grass grow may be involved here if you've got a slow connection (go to a MacDonalds & do it, like I shoulda done).
    3. After downloading, I'd recommend closing down all apps, emptying the Trash, and restarting.
    Then, after restarting, run Disk Utility's "Repair Disk Permissions."
    Then, doublecheck that the Mail.app version 4.5 is in your Applications folder.
    THEN fire up & install "SecUpd2012-004.dmg."
    Reboot.
    After the reboot, your Mail.app version 4.5 in the Applications folder will have become Mail.app version 4.6 in the Applications folder, and all will be well again.
    And you can dump that zipped-up "Username -> Library -> Mail" folder then, too.
    Happy Mac'in!
    Kevin Kendall
    Macbook 7,1
    (Apple's very last all-white Macbook model)
    2.4GHz - 256GB Crucial SSD - 8GB Crucial RAM
    OS 10.6.8 Build 10K549 + Win 7 Ultimate thru VMWare Fusion v5.0.1

  • BPEL 10.1.3.3 - Receiving Mail using MailService.wsdl not working

    Hello Gurus,
    We are having both 10.1.2 BPEL server and 10.1.3.3.
    In 10.1.2 I could successfully use the mail read method as specified in Sample 117.ReceiveEmails. But when I do the same in 10.1.3.3 I am getting "java.lang.NullPointerException" (while it reads the mail from mail server).
    The Surprise is the solution works fine in 10.1.2 but not in 10.1.3.3
    (Note: even I couldn't find 117.ReceiveEmails sample in 10.1.3.3 samples directory).
    The observation of mine is suppose If I didn't send any mail to the mail account, the service keep polling (based on specified polling interval). but once I send mail to the mail account, the process read the mail from mail server and ends with NullPointerException error. And as expected the mail gets deleted from mail server.
    Please help me.
    The Error:
    Receive_1 (faulted)
    [2007/09/06 17:07:58] Starting poll cycle for mail account "freecom-mail".
    [2007/09/06 17:07:59] Received no message(s), continuing polling on mail account "freecom-mail".
    [2007/09/06 17:08:14] Received no message(s), continuing polling on mail account "freecom-mail".
    [2007/09/06 17:08:29] "NullPointerException" has been thrown.less
    java.lang.NullPointerException
    [2007/09/06 17:08:29] Received message(s) from mail account "freecom-mail", stopped polling cycle.
    Mail configuration info:
    freecom-mail.xml (mail account file placed in $ORACLE_HOME/bpel/domains/default/metadata/mailservice - I created the last two directories)
    <mailAccount xmlns="http://services.oracle.com/bpel/mail/account">
    <userInfo>
         <displayName>******</displayName>
         <organization>DubaiWorld</organization>
         <replyTo>*****@****.ae</replyTo>
    </userInfo>
    <!-- IMAP server config -->
    <incomingServer>
         <protocol>imap</protocol>
         <host>xxx.xxx.xxx</host>
         <email>[email protected]</email>
         <password>*********</password>
         <folderName>Inbox</folderName>
    </incomingServer>
    </mailAccount>
    Regards
    Arun
    Message was edited by:
    arungoin

    An additional information:
    Sending Mail using MailService.WSDL is working fine, but we don't know why the receiving mail option fails.
    Thanks
    Arun

  • TS3276 On iMac with Mountain Lion I am now unable to send but can receive e-mails. Previously worked fine. I use an iCloud acct and Safari browser.  Internet connection is wireless via cable modem.  Any suggestion?  Thanks.

    On iMac with Mountain Lion I am now unable to send but can receive e-mails. Previously worked fine. I use an iCloud acct and Safari browser.  Internet connection is wireless via cable modem.  Any suggestion?  Thanks.

    Hi tarifiq and welcome to the BlackBerry Support Community Forums!
    Can you send me a private message with your PIN so I can check this out for you?
    Thanks
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

Maybe you are looking for