dousong8187 2013-01-24 11:23
浏览 93
已采纳

为thunderbird / Outlook /准备电子邮件

Is it possible to prepare an email (From, To, Subject, Body, Attachements) in PHP and, instead of directly sending it with PHP, open it with the client's email program (Thunderbird / Outlook / ...)?

My context is :

  • in a form, the user select the "To" contact and a file to send (the body is a predefined text)
  • on submit, I would like the prepared email to be displayed in his favorite mail client, so that he can modify it (add CC, modify body, ...)

If possible, how to do that?

  • 写回答

3条回答 默认 最新

  • dsunj08246 2013-01-25 17:24
    关注

    Thanks all for your answers.

    Unfortunately (and actually quite unsurprisingly), it is not possible to put attachement data in a mailto link (duh)!

    2 solutions then :

    1. If you really need to open the client's email software, then prepare a mailto with a direct link to the file in the message body. For that, you need to store the file in a place accessible by the recipient vie that direct link.
    2. If you can't store the file in a place accessible by the recipient (for instance your app is a intranet app behind a firewall), then the only solution is to send the email via PHP directly, without using the client's software.
    3. Or maybe you could send the mail to the sender first via PHP, and he would forward it to the recipient himself, so he could modify the message at will. But that's a bit confusing for non-trained users...

    Cheers!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能