我收到以下错误:"解析服务此请求所需的资源时出错.请查看以下特定的解析错误详细信息并适当修改源文件."
Parser Error Message: `Could not load type 'nadeem.MvcApplication'`.
Source Error: Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="nadeem.MvcApplication" Language="C#" %>
Run Code Online (Sandbox Code Playgroud) 我正在使用XAMPP,当我尝试发送电子邮件时,localhost
我收到以下警告:
警告::
stream_socket_enable_crypto()
此流C:\xampp\htdocs\12work\class.smtp.php
在第197行不支持SSL /加密
这是我的代码:
$mail = new PHPMailer();
$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "smtp.gmail.com"; // specify main and backup server
$mail->SMTPAuth = true;
$mail->Port = 25;
$mail->SMTPSecure = "tls";
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "sheikh.abm@gmail.com"; // SMTP username
$mail->Password = "mypassword"; // SMTP password
$mail->From = "sheikh.abm@gmail.com"; //do NOT fake header.
$mail->FromName = "MailMan";
$mail->AddAddress("sheikh.abm@gmail.com"); // Email on which you want to send mail
$mail->IsHTML(true); …
Run Code Online (Sandbox Code Playgroud)