Hi,
I´m trying to forward a mail theMail with theSubject and the Adress.
tell application "mail"
set theMessagetoSend to forward theMail
tell theMessagetoSend
make new to recipient with properties {address:theAddress}
end tell
end tell
it says theMessagetoSend is not defined.
Any help appreciated.
set theMessagetoSend to make new outgoing message with properties {subject:theSubject, content:theBody & return & return, attachment:theAttachment}
tell theMessagetoSend
set theAddress to "xy@yx.com"
make new to recipient at end of to recipients with properties {address:theAddress}
end tell
I don´t get it. It opens the forwarded message but keeps complaining “theMessagetoSend is not defined”.
tell application "Mail"
set theMessagetoSend to forward theMail with opening window
set to recipient of theMessagetoSend to currentMailAdress)
send theMessagetoSend
end tell
It´s my 2nd script. Might be stupid. Thanks to this Forum, the 1st works great!