Laravel 8-如何在链接上使用附件打开邮件客户端?
大多数资源将Laravel邮件用作“自动”或“按钮点击”的用法。
我需要的是要有一个名为“发送电子邮件”的按钮,因此单击时,它打开电子邮件客户端,带有主题,身体和附件(PDF& zip),而不是使用< a href =“ mailto:email toemake?objocement? = example?body =示例“>发送电子邮件</a>
请注意,我正在使用
- TCPDF在浏览器中生成PDF(不保存到PC 也不是服务器)
- ziparchive用于将图像作为zip文件下载的ziparchive
当单击< a>
时,我想将这些2附加在邮件中。
有可能这样做吗?
Most resources explain the use of laravel mail as "automatic" or "on button click".
What I need is to have a button named "send email" so when clicked, it open email client with subject, body and attachments (PDF & ZIP) instead of using <a href="mailto:email?subject=example?body=example">Send Email</a>
Note that I am using
- TCPDF for generating PDFs within the browser (Not saving it to PC
nor server) - ZipArchive for downloading images as ZIP file
I want to attach these 2 in the mail when <a>
is clicked.
Is there any possibility to do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论