set downloadpath1 to "VALIDFILENAME1.jpg"
set downloadpath2 to "VALIDFILENAME2.jpg"
set downloadpath3 to "VALIDFILENAME3.jpg"
tell application "URL Access Scripting"
download filetoget1 to downloadpath1 replacing yes
download filetoget2 to downloadpath2 replacing yes
download filetoget3 to downloadpath3 replacing yes
end tell
set myAttachments to {downloadpath1, downloadpath2, downloadpath3}
set mySMTP to "00.00.00.00"
set mySubject to "subject of email to send"
set myBody to "body text of email to send" & return & return
tell application "Mail"
activate
set newMessage to make new outgoing message with properties {address:myTo, subject:mySubject, content:myBody, return:myFrom}
tell newMessage
repeat with LogoPath in myAttachments
set LogoPath to POSIX path of LogoPath
make new attachment with properties {file name:LogoPath} at after the last paragraph
end repeat
repeat with themailitem in myTo
make new to recipient at end of to recipients with properties {address:themailitem}
end repeat
(*repeat with themailitem in ReportCCRecepients
make new cc recipient at end of cc recipients with properties {address:themailitem}
end repeat*)
send
end tell
end tell
And what, you ask, was the beginning of it all?