Jump 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 picture included in

Featured Replies

Hello,

I wanted to send an email with a picture in the body (not simply as an attachment). I thought it would be possible through the Scriptmaster module SendEmail - Html-Formatted.

If I calculate the body to obtain the following result

I'm testing the <em>Sending Email <strong>HTML-Formatted</strong></em> utility for <a href="http://360works.com/scriptmaster">ScriptMaster</a>. Works great!And with a picture in the body ! <img src ="http://rene.sette.free.fr/affiche_verdiere.jpg" />
it works fine.

Then I tried to replace the distant picture by a local one stored in a multimedia field of FileMaker ; I replaced "http://rene.sette.free.fr/affiche_verdiere.jpg" by various syntax as file:///Volumes/Data/Desktop/DSC00262.JPG but I could'nt transmit the picture ; only the symbol of a tired file...

Is it impossible ?

Thanks for your answers !

Noël

Look at the following link

http://www.rgagnon.com/javadetails/java-0504.html

That's how I did it.

  • Author

Hello,

Thanks for your answer. I've looked at your link but I am too much a novice to understand how to integrate it into FileMaker! Do I have to create a new script with the third proposed solution and which data must be seized in FileMaker? I am a little lost ; don't you have FM sample by which I can be inspired?

Thank you still

Noël

  • Author

Since yesterday I tried the following things :

1- copy paste the third part of your link in a new ScripMaster module, replace the generic strings forr adress, hosts, pass, image... by real ones and run the script with success.

2- tried to replace these elements by datas of may FileMaker database ... and here I can't get a positive result :(

Beg and Hope in your help !

Noël

Let me precise what I'd like. If said upper that replacing generic strings made the script running fine ; Image1 shows sample of that modification for the smtp used.

What I wanted is to pick the smtp from FileMaker, so I added on the left an input variable called smtpHost and replaced in the script props.setProperty("mail.host", "smtp.free.fr") by props.setProperty("mail.host", smtpHost)

Running the script returns me a message of error that I don't understand... and don't know how to correct the syntax (Image2)

Hope someone will be able to learn me what I must do !

Thanks, Noël

Image1.png

Image2.png

If you purchase the 360 email plugin, you'll be able to work with attachments (inline graphics, as well) without the need to resort to this "advanced" coding.

  • Author

If you purchase the 360 email plugin, you'll be able to work with attachments (inline graphics, as well) without the need to resort to this "advanced" coding.

Indeed your solution is the best ! But I'm not a professionnal developper and hoped in a free solution...

Noël

Just found my error ! I forgot to load 2 jars which are necessary to send mail ! I'll end my sample and put it here some next day !

Edited by Noél Dubau

  • Author

Hello !

Coming back with a very simple sample of the solution I've built. Hope it helps another one !

Noël

mail_avec_image.fp7.zip

  • 2 months later...
  • Newbies

Hi Noel!

Thanks for your records, I think is a great starting point to work with this kind of issues.

Greetings.

--

Edu Croissier

AS

Hello !

Coming back with a very simple sample of the solution I've built. Hope it helps another one !

Noël

Create an account or sign in to comment

Important Information

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

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.