Forum Discussion

hknirmal's avatar
hknirmal
Copper Contributor
Jun 01, 2022

I am having trouble to send attachments in emails

hello i am developing in java and i am stuck at the problem

i am attaching the from the onedrive and i am using 'weburl' from one drive api 
and i cannot attach to email because it require a 'contentbyte' now how do i convert onedrive url to 'contentbyte' and then send the attachments

i am developing app in java 

right now i am converting that 'weburl' to base64 encode and then i pass that string into the 'contentbyte' as a result the actual url is sent inside the file with no content i have to download the file and open into a notepad then i can see the actual url which is wrong 

 

here is the code

 

 

Here is the video in which i downloaded the file that i sent earlier 

 

Screencast.mp4


can anyone guide me to solve this problem i am working on this for 1 month still not getting the solution on internet

if anyone has solution for this please reply with code 

Resources