Is it possible to be notified by email when a user edits their billing info or override email? We have other databases that we need to update when users make changes to their accounts. Thanks for the help.
You could change the edit.txt file to add some hidden fields for notification. Here's an example: <form action="FMPro" method="post"> <input type="hidden" name="-DB" value="contacts.fp5"> <input type="hidden" name="-Format" value="displaypage.html"> <input type="text" name="-MailTo" value="Keith@Company.COM"> <input type="text" name="-MailCC" value="Don@Company.COM"> <input type="text" name="-MailBCC" value="Terry@Company.COM"> <input type="text" name="-MailFrom" value="Clay@Company.COM"> <input type="text" name="-MailSub" value="The Subject"> <input type="hidden" name="-MailHost" value="SMTP.Company.COM"> <input type="hidden" name="-MailFormat" value="mail.txt"> <input type="submit" name="-View" value="Send Message"> </form> Code (markup):
Thanks, I added this too the edit.txt file and I did not get an email back. Am I missing something else? <input type="hidden" name="-MailTo" value="me@myCompany.COM"> Thanks
You would need to set more tags... -MailHost, -MailSub, -MailFormat, -MailFrom and -MailTo at a minimum.
Ok, this is what I have added to the edit.txt file and have had not luck. any ideas what I am missing? Thanks Shawn. <FORM METHOD="post" ACTION="FMPro" NAME="New Account Form"> <INPUT TYPE="hidden" NAME="-db" VALUE="MainMenu.fp5"> <INPUT TYPE="hidden" NAME="-lay" VALUE="Web"> <INPUT TYPE="hidden" NAME="-format" VALUE="editdone.txt"> <input type="hidden" name="-Script" value="Edit Customer Info Web"> <input type="hidden" NAME="-Max" VALUE="1"> <input type="hidden" name="Password" value="[FMP-Field: gNew Password]"> <input type="hidden" name="Customer ID" value="[FMP-Field: Customer ID]"> <input type="hidden" name="-MailTo" value="me@mydomain"> <input type="hidden" name="-MailFrom" value="me@mydomain"> <input type="hidden" name="-MailSub" value="Account Update"> <input type="hidden" name="-MailHost" value="mail.me@mydomain"> <input type="hidden" name="-MailFormat" value="mail.txt"> The submit tag is located at the bottom of the page.
You logged errors for Web Companion? And if so, does it have anything? What do you have in your mail.txt file?