dbTalk Databases Forums  

Send Mail (in 8.5) NOT "web compatible"

comp.databases.filemaker comp.databases.filemaker


Discuss Send Mail (in 8.5) NOT "web compatible" in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mariat_t
 
Posts: n/a

Default Send Mail (in 8.5) NOT "web compatible" - 12-13-2006 , 07:03 PM






Hello All,

Im in the process of updating all our FileMaker files to be in 8.5.
Most of the files are web enabled, and in FM6dev I was using the SMTPit
plug in, a lot.

We were hoping to not use a plug-in for 8.5, but I just read the help
file for the Send Mail script step and it clearly states: "This script
step is not web-compatible".

I guess my question is, is there anyway around this ? (Im still working
on the web interfaces for 8.5 so havent tested as yet). And if there is
no way around it, what do most ppl use to email from FileMaker -
through web interface..?

thanking youse in advance..

ta,
Maria


Reply With Quote
  #2  
Old   
Bill Marriott
 
Posts: n/a

Default Re: Send Mail (in 8.5) NOT "web compatible" - 12-13-2006 , 08:08 PM






An easy-as-1-2-3 solution is to use the PHP mail() command in connection
with the web viewer:

1) Get a server with PHP set up. It doesn't even have to be the one that
FileMaker is running on.

2) Put a simple one-line "mailme.php" file with the script

<?php mail ( $mailto, $subject, $body ); ?>

on the server.

3) Construct a url in FileMaker in the format:

http://www.yourserver.com/mailme.php...t&body=Message

When you go to that link (i.e., via a web viewer, which is sized 1 pixel x 1
pixel so people won't see it), the email is automatically mailed out by the
web server.

Ok, it's a little more complicated in that you'll have to encode characters,
and Internet Explorer limits the URL length to about 2,000 characters, but

a) This is a super-easy solution for short mails

b) The basic concept can be extended to handle more complex scenarios.



"mariat_t" <mariat (AT) cse (DOT) unsw.edu.au> wrote

Quote:
Hello All,

Im in the process of updating all our FileMaker files to be in 8.5.
Most of the files are web enabled, and in FM6dev I was using the SMTPit
plug in, a lot.

We were hoping to not use a plug-in for 8.5, but I just read the help
file for the Send Mail script step and it clearly states: "This script
step is not web-compatible".

I guess my question is, is there anyway around this ? (Im still working
on the web interfaces for 8.5 so havent tested as yet). And if there is
no way around it, what do most ppl use to email from FileMaker -
through web interface..?

thanking youse in advance..

ta,
Maria




Reply With Quote
  #3  
Old   
Christian Schmidt
 
Posts: n/a

Default Re: Send Mail (in 8.5) NOT "web compatible" - 12-14-2006 , 07:16 AM



Bill Marriott schrieb/wrote:

Quote:
An easy-as-1-2-3 solution is to use the PHP mail() command in connection
with the web viewer:

1) Get a server with PHP set up. It doesn't even have to be the one that
FileMaker is running on.

2) Put a simple one-line "mailme.php" file with the script

?php mail ( $mailto, $subject, $body ); ?

on the server.

3) Construct a url in FileMaker in the format:

http://www.yourserver.com/mailme.php...t&body=Message
4) Secure the server running the PHP setup to prevent it from being
abused by spammers.

Gruss,
Christian
--
Christian Schmidt | Germany | ChriSchmiLi (AT) gmx (DOT) de
No HTML Mails, please!!
De eene hett 'n Rittergut, de annere ritt 'n Gitter rut.


Reply With Quote
  #4  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Send Mail (in 8.5) NOT "web compatible" - 12-14-2006 , 11:28 AM



What Bill suggests is very valid if you need to send mail without the
user's email window popping up (I think that's what his method does).

But a simpler way can be achieved without the php script.

Add a "link" or FileMaker button that runs a script that uses the Open
URL step and use as the url:

mailto:someone (AT) anydomain (DOT) com&subject=Test&body=Message



mariat_t wrote:
Quote:
Hello All,

Im in the process of updating all our FileMaker files to be in 8.5.
Most of the files are web enabled, and in FM6dev I was using the SMTPit
plug in, a lot.

We were hoping to not use a plug-in for 8.5, but I just read the help
file for the Send Mail script step and it clearly states: "This script
step is not web-compatible".

I guess my question is, is there anyway around this ? (Im still working
on the web interfaces for 8.5 so havent tested as yet). And if there is
no way around it, what do most ppl use to email from FileMaker -
through web interface..?

thanking youse in advance..

ta,
Maria

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Professional Solutions, Inc. Los Angeles

FileMaker 8 Certified Developer
Associate Member, FileMaker Solutions Alliance


Reply With Quote
  #5  
Old   
Bill Marriott
 
Posts: n/a

Default Re: Send Mail (in 8.5) NOT "web compatible" - 12-14-2006 , 12:24 PM



Yes Howard's method works much like the Send Mail [with dialog] script
step and will result in the user's email application opening up with a new
message window ready-to-send. The PHP method I described is for sending mail
"silently" -- which is a better option for notifications of new records or
confirmation emails, that sort of thing.

However, one small typo; the correct form is:

mailto:someone (AT) anydomain (DOT) com?subject=Test&body=Message

(The first "&" should be a "?")

It's also subject to the URL length limit of ~2000 characters.

"Howard Schlossberg" <howard (AT) antispahm (DOT) fmprosolutions.com> wrote

Quote:
What Bill suggests is very valid if you need to send mail without the
user's email window popping up (I think that's what his method does).

But a simpler way can be achieved without the php script.

Add a "link" or FileMaker button that runs a script that uses the Open URL
step and use as the url:

mailto:someone (AT) anydomain (DOT) com&subject=Test&body=Message



mariat_t wrote:
Hello All,

Im in the process of updating all our FileMaker files to be in 8.5.
Most of the files are web enabled, and in FM6dev I was using the SMTPit
plug in, a lot.

We were hoping to not use a plug-in for 8.5, but I just read the help
file for the Send Mail script step and it clearly states: "This script
step is not web-compatible".

I guess my question is, is there anyway around this ? (Im still working
on the web interfaces for 8.5 so havent tested as yet). And if there is
no way around it, what do most ppl use to email from FileMaker -
through web interface..?

thanking youse in advance..

ta,
Maria


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Professional Solutions, Inc. Los Angeles

FileMaker 8 Certified Developer
Associate Member, FileMaker Solutions Alliance



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.