Real Webspace Posted December 12, 2007 Share Posted December 12, 2007 Hi, I have tried to make a co.za registration form but cannot seem to get it right... here is my email form: (i've only changed the Register new domain section for the moment) function email_RegisterDomain($params) { global $CONFIG; $command = "Register Domain".$params["sld"].".co.za"; $message = "\n1. DOMAIN NAME and ACTION"; $message += "\n1a. Complete Domain Name.....................:".$params["sld"].".".$params["tld"].""; $message += "\n1b. Action - [N]ew, [u]pdate, or [D]elete.....: N"; $message += "\n2. DOMAIN REGISTRANT and BILLING"; $message += "\n2a. Domain Registrant........................:".$params["companyname"].""; $message += "\n2b. Registrant Postal address................:".$params["address1"]..$params["address2"].""; $message += "\n2c. Street Address...........................:".$params["address1"]..$params["address2"].""; $message += "\n2e. [i]nvoice or [A]ccount...................:I"; $message += "\n2f. Organisation to be billed or account no..:".$params["admincompanyname"].""; $message += "\n2g. Email to send invoices to................:info@realwebspace.za.net" $message += "\n2i. Invoice Addr.............................:"; $message += "\n2j. Registrant Phone No......................:".$params["adminphonenumber"].""; $message += "\n22. Registrant Fax No........................:"; $message += "\n2l. Registrant Email.........................:".$params["adminemail"].""; $message += "\n2n. Registrant VAT No........................:"; $message += "\n4. ADMINISTRATIVE CONTACT"; $message += "\n4a. Name (last, first........................:".$params["adminlastname"].", ".$params["adminfirstname"].""; $message += "\n4b. Title/position...........................:"; $message += "\n4c. Organisation.............................:".$params["companyname"].""; $message += "\n4d. Postal Addr..............................:".$params["address1"]." ".$params["address2"].""; $message += "\n4e. Phone Number.............................:".$params["phonenumber"].""; $message += "\n4f. Fax Number...............................:"; $message += "\n4g. Email....................................:".$params["adminemail"].""; $message += "\n5. TECHNICAL CONTACT"; $message += "\n5a. Name (last, first........................:".$params["adminlastname"].", ".$params["adminfirstname"].""; $message += "\n5b. Title/position...........................:Staff"; $message += "\n5c. Organisation.............................:Real Webspace"; $message += "\n4d. Postal Addr..............................:".$params["adminaddress1"].", ".$params["adminaddress2"].""; $message += "\n5e. Phone Number.............................:".$params["adminphonenumber"].""; $message += "\n5f. Fax Number...............................:+27 86 693 7336"; $message += "\n5g. Email....................................:".$params["adminemail"].""; $message += "\n6. NAMESERVERS FOR THIS DOMAIN"; $message += "\n6a. Primary server FQDN......................:".$params["ns1"].""; $message += "\n6b. Primary server IP address................:208.101.48.120"; $message += "\n6e. Secondary server FQDN....................:".$params["ns2"].""; $message += "\n6f. Secondary server IP address..............:69.72.230.42"; $message += "\n6i. Secondary server FQDN....................:"; $message += "\n6j. Secondary server IP address..............:"; $message += "\n6q. Secondary server FQDN....................:"; $message += "\n6r. Secondary server IP address..............:"; ///$headers = "MIME-Version: 1.0\r\n"; ///$headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; ///$headers .= "From: ".$CONFIG["CompanyName"]." <".$CONFIG["Email"].">\r\n"; mail("coza-admin@co.za",$command,$message);///,$headers); } Here is thew txt document that it should look like! 1. DOMAIN NAME and ACTION 1a. Complete Domain Name.....................: 1b. Action - [N]ew, [u]pdate, or [D]elete.....: N 2. DOMAIN REGISTRANT and BILLING 2a. Domain Registrant........................: 2b. Registrant Postal address................: 2c. Street Address...........................: 2e. [i]nvoice or [A]ccount...................:I 2f. Organisation to be billed or account no..: 2g. Email to send invoices to................: 2i. Invoice Addr.............................: 2j. Registrant Phone No......................: 22. Registrant Fax No........................: 2l. Registrant Email.........................: 2n. Registrant VAT No........................: 3. CNAME - This section is no longer in use 3b. Full CNAME ..............................: 3c. Sub alias 1..............................: 3d. Sub alias 2..............................: 4. ADMINISTRATIVE CONTACT 4a. Name (last, first........................ 4b. Title/position...........................: 4c. Organisation.............................: 4d. Postal Addr..............................: 4e. Phone Number.............................: 4f. Fax Number...............................: 4g. Email....................................: 5. TECHNICAL CONTACT 5a. Name (last, first........................: 5b. Title/position...........................: 5c. Organisation.............................: 5d. Postal Addr..............................: 5e. Phone Number.............................: 5f. Fax Number...............................: 5g. Email....................................: 6. NAMESERVERS FOR THIS DOMAIN 6a. Primary server FQDN......................: 6b. Primary server IP address................: 6e. Secondary server FQDN....................: 6f. Secondary server IP address..............: 6i. Secondary server FQDN....................: 6j. Secondary server IP address..............: 6q. Secondary server FQDN....................: 6r. Secondary server IP address..............: 0 Quote Link to comment Share on other sites More sharing options...
Real Webspace Posted December 14, 2007 Author Share Posted December 14, 2007 I think it is sending it in the wrong format. How can i chnage the format to plain ANSI ? 0 Quote Link to comment Share on other sites More sharing options...
HostworX Posted March 12, 2008 Share Posted March 12, 2008 i got a working version if you need 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.