I am using javamail api to send email using smtp.
i have tried a typical example from tutorial point .
But when i try to give a hyper link( https://www.antennahouse.com/XSLsample/pdf/sample-link_1.pdf ) as attachment, i get the following error.
Caused by: java.io.FileNotFoundException: https:\\www.antennahouse.com\\XSLsample\\pdf\\sample-link_1.pdf (The filename, directory name, or volume label syntax is incorrect)
is there a different method for hyper link as attachment?
Resolved.
I downloaded the file using http request and the attached it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.