I attached a .png, and everything works well. When I attach a .pdf file, the email doesn't come through.
My code:
Email.send({
SecureToken: "xxxxx",
To:Array(mail,'something@something.com') ,
From: "xxxx",
Subject:"xxxx",
Body: 'xxxx',
Attachments : [{
name : "xxxx",
path: "https://thepathforthepdf."
}]
})
What is wrong?