• 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
Attaching file to email changes links in email
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Attaching file to email changes links in email


  • Subject: Attaching file to email changes links in email
  • From: Daniel <email@hidden>
  • Date: Sat, 20 Feb 2016 15:53:17 -0800

I am having an issue where attaching a file to an email removes the links I have in the body of the email message. The signature has a number of links in it. If I send the emails without an attachment the formatting of the email is fine. However if I use the same signature and add an attachment, then links cease working and the text of the email from the first link to the end, is formatted as a nonfunctioning link.

The “delay 5” after adding the attachment, is that I found that without the delay, Mail does not have time to add the attachment. It receives the “send” command before attaching the file and sends the email without the attachment.

Any ideas how to keep the formatting of the body of the email when adding attachments?

Daniel

tell application "Mail"
set theNewMessage to make new outgoing message with properties {sender:”email@hidden", subject:mailSubject, content:theBody, visible:true, message signature:signature theSignature}
tell theNewMessage
make new to recipient at end of to recipients with properties {address:theEmail}
make new attachment with properties {file name:theAttachment} at after the last word of the last paragraph
set message_attachment to 0
delay 5
set countSent to countSent + 1
delay 1
send
end tell
end tell
 _______________________________________________
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

  • Prev by Date: Watch Folder questions
  • Next by Date: Re: Watch Folder questions
  • Previous by thread: Re: Watch Folder questions
  • Next by thread: Script to clear Safari?
  • Index(es):
    • Date
    • Thread