Jump to content

Email Script won't send email


This topic is 2903 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

 

I'm new to Filemaker and I'm using Filemaker Pro Advanced and the files are stored on the server.

 

I've written a script that saves the record out as a pdf and then I want to attach this to an email and send it. I'd like the email to pop up so the person can manually enter the person he wants to send it to. I've attached the script I've written, any assistance would be very much appreciated.

 

Thanks in Advance

 

post-112258-0-48203500-1418911986_thumb.

Link to comment
Share on other sites

You don't say what isn't working, and the complete script code is not visible.

 

Regardless, you should be able to get this working as intended by specifying the path of the previously created PDF for the attachment ($Path), and leaving the “No dialog” option unchecked. 

 

If you don't intend to keep the created PDFs, try using Get ( TemporaryPath ), so you don't need to clean up your Documents folder.

Link to comment
Share on other sites

Apologies, I've attached the full script. It just doesn't send the email. I'm sending it to myself to check and when I click the send email button I've created to send the email and trigger the script it doesn't do anything.

I thought it would create the email for me to perhaps amend and then send and it doesn't, nor do I receive an email into my inbox with the document attached.
Am I missing something?
TIA
 

post-112258-0-34087100-1418917168_thumb.

Link to comment
Share on other sites

At first glance, I cannot see anything wrong with your script; it should create a new mail message in your client. I seem to remember that there were problem with certain e-mail clients, though …

 

If you like, post a copy here so we can check it.

 

btw, your profile says you have FM Advanced; maybe run the script with the Script Debugger to see what errors (if any) occur?

Link to comment
Share on other sites

Are you on a Mac?

Email sending only works if your default email client is Apple's Mail I think.  I changed to Postbox and my script stopped working too till I changed back again.

There's another issue with email address separators in Apple Mail I haven't figured, but that's only a problem if you're sending to multiple recipients which I don't think is the case.

Cheers,

Mike

Link to comment
Share on other sites

Your platform says Win 8 - if that is true and you have not installed another email program, your default is the Windows Hotmail and it will not work with this script step. You need to use a SMTP email instead -- I have a couple of gmail accounts that I use for FMP email sending -- the gmail SMTP is secure and easy to set up (instructions are on the gmail site). Otherwise, you need to install an email client program which is compatable with FMP and make it your default email program -- it is possible that Thunderbird will do this, but I am not sure. Gmail is really the easiest and most secure.

 

hth,

Martie

Link to comment
Share on other sites

Thank you all.

EOS, I've used the debugger and it's not giving me errors, which is why I thought it should work but doesn't.

I'm on win 7. The email at work is Outlook. I'll try GMail via the SMTP route and see if that works. :)

Link to comment
Share on other sites

This topic is 2903 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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