简体   繁体   English

将文件作为链接而不是邮件中的附件发送

[英]sending file as a link instead of an attachment in the mail

Is it possible to send the file as a link instead of attaching the file in the email.是否可以将文件作为链接发送,而不是在 email 中附加文件。 I am sending an email using Java.我正在使用 Java 发送 email。 Now, i have a requirement thatI don't want to send the file as an attachement instead I need to send it as a link.现在,我有一个要求,我不想将文件作为附件发送,而是需要将其作为链接发送。

Link will something be like abc.com\report\excel\"fileName" , in which abc.com is the host/ machine name, and rest is the path location.链接类似于abc.com\report\excel\"fileName" ,其中abc.com是主机/机器名称,rest 是路径位置。

Thanks.谢谢。

Mail format does't allow meta-attachments (ie by reference, not by instance).邮件格式不允许元附件(即通过引用,而不是通过实例)。 Your only option is sending HTML email with HTML link to the file (and of course it should be accessible via internet).您唯一的选择是将 HTML email 和 HTML 链接发送到文件(当然它应该可以通过互联网访问)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM