我正在尝试构建一个程序,将默认电子邮件发送到电子邮件地址,接收者地址将从文本字段中获取,发件人地址,主题,消息将在代码上提供。
我尝试了这段代码,当遇到“* get shell(”echo“&& wrapQ(shellEscape(tMsg))&&”| / usr / sbin / sendmail时,我遇到了问题“&& * ”
按钮发送:
on mouseUp
local tMsg
put "Been checked" into tMsg
put "User2@hotmail.com" 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
答案 0 :(得分:0)
使用“revMail”命令。请参阅字典以获取语法。