当前位置: 首页>>代码示例>>PHP>>正文


PHP TikiMail::setSMTPParams方法代码示例

本文整理汇总了PHP中TikiMail::setSMTPParams方法的典型用法代码示例。如果您正苦于以下问题:PHP TikiMail::setSMTPParams方法的具体用法?PHP TikiMail::setSMTPParams怎么用?PHP TikiMail::setSMTPParams使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TikiMail的用法示例。


在下文中一共展示了TikiMail::setSMTPParams方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

			check_ticket('webmail');
			$a2 = $mail->getFile('temp/mail_attachs/' . $_REQUEST['attach2file']);

			$mail->addAttachment($a2, $_REQUEST['attach2'], $_REQUEST['attach2type']);
			@unlink('temp/mail_attachs/' . $_REQUEST['attach2file']);
		}

		if ($_REQUEST['attach3']) {
			check_ticket('webmail');
			$a3 = $mail->getFile('temp/mail_attachs/' . $_REQUEST['attach3file']);

			$mail->addAttachment($a3, $_REQUEST['attach3'], $_REQUEST['attach3type']);
			@unlink('temp/mail_attachs/' . $_REQUEST['attach3file']);
		}

		$mail->setSMTPParams($current['smtp'], $current['smtpPort'], '', $current['useAuth'], $current['username'], $current['pass']);

		if (isset($_REQUEST['useHTML']) && $_REQUEST['useHTML'] == 'on') {
			$mail->setHTML($_REQUEST['body'], strip_tags($_REQUEST['body']));
		} else {
			$mail->setText($_REQUEST['body']);
		}

		$to_array_1 = preg_split('/[, ;]/', $_REQUEST['to']);
		$to_array = array();

		foreach ($to_array_1 as $to_1) {
			if (!empty($to_1)) {
				$to_array[] = $to_1;
			}
		}
开发者ID:railfuture,项目名称:tiki-website,代码行数:31,代码来源:tiki-webmail.php

示例2: split

     $mail->addAttachment($a1, $_REQUEST["attach1"], $_REQUEST["attach1type"]);
     @unlink('temp/mail_attachs/' . $_REQUEST["attach1file"]);
 }
 if ($_REQUEST["attach2"]) {
     check_ticket('webmail');
     $a2 = $mail->getFile('temp/mail_attachs/' . $_REQUEST["attach2file"]);
     $mail->addAttachment($a2, $_REQUEST["attach2"], $_REQUEST["attach2type"]);
     @unlink('temp/mail_attachs/' . $_REQUEST["attach2file"]);
 }
 if ($_REQUEST["attach3"]) {
     check_ticket('webmail');
     $a3 = $mail->getFile('temp/mail_attachs/' . $_REQUEST["attach3file"]);
     $mail->addAttachment($a3, $_REQUEST["attach3"], $_REQUEST["attach3type"]);
     @unlink('temp/mail_attachs/' . $_REQUEST["attach3file"]);
 }
 $mail->setSMTPParams($current["smtp"], $current["smtpPort"], '', $current["useAuth"], $current["username"], $current["pass"]);
 if (isset($_REQUEST["useHTML"]) && $_REQUEST["useHTML"] == 'on') {
     $mail->setHTML($_REQUEST["body"], strip_tags($_REQUEST["body"]));
 } else {
     $mail->setText($_REQUEST["body"]);
 }
 $to_array_1 = split('[, ;]', $_REQUEST["to"]);
 $to_array = array();
 foreach ($to_array_1 as $to_1) {
     if (!empty($to_1)) {
         $to_array[] = $to_1;
     }
 }
 $to_array = $contactlib->parse_nicknames($to_array);
 // Get email addresses not in the address book
 $not_contacts = $contactlib->are_contacts($to_array, $user);
开发者ID:Kraiany,项目名称:kraiany_site_docker,代码行数:31,代码来源:tiki-webmail.php

示例3: TikiMail

                            }
                            $tikilib->update_page($page, $body, "Updated from " . $acc["account"], $aux["sender"]["user"], '0.0.0.0', '');
                            $content .= "Page: {$page} has been updated";
                        }
                    }
                    mailin_check_attachments($output, $content, $page, $aux["sender"]["user"]);
                } else {
                    $mail = new TikiMail();
                    $mail->setFrom($acc["account"]);
                    $c = $tikilib->get_preference("default_mail_charset", "utf8");
                    $mail->setHeadCharset($c);
                    $mail->setTextCharset($c);
                    $l = $tikilib->get_preference("language", "en");
                    $mail_data = $smarty->fetchLang($l, "mail/mailin_help_subject.tpl");
                    $mail->setSubject($mail_data);
                    $mail->setSMTPParams($acc["smtp"], $acc["smtpPort"], '', $acc["useAuth"], $acc["username"], $acc["pass"]);
                    $smarty->assign('subject', $output['header']['subject']);
                    $mail_data = $smarty->fetchLang($l, "mail/mailin_help.tpl");
                    $mail->setText($mail_data);
                    $res = $mail->send(array($email_from), 'mail');
                }
            }
        }
        //end if($cantUseMailIn)
        // Remove the email from the pop3 server
        $pop3->deleteMsg($i);
    }
    //end for ($i = 1; $i <= $mailsum; $i++)
    $pop3->disconnect();
    //echo $content;
}
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:tiki-mailin-code.php


注:本文中的TikiMail::setSMTPParams方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。