Following scenario:
I have a mail with attachements (pdf, csv) files.
I read the messages attachments with graph api /attachements and messageid !
I copied the contenByte value to clipboard and start a new post request with sendmail with attachment.
I copied my clipboard to this new post request and want to see, if i can send a mail with attachment.
The mail is sent, but the pdf attachment is broken after that. The csv attachment is working fine.
What is wrong here ?
{
"message": {
"subject": "Hallo Welt",
"body": {
"contentType": "html",
"content": "Noch mehr Welt<br>Mit freundlichem Gruß<br><br>dashandwerk.net<br>Frank Lehmann<br>Lindenstrasse 10a<br>28755 Bremen<br><br>Tel:0421-56507289<br>Mail: info@dashandwerk.net<br><br><br><a href=“https://reviewforest.org/dashandwerk“>Für jede Bewertung pflanzen wir einen Baum !</a>"
},"toRecipients": [{"emailAddress": {"address": "info@dashandwerk.net"}} ],"attachments": [{
"@odata.type": "#microsoft.graph.fileAttachment",
"name": "180628_Bericht_Digitalisierungsumfrage.pdf",
"contentType": "application/pdf",
"contentBytes": "OztNO0w7OzsNCjEwMTtEZWNrbGVpc3QgUmFt...(more)"
},{
"@odata.type": "#microsoft.graph.fileAttachment",
"name": "Kopie von Preisliste_2023_2024.csv",
"contentType": "application/vnd.ms-excel",
"contentBytes": "OztNO0w7OzsNCjEwMTtEZWNrbG..(more)"
} ]},"saveToSentItems": "true"
}