Cant send mail via applescript with mail rule

I created a script that would work as follows:
I send myself an email. The mail rule opens up an apple script that will take a picture using the isight camera and then email it back to me. It works fine in script editor. When i run it via mail.app it takes the picture but it wont email it back to me.
Here is my script:
do shell script "~/Documents/EmailScripts/isightcapture ~/Documents/EmailScripts/snap.jpg"
tell application "Mail"
set addrVar to "[email protected]"
set subjectvar to "Macbook Pic"
tell application "Finder"
set the target_file to alias "Macintosh HD:Users:ak406:Documents:EmailScripts:snap.jpg"
set bodyvar to "Picture from Macbook"
end tell
set composeMessage to (make new outgoing message)
tell composeMessage
make new recipient at beginning of to recipients with properties {address:addrVar}
set the subject to subjectvar
set the content to bodyvar
tell content
make new attachment with properties {file name:target_file} at after the last word of the last paragraph
end tell
end tell
send composeMessage
end tell
Thanks for the help.

Hi ak406
Just tested your script here, less the do shell script part and it worked perfectly from my mail app.
Budgie

Similar Messages

  • C6-01- Cant send mail via yahoo mail

    I have set up my yahoo mail account on my Nokia C6-01. I receive mails as they should do. But I Cant send mail. When I compose a mail and try to send it it just stays in outbox. I have set the mailbox settings correctly. While my gmail account works fine to send mails. Mails are sent instantly. Is anyone else going thru this trouble? And I Cant set up the Ovi mail mailbox. It keeps telling me "unable to sign in" How shall I solve this problem?
    In Love With My C6-01:Now running on Nokia Belle!
    Solved!
    Go to Solution.

    Well, it works fine if you use Nokia messaging service. If you use the standard mailbox it has been failing. I have some reservations about Nokia messaging service and thats why I dont want to use it.
    In Love With My C6-01:Now running on Nokia Belle!

  • Cant send mails with mountain lion

    cant send mails with mountain lion, but i can recive....

    Hi, i am having the same problem. this is what i have noticed.
    I have 2 x imac's and 2 x macbook air's
    i upgraded the 2 macbook air's and 1 of the imac's to Mountain Lion, all these have problems acessing sites that require you to login .
    the one remaining imac is still running lion and works perfect.
    i am using a dlink router with DD-WRT firmware, i tested teathering from my iphone and i can log into websites fine using the newly upgraded mac's.
    It's not a wireless issue as my imac is using an ethernet connection.
    is there a compatibility issue with some routers.

  • Cant send mail w 2WIRE

    Cant send mail using gateway 2WiRE w/ ATT as ISP

    Hi kzo631, and a warm welcome to the forums!
    ATT has so many servers & plans, which one are you using & the Port #s?
    Is the Incoming Mail Server pop.att.yahoo.com, and the Outgoing Mail Server smtp.att.yahoo.com.

  • Still Cant send mail? HELP PLEASE!

    I am connected to the server.
    POP3 and SMTP look corrected.
    Connection doctor says I am connected to the server.
    I can receive mail.
    but
    I CANT SEND ANYTHING.
    Please help can someone tell me why post is not going!

    even i am facing the same issue i am using email account which is on exchange server 2008 and able to recieve emails perfectly fine but, issue is when i try to send email thru my Mac mail client ( mail 3.0 [930.3]) it gives error. I checked this connection doctor as well didnt got any error messAGE authentication was done . But still cant send mail out checked for ports as well all are open on router firewall but still no luck can anyone help me on this. Thanks

  • Can receive, but cant send mail

    Any ideas? I can receive but cant send mail. It says..
    The SMTP server “mailhost.zen.co.uk” rejected the password for user
    Have mail version 4.4
    Many thanks

    Hi,
    I would double check your settings and port numbers.
    Incoming Mail (pop3) server mailhost.zen.co.uk and port for Incoming mail (POP3) is 995
    Outgoing Mail (smtp) server mailhost.zen.co.uk and port for Outgoing mail (SMTP) is 587

    Also make sure under SMTP that the outgoing server requires as secure connection (SSL) box is checked as well as the incoming POP3 (SSL) box.
    Can you say if this is a recent issue or one that has been there since setup?

  • TS4002 I cant send email via icloud account.  I have a BT router for vision.  Can anyone help please

    I cant send email via icloud account.  I have a BT router for vision

    Thanks for the suggestion - it turned out that it was actually my workplace's network that automatically blocks external SMTP servers (for some security reason), so the email(s) sent perfectly once I went home and connected to May home network. Annoying!

  • Cant send mail with Entourage

    I had this working perfectly, sending mails using 2 different accounts (one was not with my ISP). Then I found myself offline and after a restart im back on but can only receive mail?
    I can still send using a mobile broadband dongle.

    Not much to go on there...
    For one, did this work in the past but has now stopped working? or did it never work?
    For two, the error message usually gives a better idea of why the message couldn't be sent... what else does it say?
    Third.. what server are you trying to use? Are you trying to send via Yahoo's servers? and have you verified that your ISP isn't blocking? (some ISPs require you to send all mail through their mail servers to avoid spambot problems on their network - have you tried sending the mail through your ISP's mail server?)
    Is it just Yahoo mail that's failing? or all mail?

  • Cant Send Mail via DSL

    Im Apple Mail using iMac G4 and G4 tower. Both will recieve an send mail find via dial-up but will not send mail via dsl connection.
    We get our mail via ethernet > router > antenna > atenna > another router > antenna > ten miles away at another antenna then to dsl source.
    So our dsl connection/signal is going threw three other antennas and at least one router here in office before we get it.
    My ISP provider says we need to talk to our DSl provider.
    Any ideas? Our computer tech is out of office touch for a week.
    Ran

    Thanks but this doesn't answer my question.
    Allan, I am 99% percent sure that my ISP is not the same ones who supply our ethernet/broadband/DSL.
    Is your internet service provider (ISP) for your
    dial-up connection different from the ISP for the DSL
    connection?
    Yes, I believe that they are differrent, however, I have new info.
    At first my G4 tower with Earthlink account would not send out over etherner/broadband/DSl, but now it does! I, nor anyone else, has made any changes to the outgoing address that works for dial-up connection and is what we have always used until yesterday when we first tried the dsl/braoband
    Kind of a different situation and not typical or the
    norm to have a company that provides a DSL connection
    not be the internet service provider for the
    connection.
    Someone new came into our building for office space. He had the router, ethernet cables and antenna installed. He/we get electro-magnetic radiational signal from a larger business across the street who has a tower --soon to be a taller tower-- and they get there radiational signal from 10 miles away.
    Knowing who your ISP is for connecting to the
    internet regardless if using a dial-up connection or
    a DSL connection (DSL is considered a broadband) is
    important and if the email account and SMTP server
    being used is provided by the ISP being used for your
    internet connection or by a different email account
    provider not associated with the ISP used for
    connecting to the internet.
    Yes, I understand that is the case. Maybe I'm wrong and by some coincidence the DSL provider is Earthlink and that is why the G$ tower account began working for the outoging mail.
    Im still having the sam problem on the G4 iMac which is a local.com account they have told us the same as you have, that we need to know who the DSL provider is and what info they require in the outgoing( smtp ) line.
    You mentioned Earthlink which is an internet service
    provider that offers dial-up access and/or DSL access
    so does the Earthlink protocol you mentioned mean you
    are having problems sending with an Earthlink email
    account and SMTP server?
    Earthlink account is working now so again perhaps the DSL provider is coming through Earthlink and ergo we didnt need to make changes to the outgoing( smtp ) info line.
    Thats the only way that one can be explained.
    I take it you use the dial-up connection at home
    (which is provided by Earthlink?) and the DSL
    connection is used at the office?
    Thats correct. The inital DSl source for the business that is 10 miles away, must use Earthlink. I'm now presuming this is the case with this new info.
    However, there is another --3rd-- business on other side of street and he uses --Apple mac just like me-- and his ISP is "host centric". I looked at his mac preference accounts outgoing ( smtp ) line and his is
    "mail.the business name.com:his email address",
    i.e. he does not use Earthlink but he has no problem sending out mail via the same DSl/broadband connections we have
    The only reason he has his address in the outgoing mail liine is bceause he too is in larger business building with several differrent computers and email address's.
    I've tried all kinds of combinations that are similar to the Earthlink outgoing and the hostcentric outgoing
    but none work for the local.com account.
    The exact error message provided when trying to send
    messages is also pertinent information.
    "message delivery failed" "the attempt to read data from the server 'server-name' failed"
    Then it gives me option to try differrent server names.
    Thanks for your efforts Allan and ohters.
    Ran

  • Cant send mail from i phone 3s, with a tiscali account

    I can no longer send mail from my tiscali mail account on my i phone 3s, or my ipad without going through web mail account. please can anyone advise

    Isn't mail.virgin.net the name of the Incoming Server -- the incoming server, which you say is working is set up at Mail Preferences/Accounts/Account Information as to name of the server, Username, and password, along with entries in Mail Preferences/Accounts/Advanced for Port select for the Incoming.
    However, if that is working for you, you must have it correct. For the Outgoing server, isn't the proper name for Virgin services smtp.virgin.net? In Mail Preferences/Accounts/Account Information, click on the arrows beside the name of the SMTP, and choose Edit Server List. Remove all, or all but one of any references to the smtp.virgin.net. Enter anew, or with the remaining server, click on the Advanced Tab there, and choose Use Custom Ports. Then enter the Custom Port to be Port 25, and set the Authentication to None, and have no entries in Username or Password. This is consistent with those specs I can online saying the SMTP does not require Authentication.
    Also click Use this server only. Now if the smtp.virgin.net server is online, it should work.
    Ernie

  • Cant send Mails via Workflow CRM 2015

    Hi,
    I have two workflows for Cases ... in booth I'm trying to send Mails. In the on it works fine. In the other I'm getting the following Error:
    [Recipient is Contact or Responsible Contact]
    Plugin Trace:
    [Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.SendEmail]
    [SendEmailStep3: Send Mail To Responsible]
    Error Message:
    Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Crm.Workflow.Services.SendEmailActivityService.<>c__DisplayClass1.<SendEmailInternal>b__0(IOrganizationService sdkService)
       at Microsoft.Crm.Workflow.Services.ActivityServiceBase.ExecuteInTransactedContext(ActivityDelegate activityDelegate)
       at Microsoft.Crm.Workflow.Services.SendEmailActivityService.ExecuteInternal(ActivityContext executionContext, SendEmail sendEmail)
       at Microsoft.Crm.Workflow.Services.SendEmailActivityService.Execute(ActivityContext executionContext, SendEmail sendEmail)
       at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
       at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    Any ideas what I can do?
    Thanks for your help
    EDIT: the first workflow is from the 2013 Version .. the second not working prozess is buildet in 2015

    Hello Mcgum,
    Though I am not a techie :(, I guess this is due to some privilege issue. Check if the current user is enabled to send emails on behalf of other user.
    I hope it should work.
    Regards, Abhishek Bakshi If you find this post helpful then please Vote as Helpful and Mark As Answer. Check my blog on https://mydynamicscrmblog.wordpress.com/

  • Nokia X6 cant send mail via IMAP

    I have difficulty sending emails via my Nokia X6 using IMAP.
    My laptop works with no problems whatsoever, and my X6 is configured exactly like my laptop, from server and port...
    I'm able to get emails on my X6 but it's just that darn sending
    Please, i despiratly need help with this

    have a look here
    http://www.google.ie/url?sa=t&source=web&cd=1&ved=0CBMQFjAA&url=http%3A%2F%2Femail.nokia.com%2Faccou...
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Cant send mail but can recieve

    have an iphone 3g and just today its stopped sending emails. it comes up with error message
    user name or password for smtp.(email [email protected] is incorrect??
    is the server just down or have i stuffed something up. like i said still receive but cant send from phone

    I began having the same issue today. Several people have posted on the MS livemail forum with this issue today with no response. I was able to work around (found it in the troubleshooting section here) by going settings > mail > livemail account > outgoing mail server > at&t smtp server > on. This is only a work around. There is clearly something that changed today. Another thread talked about not sending when on wifi and using this work around but even with wifi off it will not send without this work around change.

  • Cant send mail within certain wifi networks!

    Hi.
    I have my own wifi network at home which works fine.
    When i come round to my mums house, she has an orange (phone company in UK) wireless router.
    It all works fine and im on websites and downloading mail etc but i just cant send it from mail.
    It says the selected server is unavailable.
    As soon as im out of this wifi network its fine...
    Any ideas what this could be?
    Thanks, Ben

    Some ISPs, that provide their own email service to its customers, block traffic that is destined for port 25 of mail servers if it is not their mail server. So, if you don't have the same ISP has mum, that's likely why you are not getting through. You might try specifying port 465 or port 587 as your outgoing mail port, most likely with SSL enabled, but I would start by asking your email provider what should your smtp server settings be when you are on a network that blocks port 25 traffic to anyone's mail server but their own. Also ask whether those same settings would work when you are on their network, that way you wouldn't have to make two sets of outgoing mail servers for your mail account.

  • Cant send mail (well not all mail)

    Hi all,
    After the disapoinment of icards no longer being around i downloaded some stationery for mail.
    upon trying to send it i get cannot send message using dot mac.
    When watching the mail activity bar it goes upt about 50kbs then down to 0.
    I have tried one line txt emails and they send fine to my gmail but cant send the stationery ones!
    i have deleted my account from mail and then added it again still cant.
    My ipod touch can send mail using the same wifi network, so cant be my ISP or my network.
    i have tried smtp.me.com and smtp.mac.com with and without SSL etc etc to no avail.
    im running a g5 with 10.5 on it fully updated and using mobile me, (dot mac sound so much better!!)
    So any ideas would be helpful
    ben

    Hi kzo631, and a warm welcome to the forums!
    ATT has so many servers & plans, which one are you using & the Port #s?
    Is the Incoming Mail Server pop.att.yahoo.com, and the Outgoing Mail Server smtp.att.yahoo.com.

Maybe you are looking for

  • Error while executing FSG under R12.0.4

    Dear All, I have installed Oracle APPS R12.0.4 on Windows 2003 Server with Visual Studio 2008 and cygwin. When i run a FSG(Reports) i get the error. When i check the log i get the following error: (Extract of the Log File is given below) e:\oracle\VI

  • IPod not recognized in iTunes since upgrading/downgrading

    Please, can someone help me. My iPod nano is 6 months old and worked fine until I upgraded iTunes to 7.0 and then it was no longer recognized by iTunes. Over several weeks of using Apple support pages & forums this is what I've tried: *Installed iTun

  • Video not showing after adding more assets to stage.

    Hello Everyone, Why does Edge Animate not display the embeded video when I add more than 2 assets to the stage? In the graphic below, I am building an animation with a total of 6 assets on the stage. #1 - Curtain (.png) #2 - Table (.png) #3 - Picture

  • Making a form field that's 0.0825% of another

    I right click on the form field, hit the Calculate tab, and select the "Simplified field notation" radio button. In that I enter the following: this.getField('Tax').value = this.getField('Subtotal').value * .0825; But that doesn't work. I try this, t

  • Has anyone else encountered a situation where images suddenly gone missing?

    i've had files suddenly gone missing on me several times. i was so sure that this might be a bug but now i think it's user error. at least my error. a few times i wanted to delete one image and then found that several other images disappeared on me.