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 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏