jubba890
Member-
Posts
10 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by jubba890
-
Nope, now I am getting a SMTP() cannot connect.
-
Hello, I copied all the settings to WHMCS and disabled all firewalls, and the port is also correct but it does not work still.
-
12/04/2014 10:57 Email Sending Failed - SMTP Error: Could not authenticate. (User ID: 1 - Subject: Now Accepting Bitcoin!) admin XX.XX.XX.XX
-
I opened a ticket with WHMCS's support and they said it was my mail host. I then opened a ticket with my mail host and they said it was WHMCS's support. Long story short, they are blaming each other and at this point, no help to me. I have a server which is running at least 10 applications (mail client, WHMCS and other applications that use mail). My WHMCS when I send mail gives me an error: Could not authenticate. I know the username and password is right because I have the mailbox linked up on my phone and it also sends other emails via PHPMailer on my other applications except WHMCS. WHMCS support sent me a PHP file to test if mail would send via PHPMailer in WHMCS and it did. They said the problem was my hostname (It is named Web, and for 8 months I have had the same hostname) I know this is not the problem but they insist that it is. Any help is much appreciated. With SMTP_debug set to true, I get the following error: SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "220 ESMTP Wed, 19 Nov 2014 18:09:17 -0500: UCE strictly prohibited "SMTP -> get_lines(): $data is "220 ESMTP Wed, 19 Nov 2014 18:09:17 -0500: UCE strictly prohibited "SMTP -> FROM SERVER:220 ESMTP Wed, 19 Nov 2014 18:09:17 -0500: UCE strictly prohibited CLIENT -> SMTP: EHLO smtp.fatcow.com SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] "SMTP -> get_lines(): $data was "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] "SMTP -> get_lines(): $str is "250-SIZE 34603008 "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 "SMTP -> get_lines(): $data was "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 "SMTP -> get_lines(): $str is "250-8BITMIME "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME "SMTP -> get_lines(): $data was "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME "SMTP -> get_lines(): $str is "250-PIPELINING "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING "SMTP -> get_lines(): $data was "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING "SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN "SMTP -> get_lines(): $data was "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN "SMTP -> get_lines(): $str is "250-STARTTLS "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "SMTP -> get_lines(): $data was "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "SMTP -> get_lines(): $str is "250 HELP "SMTP -> get_lines(): $data is "250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP "SMTP -> FROM SERVER:250-walauthsmtp02.yourhostingaccount.com Hello smtp.fatcow.com [23.28.229.179] 250-SIZE 34603008 250-8BITMIME 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP CLIENT -> SMTP: AUTH LOGIN SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 "SMTP -> get_lines(): $data is "334 VXNlcm5hbWU6 "SMTP -> FROM SERVER:334 VXNlcm5hbWU6 CLIENT -> SMTP: c3RvcmVAaW56ZXJuZXR0ZWNobm9sb2dpZXMuY29t SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 "SMTP -> get_lines(): $data is "334 UGFzc3dvcmQ6 "SMTP -> FROM SERVER:334 UGFzc3dvcmQ6 CLIENT -> SMTP: U3RvcmUxMyE= SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "235 Authentication succeeded "SMTP -> get_lines(): $data is "235 Authentication succeeded "SMTP -> FROM SERVER:235 Authentication succeeded CLIENT -> SMTP: MAIL FROM: SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "250 OK "SMTP -> get_lines(): $data is "250 OK "SMTP -> FROM SERVER:250 OK CLIENT -> SMTP: RCPT TO: SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "250 Accepted "SMTP -> get_lines(): $data is "250 Accepted "SMTP -> FROM SERVER:250 Accepted CLIENT -> SMTP: DATA SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "354 Enter message, ending with "." on a line by itself "SMTP -> get_lines(): $data is "354 Enter message, ending with "." on a line by itself "SMTP -> FROM SERVER:354 Enter message, ending with "." on a line by itself CLIENT -> SMTP: Date: Wed, 19 Nov 2014 18:03:33 -0500 CLIENT -> SMTP: Return-Path: CLIENT -> SMTP: To: WHMCS CLIENT -> SMTP: From: Test CLIENT -> SMTP: Subject: Test CLIENT -> SMTP: Message-ID: <013d92b1ff46d9ed031aaef1dd513b48@smtp.fatcow.com> CLIENT -> SMTP: X-Priority: 3 CLIENT -> SMTP: X-Mailer: PHPMailer 5.2.7 ([url]https://github.com/PHPMailer/PHPMailer/[/url]) CLIENT -> SMTP: MIME-Version: 1.0 CLIENT -> SMTP: Content-Type: text/plain; charset=iso-8859-1 CLIENT -> SMTP: Content-Transfer-Encoding: 8bit CLIENT -> SMTP: CLIENT -> SMTP: Test Message CLIENT -> SMTP: CLIENT -> SMTP: . SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "250 OK id=1XrENC-0006YY-Mq "SMTP -> get_lines(): $data is "250 OK id=1XrENC-0006YY-Mq "SMTP -> FROM SERVER:250 OK id=1XrENC-0006YY-Mq CLIENT -> SMTP: QUIT SMTP -> get_lines(): $data was ""SMTP -> get_lines(): $str is "221 walauthsmtp02.yourhostingaccount.com closing connection "SMTP -> get_lines(): $data is "221 walauthsmtp02.yourhostingaccount.com closing connection "SMTP -> FROM SERVER:221 walauthsmtp02.yourhostingaccount.com closing connection
-
Edit: I figured out that <form> dosen't work, any ideas why?
-
I am creating my payment gateway and I did everything that the Docs say (turned error reporting on) and there is no clue on why the error is (Payment Gateway log is empty too) /modules/gateways/IZTPay.php <?php function IZTPay_config() { $configarray = array( "FriendlyName" => array("Type" => "System", "Value"=>"IZTPay"), "email" => array("FriendlyName" => "E-Mail:", "Type" => "text", "Size" => "50", ), "apikey" => array("FriendlyName" => "API Key:", "Type" => "text", "Size" => "80", ), "apikeypass" => array("FriendlyName" => "API Key Password:", "Type" => "text", "Size" => "80", ), /*"transmethod" => array("FriendlyName" => "Transaction Method", "Type" => "dropdown", "Options" => "Option1,Value2,Method3", ), "instructions" => array("FriendlyName" => "Payment Instructions", "Type" => "textarea", "Rows" => "5", "Description" => "Do this then do that etc...", ), "testmode" => array("FriendlyName" => "Test Mode", "Type" => "yesno", "Description" => "Tick this to test", ),*/ ); return $configarray; } function IZTPay_link($params) { # Gateway Specific Variables $gatewayusername = $params['email']; # $gatewaytestmode = $params['testmode']; # Invoice Variables $invoiceid = $params['invoiceid']; $description = $params["description"]; $amount = $params['amount']; # Format: ##.## $currency = $params['currency']; # Currency Code # Client Variables $firstname = $params['clientdetails']['firstname']; $lastname = $params['clientdetails']['lastname']; $email = $params['clientdetails']['email']; $address1 = $params['clientdetails']['address1']; $address2 = $params['clientdetails']['address2']; $city = $params['clientdetails']['city']; $state = $params['clientdetails']['state']; $postcode = $params['clientdetails']['postcode']; $country = $params['clientdetails']['country']; $phone = $params['clientdetails']['phonenumber']; # System Variables $companyname = $params['companyname']; $systemurl = $params['systemurl']; $currency = $params['currency']; # Enter your code submit to the gateway... $code = '<form method="http://www.inzernettechnologies.com/IZTPay/3payment.php"> <input type="hidden" name="email" value="'.$gatewayusername.'" /> <input type="hidden" name="invoiceid" value="'.$invoiceid.'" /> <input type="hidden" name="amount" value="'.$amount.'" /> <input type="hidden" name="systemurl" value="'.$systemurl.'" /> <input type="hidden" name="company" value="'.$companyname.'" /> <input type="hidden" name="description" value="'.$description.'" /> <input type="submit" value="Pay Now" /> </form>'; return $code; } /*function IZTPay_refund($params) { # Gateway Specific Variables $gatewayusername = $params['username']; $gatewaytestmode = $params['testmode']; # Invoice Variables $transid = $params['transid']; # Transaction ID of Original Payment $amount = $params['amount']; # Format: ##.## $currency = $params['currency']; # Currency Code # Client Variables $firstname = $params['clientdetails']['firstname']; $lastname = $params['clientdetails']['lastname']; $email = $params['clientdetails']['email']; $address1 = $params['clientdetails']['address1']; $address2 = $params['clientdetails']['address2']; $city = $params['clientdetails']['city']; $state = $params['clientdetails']['state']; $postcode = $params['clientdetails']['postcode']; $country = $params['clientdetails']['country']; $phone = $params['clientdetails']['phonenumber']; # Card Details $cardtype = $params['cardtype']; $cardnumber = $params['cardnum']; $cardexpiry = $params['cardexp']; # Format: MMYY $cardstart = $params['cardstart']; # Format: MMYY $cardissuenum = $params['cardissuenum']; # Perform Refund Here & Generate $results Array, eg: $results = array(); $results["status"] = "success"; $results["transid"] = "12345"; # Return Results if ($results["status"]=="success") { return array("status"=>"success","transid"=>$results["transid"],"rawdata"=>$results); } elseif ($gatewayresult=="declined") { return array("status"=>"declined","rawdata"=>$results); } else { return array("status"=>"error","rawdata"=>$results); } }*/ ?> /modules/gateways/callback/IZTPay.php <?php # Required File Includes include("../../../dbconnect.php"); include("../../../includes/functions.php"); include("../../../includes/gatewayfunctions.php"); include("../../../includes/invoicefunctions.php"); $gatewaymodule = "IZTPay"; # Enter your gateway module name here replacing template $GATEWAY = getGatewayVariables($gatewaymodule); if (!$GATEWAY["type"]) die("Module Not Activated"); # Checks gateway module is active before accepting callback # Get Returned Variables - Adjust for Post Variable Names from your Gateway's Documentation $status = $_POST["x_response_code"]; $invoiceid = $_POST["x_invoice_num"]; $transid = $_POST["x_trans_id"]; $amount = $_POST["x_amount"]; $fee = $_POST["x_fee"]; $invoiceid = checkCbInvoiceID($invoiceid,$GATEWAY["name"]); # Checks invoice ID is a valid invoice number or ends processing checkCbTransID($transid); # Checks transaction number isn't already in the database and ends processing if it does if ($status=="1") { # Successful addInvoicePayment($invoiceid,$transid,$amount,$fee,$gatewaymodule); # Apply Payment to Invoice: invoiceid, transactionid, amount paid, fees, modulename logTransaction($GATEWAY["name"],$_POST,"Successful"); # Save to Gateway Log: name, data array, status } else { # Unsuccessful logTransaction($GATEWAY["name"],$_POST,"Unsuccessful"); # Save to Gateway Log: name, data array, status } ?> When I pay with the module it says "An Error Occurred. Please Try Again." with no debug information or anything, I have PHP logging enabled and it still doesn't work, maybe it is my PHP code? it should redirect to the 3payment.php and then when they logged in etc I would post it back to the callback URL.
-
Hi, I love the API system except when it comes to XML, I like NVP, but XML is a pain in the butt! This is the code I have so far: checkLogin.php <?php session_start(); echo "ID: " . $_SESSION['clientID']; $postfields = array(); $postfields["action"] = "getclientsdetails"; $postfields["clientid"] = $_SESSION['clientID']; $postfields["stats"] = true; $postfields["responsetype"] = "xml"; echo "<br>"; include('XMLAPI.php'); ?> XMLAPI.php <?php /* *** WHMCS XML API Sample Code *** */ $url = "http://domain.com/includes/api.php"; # URL to WHMCS API file $username = "username"; # Admin username goes here $password = "password"; # Admin password goes here $postfields["username"] = $username; $postfields["password"] = md5($password); $query_string = ""; foreach ($postfields AS $k=>$v) $query_string .= "$k=".urlencode($v)."&"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $query_string); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); $xml = curl_exec($ch); if (curl_error($ch) || !$xml) $xml = '<whmcsapi><result>error</result>'. '<message>Connection Error</message><curlerror>'. curl_errno($ch).' - '.curl_error($ch).'</curlerror></whmcsapi>'; curl_close($ch); $arr = whmcsapi_xml_parser($xml); # Parse XML print_r($arr); # Output XML Response as Array /* Debug Output - Uncomment if needed to troubleshoot problems echo "<textarea rows=50 cols=100>Request: ".print_r($postfields,true); echo "\nResponse: ".htmlentities($xml)."\n\nArray: ".print_r($arr,true); echo "</textarea>"; */ function whmcsapi_xml_parser($rawxml) { $xml_parser = xml_parser_create(); xml_parse_into_struct($xml_parser, $rawxml, $vals, $index); xml_parser_free($xml_parser); $params = array(); $level = array(); $alreadyused = array(); $x=0; foreach ($vals as $xml_elem) { if ($xml_elem['type'] == 'open') { if (in_array($xml_elem['tag'],$alreadyused)) { $x++; $xml_elem['tag'] = $xml_elem['tag'].$x; } $level[$xml_elem['level']] = $xml_elem['tag']; $alreadyused[] = $xml_elem['tag']; } if ($xml_elem['type'] == 'complete') { $start_level = 1; $php_stmt = '$params'; while($start_level < $xml_elem['level']) { $php_stmt .= '[$level['.$start_level.']]'; $start_level++; } $php_stmt .= '[$xml_elem[\'tag\']] = $xml_elem[\'value\'];'; @eval($php_stmt); } } return($params); } ?> How can I on checkLogin.php show the client's first name. I include XMLAPI.php and then add the postfields in the script, just easier since it is the same, It works right now just gives me a huge array and WHMCS won't help me (BOO!!!) Right now it displays: ID: 1 Array ( .... and all that other stuff Can you just give me code to display client first name? I tried $params[1]; $results $results['FIRSTNAME']; and none of those work. Any help is MUCHHHHHH appreciated! Thanks!
-
Yea that was it, I recently upgraded MySQL and apparently strict mode was the default
-
My installation (http://inzernettechnologies.com/billing) will not register a client or receive a new order. The weird thing is when someone orders a product it says their ID is 0 Any help would be appreciated
-
Image: http://imgur.com/bM7S3cd The reason it is -23 is because the client payed double and it added it as credit to their account. I just don't know why there is a 68 and a 94 for invoice numbers. The 94 is what is next to it when I list all the invoices. Any help would be appreciated
