我有一个应用程序,可以在运行时发送邮件。当我在我的电脑上运行这个应用程序时,电子邮件发送操作成功完成(我在visual studio和.exe上都运行了它),我收到了邮件,但是当我把我的应用程序作为.exe应用程序发送给我的朋友时(两个版本都试过了“发布”和“调试文件夹”),当他运行时,没有邮件发送和接收。这是我的代码;
public partial class Form1 : Form
{
public static String path = "C:\\Screenshot123.jpeg";
public Form1()
{
邮件发送错误:无法执行: /usr/sbin/sendmail
我使用debian服务器,文件权限是777(全部分配),所以我不能执行它,为什么?
//Create a new PHPMailer instance
$mail = new PHPMailer();
// Set PHPMailer to use the sendmail transport
$mail->isSendmail();
//Set who the message is to be sent from
$mail->setFrom('admin@test.com', 'te