Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Send email with record as PDF attached from Server

Featured Replies

At wits end- When I try to send an email with a record saved as a pdf attached, it won't send.  The email is sent fine via the SMTP server if I do not include the attachment.  With the attachment in the send email script step, the error is 1506, can't send the email.

The pdf is generated from a Save Records as PDF script step to $$ACORPReportTemporaryPath

The variable was generated from Get (TemporaryPath) & "ACORPReport.pdf"

If I email the value of the variable in the body of an email from the script, I get:

$$ACORPReportTemporaryPath =    /C:/Windows/Temp/S217/ACORPReport.pdf 

In the send email, for the file to attach, I have:  $$ACORPReportTemporaryPath

FMP 18 Server on a Windows machine with the script running as a scheduled script

Suggestions?

On the server I'd suggest trying Get ( DocumentsPath ) instead. Then you could check the server documents folder and verify the file is there. If it still doesn't send, it might be an issue with your mail server. How big is the PDF?

  • Author

Fitch- That was a good idea.  After switching it to Documents path, it still failed to send the pdf, but I could see the saved file.  Strangely, it did not seem to have an extension and had a google chrome icon.  Double clicking it opened it in Chrome and it rendered the pdf OK.  There is no Acrobat or Acrobat reader installed on that server- would that solve it?

Thanks, Bruce

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.