We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Issue Setting Up Email (site not sending emails) | Forum

Jose Cuervo
Jose Cuervo Oct 23 '16
Hi, I recently setted up an oxwall site and it works fine but i'm having issues with the email functionality, neither the registration nor the mass mailing is working, and I have the following setup:

On the Test SMTP connection at site/admin/settings/smtp

2016-10-21 20:33:52    SERVER -> CLIENT: 220 ws66.host4g.com ESMTP Postfix (Ubuntu)
2016-10-21 20:33:52    CLIENT -> SERVER: EHLO mysite.com
2016-10-21 20:33:52    SERVER -> CLIENT: 250-ws66.myhost.com
                                         250-PIPELINING
                                         250-SIZE 209715200
                                         250-VRFY
                                         250-ETRN
                                         250-AUTH PLAIN LOGIN
                                         250-AUTH=PLAIN LOGIN
                                         250-ENHANCEDSTATUSCODES
                                         250-8BITMIME
                                         250 DSN
2016-10-21 20:33:52    CLIENT -> SERVER: AUTH LOGIN
2016-10-21 20:33:52    SERVER -> CLIENT: 334 VXNlcm5hbWU6
2016-10-21 20:33:52    CLIENT -> SERVER: bWFpbEB4aW5mcm9udGVyYXMuY29tLmFy
2016-10-21 20:33:52    SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2016-10-21 20:33:52    CLIENT -> SERVER: ZmV1czczNTg=
2016-10-21 20:33:52    SERVER -> CLIENT: 235 2.7.0 Authentication successful
SMTP test success. You can start sending emails using this connection.2016-10-21 20:33:52    CLIENT -> SERVER: QUIT
2016-10-21 20:33:52    SERVER -> CLIENT: 221 2.0.0 Bye

This seems to be ok..

Also, using a fresh configured phpmailer class in a custom folder in the server, Is Working (sends mail ok).
Sadly it is not working if I use my configured phpmailer class in the oxwall corresponding folder.
Example of the working code in custom phpmailer:

require 'PHPMailerAutoload.php';
$mail = new PHPMailer;

$mail->setFrom('mail@mysite.com', 'Admin');
$mail->addAddress('somemail@somesite.com', 'Email Receiver');
$mail->Subject  = 'First PHPMailer Message';
$mail->Body     = 'Hi! This is an e-mail sent through PHPMailer at mysite.com.';
if(!$mail->send()) {
  echo 'Message was not sent.';
  echo 'Mailer error: ' . $mail->ErrorInfo;
} else {
  echo 'Message has been sent to user';
}

Do you have any recommendations or suggestions?
Thanks, cheers.



ross Team
ross Oct 23 '16