小编Jam*_*ing的帖子

没有重启服务器重启应用程序?

有没有办法重新启动ColdFusion应用程序而无需重新启动整个服务器?

在服务器上运行两个ColdFusion应用程序,我只想重新启动其中一个.

coldfusion

23
推荐指数
2
解决办法
2万
查看次数

什么导致HTTP 302?

问题出在标题中 - 导致HTTP 302的原因是什么?

header http

7
推荐指数
1
解决办法
1万
查看次数

邮件不使用SMTP通过SSL发送PHPMailer

我试图使用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)

php email ssl smtp phpmailer

6
推荐指数
1
解决办法
11万
查看次数

标签 统计

coldfusion ×1

email ×1

header ×1

http ×1

php ×1

phpmailer ×1

smtp ×1

ssl ×1