HelioHost Posted February 21, 2018 Posted February 21, 2018 Username: infospac, Server: Johnny, Main domain: infospace.heliohost.org Dear manager I can not email by PHPMailer on this server. How can I use PHPMailer ? Kindly note. Regards/Alex
wolstech Posted February 21, 2018 Posted February 21, 2018 I can't see any reason why it wouldn't work, but I'm not sure if anyone's ever tried that specific library. We do support the mail() function. Are you trying to use an external mail server? Also, be aware that emails are limited to 50 per day. Sending too many will get you suspended.
michaeltim Posted February 22, 2018 Posted February 22, 2018 <?php require 'PHPMailerAutoload.php'; $mail = new PHPMailer; $mail->setFrom('from@example.com', 'Your Name'); $mail->addAddress('myfriend@example.net', 'My Friend'); $mail->Subject = 'First PHPMailer Message'; $mail->Body = 'Hi! This is my first e-mail sent through PHPMailer.'; if(!$mail->send()) { echo 'Message was not sent.'; echo 'Mailer error: ' . $mail->ErrorInfo; } else { echo 'Message has been sent.'; } I hope that this code useful to you, thank you
Recommended Posts