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

Emails not working | Forum

James
James Apr 8 '15
Whenever an email should be sent from my site, it isn't.

I am currently using PHP (or whatever the non-SMTP option is) to send emails and none of them are getting to people's inboxes.


How can I work on fixing this?

The Forum post is edited by James Apr 8 '15
James
James Apr 11 '15
Those don't help me.


My cron job is working, I don't use SMTP, and the emails aren't being caught by spam filters since they aren't being sent in the first place.


I've even disabled most of my plugins to see if that would fix it, but it hasn't.

DeFender
DeFender Apr 11 '15
try to use smtp
dave Leader
dave Apr 11 '15
Is your host possibly blocking your email as a limit rule?


Also are you using a plugin to send mail or the core mail option that comes with the install?


When you register as a member as a test, do you get the confirmation email?  

(it could take up to 30min if you have hotmail or msn sometimes)


If  you have the admin notify plugin, do you get the notification that you have a new member in your admin email address?

The Forum post is edited by dave Apr 11 '15
James
James Apr 12 '15

Quote from dave Is your host possibly blocking your email as a limit rule?


Also are you using a plugin to send mail or the core mail option that comes with the install?


When you register as a member as a test, do you get the confirmation email?  

(it could take up to 30min if you have hotmail or msn sometimes)


If  you have the admin notify plugin, do you get the notification that you have a new member in your admin email address?

PHP mail isn't blocked on my other websites that run on the same host. So no, PHP mail ins't blocked.


I use the core  mail option.


No confirmation email is received when signing up.


And I don't have that plugin.

dave Leader
dave Apr 12 '15
do you know if your using an SPF record on this domain?  Do you know what that is?
James
James Apr 12 '15
If that is a DNS thing, then no there isn't. However, I have no idea what that is.
dave Leader
dave Apr 12 '15
SPF records are a way to help stop spam and limit sending emails to a particular ip.  Depending on your server setup it can interfere with the domain mail sending.  Im pretty certain you dont have one, if you did you would prob know about it.. 


But just in case (just to eliminate this possibly)run your domain thru this and tell me if it shows SPF record or not. 


 http://mxtoolbox.com/spf.aspx

James
James Apr 12 '15
It says there is no SPF record.
dave Leader
dave Apr 12 '15
cool.... 


sorry just have  to eliminate the obvious does your host server meet all these specs. 

  • Linux/Unix/Windows
  • Apache 2 or higher with:
    • mod_rewrite on
    • mod_security (strict configurations) off
  • PHP 5.2.6 or higher with:
    • cURL on
    • fopen on
    • register_globals off
    • safe_mode off
    • suPHP off
    • suApache off
    • suhosin off
  • PHP modules:
    • PDO
    • DOM
    • mbstring
    • zip
    • zlib
    • ftp
    • json
  • MySQL 5.0 or higher
  • GD Library 2 with FreeType support
  • Mail server (SendMail, Exim or other)
  • Cron


dave Leader
dave Apr 12 '15
also do you have the oxwall cron running every minute?
James
James Apr 12 '15
For the mail server part, does you just mean if it can collect emails sent to my email addresses?


EDIT: Yes, the cron job is running every minute.

The Forum post is edited by James Apr 12 '15
James
James Apr 12 '15
Yes, it appears that my host has all of that.
dave Leader
dave Apr 12 '15
ok thats great...   is your admin smtp page blank and the checkmark not checked
James
James Apr 12 '15
It is unchecked, but does have the fields filed in from when I tried to use the Gmail one.
dave Leader
dave Apr 12 '15
as long as its unchecked it should be ok.. 


create a php file and put this code it in.  and then fill in your two different emails at the top, thats it, save it and run it using the broswer and let me know if you get the email. 



// fill in this part only 

$from_email = "put a different email address here";

$to="put your email here";


//leave this part alone

$message = "Hi, this is just a test of the system email to see if its working or not";

$sitefrom = " Your domain email";

$subject = "this is a test of the email system";

$headers = "MIME-Version: 1.0\n"; 

$headers .= "Content-type: text/html; 

charset=iso-8859-1\n"; 

$headers .= "X-Priority: 3\n"; 

$headers .= "X-MSmail-Priority: Normal\n"; 

$headers .= "X-mailer: php\n"; 

$headers .= "From: $from_email\n";

$headers .= "Reply-To: $from_email\n"; 

$extraparam ="-f $mail";
$mesleader = "You have received the following message from".$sitefrom."<br /><br />";

$message = $mesleader.$message;


$mail_sent=mail($to,$subject,$message,$headers,$extraparam);



dont forget the opening and closing php tags 

The Forum post is edited by dave Apr 12 '15
dave Leader
dave Apr 12 '15
there refresh your browser that looks better.. 
James
James Apr 12 '15
No email has been received and I tried it with two different from and to addresses.
dave Leader
dave Apr 12 '15
just to ease my mind you did put the php tags right. 
Pages: 1 2 »