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.