Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted
 

 

 

 

 

 

 

 

 

<?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
Guest
This topic is now closed to further replies.
×
×
  • Create New...