|
2010 | 2010 | // get email addresses of recipients and senders |
2011 | 2011 | $cnt_form["target"] = convertStringToArray($cnt_form["target"], ';'); |
2012 | 2012 | if(empty($cnt_form["subject"])) { |
2013 | | - $cnt_form["alt_subj"] = str_replace('http://', '', $phpwcms['site']); |
2014 | | - $cnt_form["alt_subj"] = substr($cnt_form["alt_subj"], 0, trim($phpwcms['site'], '/')); |
2015 | | - $cnt_form["subject"] = 'Webform: '.$cnt_form["alt_subj"]; |
| 2013 | + $cnt_form["subject"] = 'Webform: ' . parse_url($phpwcms['site'], PHP_URL_HOST); |
2016 | 2014 | } |
2017 | 2015 |
|
2018 | 2016 | // check for BCC Addresses |
|
2075 | 2073 | } |
2076 | 2074 | if(!empty($phpwcms['SMTP_AUTH_TYPE'])) { |
2077 | 2075 | $mail->AuthType = $phpwcms['SMTP_AUTH_TYPE']; |
2078 | | - if($phpwcms['SMTP_AUTH_TYPE'] === 'NTLM') { |
2079 | | - if(!empty($phpwcms['SMTP_REALM'])) { |
2080 | | - $mail->Realm = $phpwcms['SMTP_REALM']; |
2081 | | - } |
2082 | | - if(!empty($phpwcms['SMTP_WORKSTATION'])) { |
2083 | | - $mail->Workstation = $phpwcms['SMTP_WORKSTATION']; |
2084 | | - } |
2085 | | - } |
2086 | 2076 | } |
2087 | 2077 | $mail->CharSet = $phpwcms["charset"]; |
2088 | 2078 |
|
|
2139 | 2129 | } |
2140 | 2130 | if(!empty($phpwcms['SMTP_AUTH_TYPE'])) { |
2141 | 2131 | $mail->AuthType = $phpwcms['SMTP_AUTH_TYPE']; |
2142 | | - if($phpwcms['SMTP_AUTH_TYPE'] === 'NTLM') { |
2143 | | - if(!empty($phpwcms['SMTP_REALM'])) { |
2144 | | - $mail->Realm = $phpwcms['SMTP_REALM']; |
2145 | | - } |
2146 | | - if(!empty($phpwcms['SMTP_WORKSTATION'])) { |
2147 | | - $mail->Workstation = $phpwcms['SMTP_WORKSTATION']; |
2148 | | - } |
2149 | | - } |
2150 | 2132 | } |
2151 | 2133 | $mail->CharSet = $phpwcms["charset"]; |
2152 | 2134 |
|
|
0 commit comments