Skip to main content
added 87 characters in body
Source Link
wch1zpink
  • 7.7k
  • 17
  • 34

enter image description here

enter image description here

deleted 1 character in body
Source Link
wch1zpink
  • 7.7k
  • 17
  • 34
on adding folder items to theFolder after receiving theNewItem
    -- Insert Valid Forwarding Email Address 
    set forwardToRecipients to {"[email protected]", "[email protected]"}
    -- Insert Your Desired Subject Text
    set theSubject to "Subject Text Blah Blah Blah"
    -- Insert Desired Body Content Text
    set theContent to "Text Text" & linefeed & "Text Text And More Text" & linefeed & linefeed
    
    set mailAttachment to POSIX path of theNewItemstheNewItem
    
    tell application "Mail"
        activate
        repeat with i from 1 to count of forwardToRecipients
            set thisItem to item i of forwardToRecipients
            tell (make new outgoing message)
                set subject to theSubject
                set content to theContent
                make new to recipient at end of to recipients with properties {address:thisItem}
                make new attachment with properties {file name:(POSIX file mailAttachment)} at after last paragraph
                delay 5
                send
            end tell
        end repeat
    end tell
end adding folder items to
on adding folder items to theFolder after receiving theNewItem
    -- Insert Valid Forwarding Email Address 
    set forwardToRecipients to {"[email protected]", "[email protected]"}
    -- Insert Your Desired Subject Text
    set theSubject to "Subject Text Blah Blah Blah"
    -- Insert Desired Body Content Text
    set theContent to "Text Text" & linefeed & "Text Text And More Text" & linefeed & linefeed
    
    set mailAttachment to POSIX path of theNewItems
    
    tell application "Mail"
        activate
        repeat with i from 1 to count of forwardToRecipients
            set thisItem to item i of forwardToRecipients
            tell (make new outgoing message)
                set subject to theSubject
                set content to theContent
                make new to recipient at end of to recipients with properties {address:thisItem}
                make new attachment with properties {file name:(POSIX file mailAttachment)} at after last paragraph
                delay 5
                send
            end tell
        end repeat
    end tell
end adding folder items to
on adding folder items to theFolder after receiving theNewItem
    -- Insert Valid Forwarding Email Address 
    set forwardToRecipients to {"[email protected]", "[email protected]"}
    -- Insert Your Desired Subject Text
    set theSubject to "Subject Text Blah Blah Blah"
    -- Insert Desired Body Content Text
    set theContent to "Text Text" & linefeed & "Text Text And More Text" & linefeed & linefeed
    
    set mailAttachment to POSIX path of theNewItem
    
    tell application "Mail"
        activate
        repeat with i from 1 to count of forwardToRecipients
            set thisItem to item i of forwardToRecipients
            tell (make new outgoing message)
                set subject to theSubject
                set content to theContent
                make new to recipient at end of to recipients with properties {address:thisItem}
                make new attachment with properties {file name:(POSIX file mailAttachment)} at after last paragraph
                delay 5
                send
            end tell
        end repeat
    end tell
end adding folder items to
added 22 characters in body
Source Link
wch1zpink
  • 7.7k
  • 17
  • 34
on adding folder items to theFolder after receiving theNewItem
    -- Insert Valid Forwarding Email Address 
    set forwardToRecipients to {"[email protected]", "[email protected]"}
    -- Insert Your Desired Subject Text
    set theSubject to "Subject Text Blah Blah Blah"
    -- Insert Desired Body Content Text
    set theContent to "Text Text" & linefeed & "Text Text And More Text" & linefeed & linefeed
    
    set mailAttachment to POSIX path of theNewItems
    
    tell application "Mail"
        activate
        repeat with i from 1 to count of forwardToRecipients
            set thisItem to item i of forwardToRecipients
            tell (make new outgoing message)
                set subject to theSubject
                set content to theContent
                make new to recipient at end of to recipients with properties {address:thisItem}
                make new attachment with properties {file name:(POSIX file mailAttachment)} at after last paragraph
                delay 5
                send
            end tell
        end repeat
    end tell
end adding folder items to
on adding folder items to theFolder after receiving theNewItem
    -- Insert Valid Forwarding Email Address 
    set forwardToRecipients to {"[email protected]", "[email protected]"}
    -- Insert Your Desired Subject Text
    set theSubject to "Subject Text Blah Blah Blah"
    -- Insert Desired Body Content Text
    set theContent to "Text Text" & linefeed & "Text Text And More Text" & linefeed & linefeed
    
    set mailAttachment to POSIX path of theNewItems
    
    tell application "Mail"
        repeat with i from 1 to count of forwardToRecipients
            set thisItem to item i of forwardToRecipients
            tell (make new outgoing message)
                set subject to theSubject
                set content to theContent
                make new to recipient at end of to recipients with properties {address:thisItem}
                make new attachment with properties {file name:(POSIX file mailAttachment)} at after last paragraph
                delay 5
                send
            end tell
        end repeat
    end tell
end adding folder items to
on adding folder items to theFolder after receiving theNewItem
    -- Insert Valid Forwarding Email Address 
    set forwardToRecipients to {"[email protected]", "[email protected]"}
    -- Insert Your Desired Subject Text
    set theSubject to "Subject Text Blah Blah Blah"
    -- Insert Desired Body Content Text
    set theContent to "Text Text" & linefeed & "Text Text And More Text" & linefeed & linefeed
    
    set mailAttachment to POSIX path of theNewItems
    
    tell application "Mail"
        activate
        repeat with i from 1 to count of forwardToRecipients
            set thisItem to item i of forwardToRecipients
            tell (make new outgoing message)
                set subject to theSubject
                set content to theContent
                make new to recipient at end of to recipients with properties {address:thisItem}
                make new attachment with properties {file name:(POSIX file mailAttachment)} at after last paragraph
                delay 5
                send
            end tell
        end repeat
    end tell
end adding folder items to
Source Link
wch1zpink
  • 7.7k
  • 17
  • 34
Loading