Apps Script: send an email with attachment with special extension

44 views
Skip to first unread message

Manuel Pulido

unread,
Dec 6, 2024, 6:17:29 AM12/6/24
to Google Apps Script Community
Hi, please I need your help. I wrote a code in google apps script in a spreadsheet to create a text file that imported into Autocad via the script command creates a drawing. This file requires the SCR extension to be loaded into Autocad. I've tried many different codes to send it via apps script as an email attachment, but every time I get an error. If I send the file with txt extension it works. Can anyone help me? Thank you. Manuel

olivercre...@gmail.com

unread,
Dec 6, 2024, 7:42:37 AM12/6/24
to Google Apps Script Community
Hi there,
It looks like .scr files are blocked by gmail for security reasons. Since the .txt extension works, how about emailing the file as .txt and renaming to .scr after downloading?

Manuel Pulido

unread,
Dec 6, 2024, 11:25:52 AM12/6/24
to Google Apps Script Community
Thanks for the reply. I would like to make the process very simple for users and avoid them having to change extensions, so I'm looking for another solution. I could send an email with a link to the file and the user can download it, but I don't like that. Thanks again for your reply.

Reply all
Reply to author
Forward
0 new messages