• 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
Mail - seen as junk
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail - seen as junk


  • Subject: Mail - seen as junk
  • From: Wayne Melrose <email@hidden>
  • Date: Wed, 14 Oct 2009 16:32:04 +0200

I need to automate the sending of a file to an address. 

I'm using Mail to do this.. I did this so that I could avoid any junk mail problems that I've had before using more command line mail sending options. 

The code works fine, although when the mail comes in to my account, it's seen as "junk" mail. I'm a little worried that other recipients will be having the same thing, and perhaps the mail will go directly to their spam folders. 

Is there something I can do in my code to stop this from happening? 

thanks 

code I'm using below

tell application "Mail"
set lstEmailSender to get email addresses of first account
set strEmailSender to item 1 of lstEmailSender


set newMessage to make new outgoing message with properties {subject:strSubject, content:strBody & return & return}
tell newMessage
set visible to true
set sender to strEmailSender
make new to recipient at end of to recipients with properties {address:strEmail}
tell content
make new attachment with properties {file name:strFilepath} at after the last character
end tell
send newMessage
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

  • Follow-Ups:
    • Re: Mail - seen as junk
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: Turning Off Auto-correcting In TextEdit
  • Next by Date: Re: Mail - seen as junk
  • Previous by thread: Re: Turning Off Auto-correcting In TextEdit
  • Next by thread: Re: Mail - seen as junk
  • Index(es):
    • Date
    • Thread