FatFingers
New Member
Hi,
I would like to email a word document to a selected user.
I have set up a list which has a field element of Send To
I have then added the email plugin to the form
the email to is set to the Send To element value and this works to send the email out but Im having issues with the attachments options.
I have set the Attachment Type to docx and added:
$file[] = 'images/Etching/InitialrequestV1.docx';
return $file;
To the Attachments (eval)
The email is sent to the recipient however the attachment is a random name and is corrupt and cannot be opened.
I have tried using PDF as well but have the same corrupt issue when the mail is received.
What am I doing wrong ? and can I get it to use the true filename rather than a random one being generated ?
Thanks in advance.
I would like to email a word document to a selected user.
I have set up a list which has a field element of Send To
I have then added the email plugin to the form
the email to is set to the Send To element value and this works to send the email out but Im having issues with the attachments options.
I have set the Attachment Type to docx and added:
$file[] = 'images/Etching/InitialrequestV1.docx';
return $file;
To the Attachments (eval)
The email is sent to the recipient however the attachment is a random name and is corrupt and cannot be opened.
I have tried using PDF as well but have the same corrupt issue when the mail is received.
What am I doing wrong ? and can I get it to use the true filename rather than a random one being generated ?
Thanks in advance.