June 26, 200124 yr 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 ]
June 27, 200124 yr Just add the hidden fields to your form with SMTP server, from, to, and what. You can even send (include) part of database.
June 27, 200124 yr Author 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
June 27, 200124 yr 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.
Create an account or sign in to comment