• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Email multiple files (script)

New Here ,
Dec 13, 2022 Dec 13, 2022

Copy link to clipboard

Copied

Hello everyone,

I'm currently setting a script to separate a PDF in two files and i have to send the files in an email next. 

I can send two emails with one file in each but i want to send both files in one email, all that with a script.

Anyone knows how i can do that please ?

(sorry for my english..)

Thank you

TOPICS
JavaScript

Views

521

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2022 Dec 13, 2022

Copy link to clipboard

Copied

I thought to this solution : 

Open every files I need to send and use "this.mailDoc" but replace "this" by another command which include every opened files ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2022 Dec 13, 2022

Copy link to clipboard

Copied

This is not possible.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 13, 2022 Dec 13, 2022

Copy link to clipboard

Copied

If you can run the code from a privileged context then you can use the activeDocs property of the app object to access all the currently open files.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 13, 2022 Dec 13, 2022

Copy link to clipboard

Copied

Ok, can you help and purpose a code which open two files and mail both with a script please ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 14, 2022 Dec 14, 2022

Copy link to clipboard

Copied

I can help, but if you want me to write the full code for you we will need to discuss the price for it.

I've explained the basic approach of how it needs to be done.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 14, 2022 Dec 14, 2022

Copy link to clipboard

Copied

LATEST

I think we spoke about 10 code lines so i'm not ready to pay for that. I want to optimise a process but if I can't send email automaticaly, I'll do it by myself. 

I thought we are here to help community, not to earn money. Sorry

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines