Attaching file to email changes links in email
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