Modify SpamSieve Mail Script to Send to Multiple Recipients

I just started using this simple script from http://c-command.com/scripts/spamsieve/apple-mail-report-spam
to forward spam to spam@uce.gov. I’d like to modify it to be able to report spam to multiple recipients. I’ll probably have a few different scripts for different types of spam.

Tried working it through myself, but scripting skills are rusty:

tell application "Mail"
    set theMessages to the selection
    repeat with theMessage in theMessages
        set newMessage to make new outgoing message at end of outgoing messages
        tell newMessage
            set content to (theMessage's source as Unicode text)
            set subject to theMessage's subject
            make new to recipient with properties {address:"spam@uce.gov"}
        end tell
        send newMessage
    end repeat
end tell

Thank you.

AppleScript: 2.5.1
Browser: Firefox 31.0
Operating System: Mac OS X (10.8)

Hey There,

Try this:


set addressList to {"spam@uce.gov", "goofy@null.com"}
tell application "Mail"
	activate
	set theMessages to the selection
	repeat with theMessage in theMessages
		set newMessage to make new outgoing message at end of outgoing messages
		tell newMessage
			# I like to see the message before it is sent.
			set visible to true
			
			set its content to theMessage's source as Unicode text
			set subject to theMessage's subject
			repeat with i in addressList
				make new to recipient with properties {address:i}
			end repeat
		end tell
		# send newMessage
	end repeat
end tell

Thanks!

Pulled out the “#” in “# send newMessage” and works well.