有没有办法重新启动ColdFusion应用程序而无需重新启动整个服务器?
在服务器上运行两个ColdFusion应用程序,我只想重新启动其中一个.
我试图使用PHPMailer通过SMTP发送电子邮件,但到目前为止没有运气.我已经阅读了许多SO问题,PHPMailer教程和论坛帖子,但仍然无法使其工作.我将记录尽可能多的失败尝试,因为我记得要节省时间,但首先是我使用的代码:
<?php
session_start();
error_reporting(E_ALL);
ini_set('display_errors','On');
require('includes/class.phpmailer.php');
include('includes/class.smtp.php');
$mail = new PHPMailer();
$name = $_POST["name"];
$guests = $_POST["guests"];
$time = $_POST["time"];
$message = "<h1>".$name." has booked a table for ".$guests." at ".$time."</h1>";
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "ssl://smtp.gmail.com"; // SMTP server
$mail->SMTPDebug = 1; // enables SMTP debug information (for testing)
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->Port = 26; // set the SMTP port for the GMAIL server
$mail->Username = "myEmail@gmail.com"; // SMTP account …Run Code Online (Sandbox Code Playgroud)