PluginProbe
Zoho ZeptoMail / 3.3.1
Zoho ZeptoMail v3.3.1
trunk 1.0.1 1.0.2 1.0.3 1.0.4 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 3.0.1 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.2.0 3.2.1 3.2.2 3.2.3 All 35 releases
transmail / includes / class-transmail-helper.php

class-transmail-helper.php in Zoho ZeptoMail 3.3.1, at includes/class-transmail-helper.php

40 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Zeptomail plugin helper class
5 *
6 * @author Zoho Mail
7 */
8 if(!defined('ABSPATH')){
9 exit;
10 }
11 class Transmail_Helper {
12
13
14 public static function getZeptoMailUrlForDomain($domain){
15
16 $domailURL = "https://";
17 if(str_ends_with($domain, "com")){
18 $domailURL .="zeptomail.zoho.com";
19 } else if(str_ends_with($domain, "eu")){
20 $domailURL .="zeptomail.zoho.eu";
21 } else if(str_ends_with($domain, "in")){
22 $domailURL .="zeptomail.zoho.in";
23 } else if(str_ends_with($domain, "com.cn")){
24 $domailURL .="zeptomail.zoho.com.cn";
25 } else if(str_ends_with($domain, "au")){
26 $domailURL .="zeptomail.zoho.com.au";
27 } else if(str_ends_with($domain, "jp")){
28 $domailURL .="zeptomail.zoho.jp";
29 } else if(str_ends_with($domain, "zohocloud.ca")){
30 $domailURL .="zeptomail.zohocloud.ca";
31 } else if(str_ends_with($domain, "sa")){
32 $domailURL .="zeptomail.zoho.sa";
33 } else{
34 $domailURL .="zeptomail.zoho.com";
35 }
36 return $domailURL;
37
38 }
39
40 }