Using MailTo link, Can I send a copy to the sender?

跟風遠走 提交于 2021-01-27 15:13:36

问题


We've developed a very simple form that once submitted populates an e-mail to send in support tickets. The e-mails currently send to our "support staff" but it would be ideal if we could send a copy to the sender as well. We are using mailto links. is this possible?

For example: Our employee Brad fills out the support ticket form. This launches Brad's native e-mail application filled with the necessary information. Using mailto we already have the support email as a destination. We would like whoever is sending the email to receive a copy as well. How would it be done?


回答1:


It can't be done, at least not from the browser.

While it is possible to encode multiple To addresses (or a CC address) into a mailto: URL, you have to know the address you want to send it to in advance.

You could write code that watches your support mailbox and copies any incoming email back to the sender, but this would be a terrible idea (not least because it would provide a system for spammers to bounce their spam off your system and back at their targets by using a fake From address).

Almost every email client is configured to keep a copy of any sent email by default anyway. There shouldn't be any need to try to reproduce that feature.




回答2:


Just include an ask for the senders information in your form. Since you are using a mailto link there's no worry about spam because the sender is sending it using their own email client. Populate the mailto link with the sender's provided information as a bcc.

Check out http://mlto.tk



来源:https://stackoverflow.com/questions/30442656/using-mailto-link-can-i-send-a-copy-to-the-sender

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!