Jump to content

Email attachments


Recommended Posts

  • Newbies

I have a script that generate two different e-mails, one with the attachment and one that contains the e-mail address. Has anyone an idea on how to get them combine somehow so that just one e-mail would be generated?

Go to layout ["Faktura" (KSF medlemslista)]
Save Records as PDF [Restore; "No dialog; "untitled.pdf"; Create email; Current record]
Send Mail [Send via E-mail Client; To: KSF medlemslista::e post: Subject: "KSF medlemsavgift 2020"; Message: "Medlemsfaktura som pdf bifogad”; "untitled.pdf")
Go to layout [original layout]

Link to post
Share on other sites

Save the PDF path in a variable and then use that variable in the Send Mail step.

Set Variable[ $path ; Get(DesktopPath ) & "untitled.pdf" ]
Save Records as PDF[ $path ]  // don't create email
Send Mail[ ... ; $path ]

Welcome to the forums!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.