nati Posted June 26, 2001 Posted June 26, 2001 Is there a way to auto send an email from FMP db after clicking "Submit" button from web page? I've got everything working with CDML but can't figure out a way to auto send the email to someone after record has been submitted. I can do it manually so it works ok, just need to automate! all help appreciated... nati [ June 26, 2001: Message edited by: nati ]
Anatoli Posted June 27, 2001 Posted June 27, 2001 Just add the hidden fields to your form with SMTP server, from, to, and what. You can even send (include) part of database.
nati Posted June 27, 2001 Author Posted June 27, 2001 Thanks, tho not sure I understand. I have web site and it has fields that user fills out. When they are done they click "Submit" which populates the database. In the database I have an email script setup that then sends this information to the secretary. This all works fine but I have to manually send the email. Is there a way to automatatically send this email after the person clicks on the Submit? Thanks, nati
dspires Posted June 27, 2001 Posted June 27, 2001 In your form CDML add: <input type="hidden" name="-mailto" value="Where You Want The Mail Sent"> <input type="hidden" name="-MailFrom" value="Return e-mail address"> <input type="hidden" name="-MailSub" value="Subject"> <input type="hidden" name="-MailHost" value="pop host"> <input type="hidden" name="-MailFormat" value="mail.txt"> The mail.txt file should be in the web folder, like a CDML page, but the contents will be the fields / format to be in the body of the e-mail, for instance: [FMP-Field: Name] has just been added to the blah blah database. Home Phone: [FMP-Field: Home Phone], Work Phone: [FMP-Field: Work Phone], E-Mail: [FMP-Field: E_Mail], Web Page: [FMP-Field: Personal Web Page] Have Fun.
Recommended Posts
This topic is 8555 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