0

我正在尝试构建一个将默认电子邮件发送到电子邮件地址的程序,接收者地址将从文本字段中获取,并且将在代码上提供发件人地址、主题、消息。

我尝试了这段代码,当它到达“ * 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
4

1 回答 1

0

使用“revMail”命令。语法见字典。

于 2013-11-04T20:23:41.807 回答