[Vtigercrm-commits] [Vtiger development] #8229: Outgoing server (program did not parse well the given parameters)

Vtiger development vtiger-tickets at trac.vtiger.com
Mon Oct 13 11:37:38 GMT 2014


#8229: Outgoing server (program did not parse well the given parameters)
----------------------------+------------------------
 Reporter:  uma             |       Owner:  developer
     Type:  Need More Info  |      Status:  new
 Priority:  major           |   Milestone:  6.2.0
Component:  vtigercrm       |     Version:  6.1.0 ea
 Severity:  Medium          |  Resolution:
 Keywords:                  |
----------------------------+------------------------
Changes (by rishab):

 * type:  defect => Need More Info


Comment:

 In OutgoingServerEdit.tpl we have
 {{{
 <input type="hidden" name="server_port" value="0" />
 }}}
 which sends {{{'serverport'}}} as 0 in POST.But we are not considering
 this value when we connect to server using SMTP in
 /vtiger_root/modules/Emails/class.phpmailer.php
 we are extracting the host:
 {{{
 $hosts = explode(';', $this->Host);
     $lastexception = null;

     foreach ($hosts as $hostentry) {
       $hostinfo = array();
       $host = $hostentry;
       $port = $this->Port;
       if (preg_match('/^(.+):([0-9]+)$/', $hostentry, $hostinfo)) { //If
 $hostentry contains 'address:port', override default
         $host = $hostinfo[1];
         $port = $hostinfo[2];
       }
 }}}
 Need to check the server setup which you are trying to connect.

--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8229#comment:2>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM


More information about the vtigercrm-commits mailing list