Mail attachment not being attached

I am trying to send an attachment but it is not working. I have two versions of the mail function ... one for Entourage and the other for Mail. The Entourage version works ... but the one for Mail does not have the attachment and I cannot see what I am doing wrong. Here is the code:
on sendEmail(theMessage)
set subjectvar to "Monthly backup status for " & dateText
if strMailApplication is "Entourage" then
tell application "Microsoft Entourage"
set composeMessage to (a reference to (make new outgoing message ¬
with properties {recipient:{address:strRecipientAddr, display name:strRecipientName, recipient type:to recipient}, content:theMessage, subject:subjectvar} ¬
make new attachment at composeMessage with properties {file:strLogFile}
send composeMessage
end tell
else
tell application "Mail"
set mailversion to version as string
set theAttachment to strLogFile
set composeMessage to (a reference to (make new outgoing message))
tell composeMessage
make new to recipient with properties {address:strRecipientAddr, name:strRecipientName}
set the subject to subjectvar
set the content to theMessage
set the sender to strSenderAddr
tell content
make new attachment with properties {file name:theAttachment}
end tell
end tell
send composeMessage
end tell
end if
end sendEmail

I figured it out ... the problem was that I needed to specify the attached file name as an alias ... once I did that I was able to send the attachment.
Here is the relevant change:
set theAttachment to file strLogFile as alias

Similar Messages

  • Mail is not saving attachment and save as is not working

    Suddenly my Mail is not saving attachment and save as is not working. I tried to save an email as I use to do but it is not completing the task. I should I do?
    Thanks for any help,
    Mario Lordeiro

    Mario,
    Was there also NO choice to View As Icon, in the contextual menu? If not, these items/images may be embedded in HTML, rather than true attachments. Other choices for normal attachments would include Open Attachment, Open With, Save to Downloads Folder -- are any of those present in the contextual menu?
    With such a message open, click on View in the menubar, place the cursor on Message in the pull-down menu, and choose Raw Source. Is there any HTML code present? Is there a header immediately before any code representing what you believe is an attached file?
    If need be, I can send you an email message with a known form of attachment.
    Ernie

  • Entity not being attached to current row

    Hi
    I am using JDeveloper 10.1.2.1.0 (build 1913) with business components version 10.1.2.18.73.
    I have created an entity base view and a view row with two entities populated with an outer join, entity 0 is null and entity 1 exists. On update of the view row, entity 0 is created but not attached to the current row. My question is why is the entity 0 not being attached to the current row being updated.
    Thanks

    Hi there, 
    So you are using Azure Mobile Service in your mobile apps, here maybe Windows Universal app, there is a table naming
    Sighting in your mobile service Data tab, how about the Read permission setting?
    Do you mean you could not get the whole table data? Can you check if you could get data via following code?
    var tmp =await App.MobileService.GetTable<Sighting>().ReadAsync();
    regards, 
    Jenny 

  • Yahoo e-mails are not being received on iphone 4.

    Yahoo e-mails are not being received on iphone 4.  I had to go website to retrieve about 50 emails from last couple of days.  Everything looks correct in settings and I haven't changed anything that I know of.  Please help if you've encountered this issue.

    I tried the suggestion of deleting the account and starting over from scratch (twice), to no avail.

  • Workflow Notification Mails Are Not Being Sent

    Hi
    we are running 11.5.10.2 version , some times Workflow Notification Mails Are Not Being Sent , so how should i start diagnose this issue.
    Regards

    Dear Hussein
    thanks for your reply, below are the log messages from the todays file FNDCPGSC6854.txt
    [May 12, 2009 1:21:12 PM AST]:1242123672450:Thread[outboundThreadGroup1,5,outboundThreadGroup]:0:-1:DAR
    EBS:172.30.2.45:-1:-1:ERROR:[SVC-GSM-WFMLRSVC-6854-10006 : oracle.apps.fnd.wf.mailer.SMTPOutboundProces
    sor.send(Message)]:Problem encountered when sending to {[[=?UTF-8?B?2LXZhNin2K0g2LXYp9mE2K0g2LnYrNmE2Kf
    Zhg==?= <[email protected]>]]} -> javax.mail.MessagingException: 451 Timeout waiting for client input
    [May 12, 2009 1:21:12 PM AST]:1242123672451:Thread[outboundThreadGroup1,5,outboundThreadGroup]:0:-1:DAR
    EBS:172.30.2.45:-1:-1:ERROR:[SVC-GSM-WFMLRSVC-6854-10006 : oracle.apps.fnd.wf.mailer.SMTPMessageHandler
    .sendMessages(String)]:MessagingException -> javax.mail.MessagingException: 451 Timeout waiting for cli
    ent input
    [May 12, 2009 2:03:48 PM AST]:1242126228129:Thread[inboundThreadGroup1,5,inboundThreadGroup]:0:-1:DAREB
    S:172.30.2.45:-1:-1:UNEXPECTED:[SVC-GSM-WFMLRSVC-6854-10006 : oracle.apps.fnd.wf.mailer.IMAPInboundProc
    essor.moveMessage(Message, String)]:Unable to move message {null} -> javax.mail.StoreClosedException: *
    BYE Microsoft Exchange Server 2003 IMAP4rev1 server version 6.5.7638.1 closing connection due to timeo
    ut.
    [May 12, 2009 2:17:01 PM AST]:1242127021657:Thread[outboundThreadGroup1,5,outboundThreadGroup]:0:-1:DAR
    EBS:172.30.2.45:-1:-1:ERROR:[SVC-GSM-WFMLRSVC-6854-10006 : oracle.apps.fnd.wf.mailer.SMTPOutboundProces
    sor.send(Message)]:Problem encountered when sending to {[[=?UTF-8?B?2YXYp9ix2KrZhiDZgdmG2YrYsg==?= <mvi
    [email protected]>]]} -> javax.mail.MessagingException: 451 Timeout waiting for client input
    [May 12, 2009 2:17:01 PM AST]:1242127021658:Thread[outboundThreadGroup1,5,outboundThreadGroup]:0:-1:DAR
    EBS:172.30.2.45:-1:-1:ERROR:[SVC-GSM-WFMLRSVC-6854-10006 : oracle.apps.fnd.wf.mailer.SMTPMessageHandler
    .sendMessages(String)]:MessagingException -> javax.mail.MessagingException: 451 Timeout waiting for cli
    ent input
    [May 12, 2009 3:49:02 PM AST]:1242132542705:Thread[outboundThreadGroup1,5,outboundThreadGroup]:0:-1:DAR
    EBS:172.30.2.45:-1:-1:ERROR:[SVC-GSM-WFMLRSVC-6854-10006 : oracle.apps.fnd.wf.mailer.SMTPOutboundProces
    sor.send(Message)]:Problem encountered when sending to {[[=?UTF-8?B?2KfYtNix2YEg2KfZhNiz2YrYryDYp9it2YX
    YryDYtNio2YQ=?= <[email protected]>]]} -> javax.mail.MessagingException: 451 Timeout waiting for clie
    nt input
    [May 12, 2009 3:49:02 PM AST]:1242132542705:Thread[outboundThreadGroup1,5,outboundThreadGroup]:0:-1:DAR
    EBS:172.30.2.45:-1:-1:ERROR:[SVC-GSM-WFMLRSVC-6854-10006 : oracle.apps.fnd.wf.mailer.SMTPMessageHandler
    .sendMessages(String)]:MessagingException -> javax.mail.MessagingException: 451 Timeout waiting for cli
    ent input
    [May 12, 2009 4:03:08 PM AST]:1242133388437:Thread[outboundThreadGroup1,5,outboundThreadGroup]:0:-1:DAR
    EBS:172.30.2.45:-1:-1:UNEXPECTED:[fnd.wf.mailer.URLMIMETagListener]:oracle.apps.fnd.wf.mailer.URLMIMETa
    gListener.editStyleRef(HTMLTagEvent, String) Making a connection to {http://oracle.kannon.com:8000/OA_
    HTML/cabo/images/cache/cmbts.gif)} returned {404 - Not Found}. Leaving as a reference

  • Mail suddenly not being received from server. The ISP tells me there's nothing wrong at his end. I can see emails on the server if I look up WebMail; they don't come into Mail. I haven't changed anything lately.

    Mail suddenly not being received from server. The ISP tells me there's nothing wrong at his end. I can see emails on the server if I look up WebMail; they don't come into Mail. I haven't changed anything lately. The incoming server details haven't changed; the Connection Doctor shows the accounts are connected; I've turned everything off including the modern. Have exhausted my limited knowledge. Anyone with something similar?

    I have decided to dedicate this thread to the wonderful errors of Lion OSX. Each time I find a huge problem with Lion I will make note of it here.
    Today I discovered a new treasure of doggie poop in Lion. No Save As......
    I repeat. No Save As. In text editor I couldn't save the file with a new extension. I finally accomplished this oh so majorly difficult task (because we all know how difficult it should be to save a file with a new extension) by pressing duplicate and then saving a copy of the file with a new extension. Yet then I had to delete the first copy and send it to trash. And of course then I have to secure empty trash because if I have to do this the rest of my mac's life I will be taking up a quarter of percentage of space with duplicate files. So this is the real reason they got rid of Save As: so that it would garble up some extra GB on the ole hard disk.
    So about 20 minutes of my time were wasted while doing my homework and studying for an exam because I had to look up "how to save a file with a new extension in  mac Lion" and then wasted time sitting here and ranting on this forum until someone over at Apple wakes up from their OSX-coma.
    are you freaking kidding me Apple? I mean REALLY?!!!! who the heck designed this?!!! I want to know. I want his or her name and I want to sit down with them and have a long chat. and then I'd probably splash cold water on their face to wake them up.
    I am starting to believe that Apple is Satan.

  • I have HP vison with window 8 in my e mail can not open attachment

    can not open attachment on my email

    Hi,
    Can you save them ? What are the file formats (after .) of the attachments. Depending the file formats, you need software to be able to open them (most of them are free).
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Sent mail is not being received

    Some of my emails use my me.com account are not being received by the recipient.
    The emails show being SENT in my SENT box.

    I have a similar but perhaps unrelated problem. Every now and then, I send an email on my gmail account using Mail. The sent mail appears in my sent box, but never arrives, and does not appear in my webmail sent box (where it usually does, using gmail). Most of the time it works, and it even works most of the time with people it has had a problem with, including mail I send to myself at work at my professional address. Usually arrives...but not always. I don't know how to trust my sent mail box without always going on the webmail to make sure it actually went out. I only have this problem when using the Mail application, but there are no other common characteristics (attachements, ISPs, etc) to say there could be a problem with one of those things. Anyone else have this problem?
    Susannah

  • Batch Process mail notifications not being sent

    Racking my brain on this. On our prod 9.3.1 server, we reconfigured the mail server/database. I logged in as the application owner to establish the mail in application settings. Under workspace/administer/notifications I am able to successfully send a test email.
    The emails are not being sent for any of our workspace reporting batch processes. What log would be associated with this for further review?
    JTS

    FR_GLOBAL_PROPERTIES didn't have the smtp server populated..once populated and then the scheduler service restarted the emails are working..
    JTS

  • Tip for Mail certificates not being honored for parked domains

    I was having trouble with certificates not being honored, such that when my imap mail was being checked I constantly had the warning box come up to tell me the certificate was not valid. I would show the certificate, tell it to be trusted always, and yet I'd still see the triangle warning next to my inbox, and have trouble connecting. Then I saw a post about having multiple domains pointed to the same server, so I forwarded from one domain to the other and now the certificate is honored.
    The other domain I had was parked at the same domain by my host, so the underlying imap server domain was the same for both. That must have caused a conflict in having both certificates be honored, and indeed only one of them at a time would work. Deleting one of the accounts solved the problem, though I had to set up forwarding to bring all my mail from one to the other.
    While the problem is solved, it seems like there ought to be a way that I can have mail to my main domain and parked domain using the same underlying domain imap server not cause this conflict, but in the meantime I'll just have to forward from the parked to the main domain.
    Just wanted to share the solution here.

    Alex Thanks for the reply
    my entry in amavisd.conf reads as follows:
    @localdomainsmaps = ( [".$mydomain"] ); # list of all local domains
    I thought this was supposed to pick up all the local aliases?
    What does changing to ( 1 ); do differently to above??
    TIA
    Tony

  • Mail is not being checked automatically

    My e-mail accounts are not being checked automatically even though I have them set to be check every hour. I also tried a day at 30 minutes but I noticed the iPhone is still not checking my messages. I have to check manually. Any suggestions?

    I am having the same issue, which appears to have started with the last firmware update to my iPhone. Yahoo no longer pushes mail to my iPhone, and the check every 15 minutes does not work - I have to manually refresh my email accounts to check for mail. This used to work correctly. I've had no luck finding answers online yet.

  • MAIL preference not being saved

    Recently switched to MAIL from Eudora. Set MAIL 4.3 as default application for sending and receiving mail.
    When I check the prefs to be sure, it shows the default as Eudora. I've changed it several times, but can't seem to convince my machine to SAVE those prefs. I looked in vain for a SAVE command, but if it's there, it escaped me.
    I wonder if I'm using Spam Sieve may be causing the problem.
    And, yes, I still have Eudora installed because I'm not yet through copying the contacts and messages I want to meld with the new ones. My intent is to delete Eudora once I'm satisfied that MAIL works the way I want it to.

    I THINK I may have found the answer. Eudora still had in its prefs the choice that IT should be the default mailer. I de-selected this choice and, so far, MAIL is not changing it. (SO FAR)
    If it stays this way for a few weeks, I'll consider the problem solved.

  • My gmail mails are not being showed by apple mail icon. Please solve this problem as soon as possible.

    I have added my gmail account in apple but i am not being notified after making all setting in notification centre.

    You have to go to autherized iPhone agent.

  • Mail does not print attachment name & prints small

    When printing an email, if it has an attachment, it does not print the attachment name.  It prints the icon of the attachment (excel, word, psd, etc.) but it doesn't print the name of the file under it.  This started happening since upgrading to Mavericks.
    Also, emails are printing much smaller.  Is there a way to enlarge the font when printing?

    The same here and quite a lot of other Mail bugs - and all since the new MacPro and Mavericks, no such problems with Mavericks on the MacBookPro 2011 though
    Sometimes the file names are printed, sometimes not and there is no way to find out why - it happens on and off with own mails to be sent and mails received.
    Workaround for own mails is put each file underneath the other with some distance from the last word. Workaround in case of customer mails received go to reply, edit signature on top, reduce to one page and hope .... sometimes it works.
    Also: on and off, Preview will show and printer will print only header on the first page, then body text on the second - only workaround to date (and believe me, I've tried everything) is use Reply, eliminate your own signature and reduce the printed area to less than a page
    Also: long mails with back-and-forth messages may print a line half on one page and lower half on second one .... no workaround here.
    Seems Mail is going to A4 US instead of A4 small (Europe), though this is not what the printer and the system or Word etc. are set to.
    And a sneaking suspicion, that it works ok with people sending me mails from a Mac, but not from a Windows box ... can't bother all my customers though and ask
    So please Apple - lots of people have the same problems - will you finally do something about it ... and yes I used the Feedback function
    Suzanne

  • Remove Attachments from Leopard Mail does not remove attachment from .emix

    Every day I back up my mail (and other items) to an external hard drive using an Automator workflow, in order that I can synchronize mail on my work and home Macs. In order to make this process as quick as possible, I routinely remove attachments from all mail messages once I have saved them to where they need to go on my hard drive.
    I have noticed that since upgrading to Leopard (archive and install), the size of the mail folder which I back up (user>library>mail) is getting significantly bigger every day, despite removing all attachments. Upon investigation it seems that although the attachment has been removed from the mail message, the attachment is still in it's associated .emix file (e.g. user>library>mail>POP???mailaccountfolder>INBOX.mbox>messages>?????.emix - if this email contained a 5mb attachment which was removed using mail>message>remove attachments, the .emix file will still be 5mb).
    Anyone else experiencing this problem? know a workaround? It didn't happen with mail in 10.4!

    I am not sure when I will get the chance to test this -- maybe this afternoon. But I had not understood that what you called original continued to have the attachments. If so, this strongly suggests to me that it indeed may be the way Gmail maintains the All Mail folder that is causing this. See:
    http://mail.google.com/support/bin/answer.py?hl=en&answer=6581
    If there is a setting to help this, it will have to be one that is selected in the Settings webpage of Gmail, I suspect.
    Ernie

Maybe you are looking for

  • Upload very large file to SharePoint Online

    Hi, I tried uploading very large files to SharePoint online via the REST API using JAVA. Uploading files with a size of ~160 mb works well, but if the filesize is between 400mb and 1,6 gb I either receive a Socket Exception (Connection reset by peer)

  • CS 5 InDesign can't get the tutorial to work

    I'm new to CS5 InDesign.  I want to do the tutorial but when it tries to load it says I need an updated version of "Flash" I have uninstalled flash and reinstalled several time. The version that I downloaded is version 10.2.159.1 But when I check on

  • Help! "Unable to deactivate Adobe Muse"

    Please help. Since the last CC app update, Muse has been losing my login credentials a few times a day. Annoying, but it would always let me log in. But now I get: "Unable to deactivate Adobe Muse. You have already deactivated all machines for this a

  • Upgraded to adobe reader XI now cant view/open online documents pdfs etc.

    upgraded to adobe reader XI now cant view/open online documents pdfs etc. even when i save them they wont open after downloading. can save them to documents and open them from document file.

  • Bringing Excel Sheet into AI CS3 and having names placed accordingly.

    Okay, I need to print some inserts with each one having a different name (4 up on an 8.5x11 sheet). I have an Excel sheet with the 200+ names in order and I need to place them into my artwork in a specific place , with a specific font and size (each