srussell Posted July 20, 2001 Posted July 20, 2001 I have been messing with this for a long time now... I get the form to enter the data to the database via the -Edit command. Then on the format page, I have the following form to send an E-mail: <FORM ACTION="FMPro" METHOD="post"> <INPUT TYPE="hidden" NAME="-DB" VALUE="students.fm4"> <INPUT TYPE="hidden" NAME="-format" VALUE="search_results.htm"> <INPUT TYPE="hidden" NAME="-MailTo" VALUE="[email protected]"> <INPUT TYPE="hidden" NAME="-MailFrom" VALUE="[email protected]"> <INPUT TYPE="hidden" NAME="-MailSub" VALUE="Chapter 12 Completed"> <INPUT TYPE="hidden" NAME="-MailHost" VALUE="mail.pacbell.net"> <INPUT TYPE="hidden" NAME="-MailFormat" VALUE="chapt12.txt"> <INPUT TYPE="hidden" NAME="-Op" VALUE=eq> <INPUT TYPE=hidden NAME=Name VALUE="[FMP-Field:Name]"> <INPUT TYPE="hidden" NAME="-LOP" VALUE=AND> <INPUT TYPE="hidden" NAME="-Op" VALUE=eq> <INPUT TYPE=hidden NAME="SS Number" VALUE="[FMP-Field:SS Number]"> <INPUT TYPE="submit" NAME="-Find" VALUE="Thank You. Click To Continue."> </FORM> What am I missing? I have also tried to add the above "Mail" tags to the -Edit Page, and still no E-mail... The text file currently is just plain text. Any Help? Thanks!
Partha Posted July 20, 2001 Posted July 20, 2001 <FORM ACTION="FMPro" METHOD="post"> <INPUT TYPE="hidden" NAME="-DB" VALUE="students.fm4"> <INPUT TYPE="hidden" NAME="-format" VALUE="search_results.htm"> <INPUT TYPE="hidden" NAME="-MailTo" VALUE="[email protected]"> <INPUT TYPE="hidden" NAME="-MailFrom" VALUE="[email protected]"> <INPUT TYPE="hidden" NAME="-MailSub" VALUE="Chapter 12 Completed"> <INPUT TYPE="hidden" NAME="-MailHost" VALUE="mail.pacbell.net"> <INPUT TYPE="hidden" NAME="-mailformat" VALUE="mail.txt"> </FORM> You don't need the '-Find' unless you are first finding a specific record to send the mail from/to. In that case, execute the find first. Rgds, Partha
srussell Posted July 21, 2001 Author Posted July 21, 2001 If I do not use an action tag (-Edit, -New, Etc...) I thought that it would not exacute the Mail stuff... I just need to have the mail tags in a form with no action?
Partha Posted July 21, 2001 Posted July 21, 2001 I've got virtually the same tags as I wrote working, though I'm picking up the email IDs and the mail text from a specific record. Wud work fine without the -Find Rgds, Partha
Partha Posted July 21, 2001 Posted July 21, 2001 Forgot to mention that the "FMPro" in the Form Action is the action for the form. It tells FileMaker to execute whatever CDML commands you embed in the HTML - in this case the mail commands. You only beed -Find, or -New or -Edit when you are running a record finding, editing or creating command, Otherwise the rest of the CDML has the parameters for FileMaker to execute. Rgds, Partha
Keith M. Davie Posted July 21, 2001 Posted July 21, 2001 Unless you are using JavaScript I would suggest that the cdml tags -op and -lop as you are using them will not work effectively. If you do not use JavaScript as a control, you would be better off using the exact search technique of cdml.
srussell Posted July 22, 2001 Author Posted July 22, 2001 I cut and paste the tags you posted, and still no E-mail.... When I look in the FMP log, it does not show it sent it.. Should the log reflect this? I do not know if it makes a differance, but I am using FileMaker Pro 4.0v3 and Web Com 4.0v3 as well....
Partha Posted July 23, 2001 Posted July 23, 2001 Hi, Few questions. 1. The value I've used for my Submit button is <INPUT TYPE="submit" NAME="-Find" VALUE="Send Mail">. What have you used here. 2. Does the SMTP server you listed (pacbell) allow mail sending from a host account other than a Pacbell account ? A lot of ISP's don't. 3. How are you creating/saving the mail data the user types in ? I guess you're not creating a new record in the student file every time, but you haven't mentioned ant other file. 4. Could you update your Web Companion from the Filemaker site. Rgds, Partha
srussell Posted July 24, 2001 Author Posted July 24, 2001 Okay... Finally! It is something with the PacBell mail server... I am a Pacbell DSL customer, but I changed the mail server to the server for my dial up account (and dialed up) and it is working!! Thanks for all the help with the problem... It was said I should upgrade the Web Comp, but on Filemaker's site 4.0v3 seems to be the latest for 4.x... The other thing I am not too sure about is the -MailFmtField command... I guess you can use that in place of a text file for the body of the message? I tried to put that in place of the -MailFormat tag, and it got an error in the log.... Is this a 5.x command only? Thanks again for all the help!! Shawn
Partha Posted July 24, 2001 Posted July 24, 2001 I tried the -MailFmtField command with both FMP4 and 5, but both gave me an error, so I just used the easy way and used the -MailFormat command! Actually, I'm on a rather tight schedule, and am postponing all the R&D for later when stage 1 of my project is thru. Rgds, Partha
Recommended Posts
This topic is 8515 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