Jump to content

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

Recommended Posts

Posted

Try using the Open URL script/button step with the following options:

"mailto:" & your_email_field

Works for me.

Posted

Sending emails with Instant Web Publishing and FileMaker Server Advanced.

This will open the user's email client, which has to be properly configured to work. The syntax for the URL is:

"mailto:" & EmailAddressTextField & "?Subject=" &

Substitute ( Substitute (

SubjectLineTextFieldName

; "?" ; "--QuestionMark--" ); "&"; "--Ampersand--") &

"&Body=" &

Substitute ( Substitute (

BodyTextFieldName & ""

; "?" ; "--QuestionMark--" ); "&"; "--Ampersand--")

The fields SubjectLineTextFieldName and BodyTextFieldName CANNOT contain a question mark or ampersand, so the substitute functions replace them with the text:

--QuestionMark-- and --Ampersand--.

EmailAddressTextField must contain a valid email address like me@you.com

The mailto: command will not be affected by pop-up blocking since it uses a different protocol then https and http which are passed to a web browser.

Normailly the mailto: is passed to Mail.app, OS X can also be configured to open Entourage, Outlook etc…as the email application.

You can also use PHP here is an example I created:

http://www.fmwebschool.com/resources/IWP_Email.zip

In Kindness

Stephen Knight

http://www.fmwebschool.com

  • 5 months later...
Posted (edited)

I like where this script is going but I think it's a bit better to substitute encoded special characters instead of substituting text. Just like %20 is a URL-encoded space, use %26 for ampersand and %3F for question marks. Also, substitute carriage returns (paragraph symbols) with %0A. YMMV, but %0A gets me a new line and a line break. If %0A doesn't work, try %0D or %0A%0D. (Reference)

Try this script instead:

Open URL [No dialog; 

"mailto:" & Database::Email & 

"?Subject=Sample%20Subject%20" & 

"&Body=" &

Substitute (Substitute ( Substitute (

Database::EmailMessage; "?" ; "%3F" )

; "&"; "%26")

; "PP (paragraph symbol)"; "%0A")]

Edited by Guest
  • 1 year later...
  • Newbies
Posted

There's a more comprehensive function UrlEncode that will perform the substitutions, at http://www.briandunning.com/cf/165 .

  • Newbies
Posted

it is working if you use fmp9 to share the database and is not working if you share with the server.

FMbutler autosender like nice

sucses

NvD

This topic is 6104 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
×
×
  • Create New...

Important Information

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