Newbies cvincent Posted December 13, 2006 Newbies Posted December 13, 2006 I have a plugin named mail.it and it doesn't seem to work with IWP. Anybody have any luck with email scripts in IWP? Thanks,
IdealData Posted December 15, 2006 Posted December 15, 2006 Try using the Open URL script/button step with the following options: "mailto:" & your_email_field Works for me.
FMWebschool Posted December 21, 2006 Posted December 21, 2006 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 [email protected] 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
Adam McCabe Posted June 4, 2007 Posted June 4, 2007 (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 June 4, 2007 by Guest
Newbies FMP24060 Posted June 6, 2008 Newbies Posted June 6, 2008 There's a more comprehensive function UrlEncode that will perform the substitutions, at http://www.briandunning.com/cf/165 .
Newbies NvD Posted June 11, 2008 Newbies Posted June 11, 2008 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
Recommended Posts
This topic is 6277 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