Skip to main content

Timeline for Attach file to email

Current License: CC BY-SA 4.0

11 events
when toggle format what by license comment
S Nov 30, 2020 at 8:20 history suggested anonymous
This is a Drupal 8 question
Nov 28, 2020 at 20:33 review Suggested edits
S Nov 30, 2020 at 8:20
Aug 24, 2020 at 18:47 history edited avpaderno
edited tags
Nov 2, 2018 at 13:46 vote accept lordZ3d
Oct 31, 2018 at 11:54 answer added lordZ3d timeline score: 1
Oct 31, 2018 at 11:04 comment added leymannx Instead of attaching files to emails you better should just send a download link, IMHO.
Oct 31, 2018 at 11:03 history edited leymannx CC BY-SA 4.0
edited title
Oct 31, 2018 at 11:03 comment added berramou Try with this it works for me , $file = file_load($fid); $message["params"]["attachments"][] =[ 'filepath' => $file->uri, ];
Oct 31, 2018 at 11:00 comment added berramou Try to install mailcatcher.me to work with mail in local, it support attachement.
Oct 31, 2018 at 10:58 comment added berramou did you check $file_content has the content, 'sites/default/files/tmp/test.pdf' it may not the correct location ?
Oct 31, 2018 at 10:52 history asked lordZ3d CC BY-SA 4.0