• May 31, 2026 Send Mail From Server Php TPSecure = 'tls'; // or 'ssl' $mail->Port = 587; // or 465 $mail->setFrom('sender@example.com', 'Sender Name'); $mail->addAddress('recipient@example.com', 'Recipient Name'); $mail->Subject = 'PHPMailer Test Subject via smt BY Lois Adams