Jump to content

adamscybot

Retired Forum Member
  • Posts

    18
  • Joined

  • Last visited

About adamscybot

adamscybot's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Im trying to offer free webhosting to my customers when they ordera gameserver but not sure how this can automated using configurable options? I can create a webhosting tick box but its not automated I would have to manually check the order. Surely theres a way to add a product on top of what your ordering.
  2. That indicates a firewall issue between your WHMCS server and the google servers. Either that, or that certain google server is down (doubt it). You could try changing the priority order of your MX records.
  3. Does your SMTP server support TLS? This thread is for those wanting to enable TLS encryption.
  4. Well WHMCS basically copied my mod and pasted it in so yeh. They probably should update the class.
  5. There isn't much point in this modification anymore. Whmcs V4 includes the necessary code for TLS. Open class.phpmailer.php find "var $SMTPSecure" and set it to "tls"
  6. Hi. WHMCS 4 uses new phpmailer classes, it is much easier to enable TLS now. Open class.phpmailer.php find "var $SMTPSecure" and set it to "tls" Now put in your smtp server in settings (tls:// is not requires and ssl doesnt need to be ticked). Your done! EDIT: It appears they copied the code I originally posted and put it straight in the v4 release - escept it now doesnt accept tls:// you must change the $SMTPSecure variable directly.
  7. Does V4 finally have native support for SMTP servers requiring TLS encryption (like google) or do I still need to use my phpmailer hack? Adam
  8. Im making a module and I have not seen one exmaple/how to on how you get the selected configurable options. I can get the custom fields and module options easily using $configoption and $customfields. But what about configurable options?
  9. Hi, I think this is related to the SMTP server re-writing these fields. I know Gmail does it: http://groups.google.com/group/hosted-the-basics/browse_thread/thread/553f48f42aa01ba0 It appears to be a spam prevention thing. "Some clarification: I set up Gmail for a client for SMTP access, and we discovered the following huge drawback: Gmail automatically rewrites the "from" line of any e-mail you send via their SMTP gateway to your Gmail address, and it overrides any Reply-To settings you may have in your e-mail software in favor of the one in Gmail's web interface. So while Gmail's SMTP access sure is handy, it's not a perfect solution for everybody." Now this means you can not get round it. I own a google apps account so I can have whatever@mydomain.com that makes it so you can at least hide the fact your using gmail. However, this problem can not be solved with gmail SMTP servers and indeed others that do this (I expect many do). I use WHMCS for Us --> Client emails anyway and have manually cut away the pre-order form in favour of direct email. This may not suit some but there is no other way.
  10. Hi, Didn't realise this thread of mine became active! Use 3.7.2 then follow instructions. Or, replace your files with my pre-modified ones. Download here: http://sws.vxcomputers.com/includes.zip Im not sure if it will work with 3.7.1 but im pretty sure it should. Adam
  11. I was annoyed by not being able to use the gmail smtp because it uses TSL security. So I modified the PHPMailer class' to support it. Here are the instructions. This modification was completed on version 3.6.2 (should work on any version). Backup includes/class.phpmailer.php Backup includes/class.smtp.php Open includes/class.phpmailer.php Below: $port = $this->Port; } Place: $strpos = strpos($host,"tls://"); if($strpos !== false) { $tls = true; $host = str_replace("tls://","",$host); } else { $tls = false; } Below: $this->smtp->Hello($this->ServerHostname()); } Place: if($tls == true) { if(!$this->smtp->StartTLS()) { $this->SetError($this->Lang("tls")); $this->smtp->Reset(); $connection = false; } $this->smtp->Hello($hello); } Save and upload. Open includes/class.smtp.php Below: if($this->do_debug >= 2) { echo "SMTP -> FROM SERVER:" . $this->CRLF . $announce; } return true; } Place: /** * Initiate a TSL communication with the server. * * SMTP CODE 220 Ready to start TLS * SMTP CODE 501 Syntax error (no parameters allowed) * SMTP CODE 454 TLS not available due to temporary reason * @access public * @return bool success */ public function StartTLS() { $this->error = null; # to avoid confusion if(!$this->connected()) { $this->error = array("error" => "Called StartTLS() without being connected"); return false; } fputs($this->smtp_conn,"STARTTLS" . $extra . $this->CRLF); $rply = $this->get_lines(); $code = substr($rply,0,3); if($this->do_debug >= 2) { echo "SMTP -> FROM SERVER:" . $this->CRLF . $rply; } if($code != 220) { $this->error = array("error" => "STARTTLS not accepted from server", "smtp_code" => $code, "smtp_msg" => substr($rply,4)); if($this->do_debug >= 1) { echo "SMTP -> ERROR: " . $this->error["error"] . ": " . $rply . $this->CRLF; } return false; } //Begin encrypted connection if(!stream_socket_enable_crypto($this->smtp_conn, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) { return false; } return true; } Save and upload. Instructions for use: To use a smtp server which requires tls security put "tls://" before the SMTP Host. The script will then attempt to connect with TLS security when an email is sent. E.g. tls://smtp.gmail.com Also, usually the port for TLS is different. Use 587 or 465 (587 works for me). Hope this helps, Adam
  12. Your not the only one. This seems related: http://forum.whmcs.com/showthread.php?t=11818 Did it by any chance occur after upgrading?
  13. It seems this problem has occured after updating to 3.6.1 from 3.6.0. When a customer orders something, using paypal as the gateway (we have no other gateways), the system takes them straight to the order confirmation page and no invoices are generated! Emails sent state payment is due on the same day - but no invoices have been created at any point. I have checked the cofniguration and it is set to "automatically redirect the user to the invoice." This correct. I can not see what is causing this.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated