Control panel question?

Discussion in 'Optigold ISP' started by steve35, Mar 24, 2005.

  1. #1
    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.
     
    steve35, Mar 24, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    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):
     
    digitalpoint, Mar 24, 2005 IP
  3. steve35

    steve35 Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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
     
    steve35, Mar 24, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    You would need to set more tags... -MailHost, -MailSub, -MailFormat, -MailFrom and -MailTo at a minimum.
     
    digitalpoint, Mar 24, 2005 IP
  5. steve35

    steve35 Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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.
     
    steve35, Mar 24, 2005 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    You logged errors for Web Companion? And if so, does it have anything? What do you have in your mail.txt file?
     
    digitalpoint, Mar 24, 2005 IP
  7. steve35

    steve35 Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Worked great. Thanks Shawn.
     
    steve35, Mar 24, 2005 IP