Jump to content

Tzahi_ben_artzi

New Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Tzahi_ben_artzi

  1. I may be retarded, but i cant find the docs regarding creating the smtp server
  2. ok did that, anyways now it says that the message was sent, but i didn't get it to my folder or spam folder. Code: <?php require '/etc/phpmail/phpmailer/phpmailerautoload.php'; $mail = new PHPMailer; $mail->isSendmail(); $mail->setFrom('Admin@xroleplaycommunity.com', 'First Last'); $mail->addAddress('t@bena.co.il'); $mail->Subject = 'PHPMailer sendmail test'; $mail->Body = 'This is a plain-text message body'; if (!$mail->send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Message sent!"; } ?>
  3. Hello. I am trying to use PHPMailer, but for some reason it doesn't print or do anything. THis is my code: <?php echo "yoo i got here already (first)"; #require '/etc/phpmail/phpmailer/phpmailerautoload.php'; echo "test"; $mail = new PHPMailer; $mail->isSendmail(); $mail->setFrom('@@@@', 'First Last'); $mail->addAddress('@@@@', 'John Doe'); $mail->Subject = 'PHPMailer sendmail test'; $mail->Body = 'This is a plain-text message body'; echo "yoo i got here already (second)"; if (!$mail->send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Message sent!"; } ?> If i comment the required, it'll echo the test, if i dont comment out the require, it wont echo test. I dont know whats the problem, and the link to the file is correct, tried it out my self.
  4. Hey guys. I am currently hosting my website on my own dedicated server, and i am trying to use the mail() function, but for some reason it doesn't send the email. This is my php code: the *** are real addresses. The from is admin@host.com <?php $to = "****"; $subject = "Test mail"; $message = "email message."; $from = "***"; $headers = "From:" . $from; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.