We are able to attach a document in Word or a presentation in PowerPoint to an email both as the original file and as a PDF. In the command, information for the email must be filled in, and this enables the user to attach the open document or presentation and a PDF edition of the same in an email with just one click. This button will open a new email with information filled in and files attached.
Module is located here:
...\ModuleLibrary\BaseExtensions\01_nocontext_Tools\52_WP_attachToEmail.xml
CMD
<Cmd case="BaseExtensions:email-active"/>
Parameter
to
Type email address of receiver. This parameter is optional.
cc
Type email address, if there is one to be CC'ed. This parameter is optional.
bcc
Type email address, if there is one to be BCC'ed. This parameter is optional.
subject
Define the subject of email. This parameter is optional.
body
Insert the body text of the email. This parameter is optional.
attachPdf
Define parameter to be true
, if the attachment should include a PDF edition of the open document or presentation.
This can be used in conjunction with our command to prompt the user for input. An example of this combination can be seen in Thommessen's solution. The following three parameters should be used in such case:
PdfFileName
Define the name of the PDF file that should be attached to the email (when gotten from prompt).
OnlyPdf
Define whether the command should only attach the PDF file to the email using true
or false
. This can only be true if the attachPdf
parameter is true. If this parameter is defined to be false or is omitted, it will also attach .pptx or .docx file (only if attachPdf
is true too).
DisablePrompt
Define whether it should prompt the user as normally using true
or false
. In Word, it will still prompt user for saving document if the document is not saved beforehand.
Comments
0 comments
Article is closed for comments.