...
|
...
|
@@ -297,7 +297,8 @@ class MailFun { |
|
|
* @author:dc
|
|
|
* @time 2024/3/6 9:21
|
|
|
*/
|
|
|
public static function getHostPort($host,$port=0){
|
|
|
public static function getHostPort($host,$port=0,$ssl = 'ssl://'){
|
|
|
$host = ltrim($host,'/');
|
|
|
$arr = explode(":",$host);
|
|
|
if(str_contains($host, '//')){
|
|
|
return [
|
...
|
...
|
@@ -307,7 +308,7 @@ class MailFun { |
|
|
}else{
|
|
|
|
|
|
return [
|
|
|
'host' => $arr[0],
|
|
|
'host' => $ssl.$arr[0],
|
|
|
'port' => empty($arr[1]) ? $port : $arr[1],
|
|
|
];
|
|
|
}
|
...
|
...
|
|