I tried this code and i got a problem when it get to "get shell("echo" && wrapQ(shellEscape(tMsg)) && "| /usr/sbin/sendmail" && "
The button send :
Code: Select all
on mouseUp
local tMsg
put "Been checked" into tMsg
put "User2@???????" into pFrom
put the text of field "emailtext" into pTo
put "Checked" into pSub
put "Been checked" into tMsg
put "Checked" into pSub
put "From:" && pFrom & return & "To:" && pTo & return & "Subject:" && pSub & \
return into tMsg
get shell("echo" && wrapQ(shellEscape(tMsg)) && "| /usr/sbin/sendmail" && \
wrapQ(shellEscape(pTo)) && "-f" && wrapQ(shellEscape(pFrom)))
send mail
end mouseUp