Noél Dubau Posted March 8, 2011 Share Posted March 8, 2011 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 Link to comment Share on other sites More sharing options...
IdealData Posted March 9, 2011 Share Posted March 9, 2011 Look at the following link http://www.rgagnon.com/javadetails/java-0504.html That's how I did it. 1 Link to comment Share on other sites More sharing options...
Noél Dubau Posted March 9, 2011 Author Share Posted March 9, 2011 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 Link to comment Share on other sites More sharing options...
Noél Dubau Posted March 10, 2011 Author Share Posted March 10, 2011 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 Link to comment Share on other sites More sharing options...
bcooney Posted March 10, 2011 Share Posted March 10, 2011 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. Link to comment Share on other sites More sharing options...
Noél Dubau Posted March 10, 2011 Author Share Posted March 10, 2011 (edited) 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 March 10, 2011 by Noél Dubau Link to comment Share on other sites More sharing options...
Noél Dubau Posted March 11, 2011 Author Share Posted March 11, 2011 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 Link to comment Share on other sites More sharing options...
Newbies Edu Croissier Posted June 2, 2011 Newbies Share Posted June 2, 2011 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 Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 4267 days old. Please don't post here. Open a new topic instead.
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 accountSign in
Already have an account? Sign in here.
Sign In Now