Jump to content

my website can't send emails


acidglitter

Recommended Posts

I tried the regular mail() function, and a script that sends messages to an email address (that worked the last time i checked.. like half a year ago) and neither of them work. I don't think its a problem with the coding, I think its more like the settings on my site has changed somehow and maybe I have to fix it so I can send emails from my site? I'm not sure if that makes sense, but if it does, is that possible and how can I fix this?

Link to comment
Share on other sites

first check for stupid errors... wrong email addresses etc.

then check if the function is completing... add an "or die('mail error');" after the mail function

if that fails, check that your IMAP/SMTP/POP server is running (if you cant, contact the administrator to see whats enabled)

 

if it turns out that they wont allow mail... then sorry there isnt much that you can do.

Link to comment
Share on other sites

I really don't know much about this kind of stuff. How can I find my php.ini file? And my server has cpanel, and I copied this from it if its any help...

 

General server information:

Operating system  Linux

Service Status Click to View

Kernel version 2.6.21.5-grsec-IS

Machine Type i686

Apache version 1.3.37 (Unix)

PERL version 5.8.7

Path to PERL /usr/bin/perl

Path to sendmail /usr/sbin/sendmail

Installed Perl Modules Click to View

PHP version 4.4.7

MySQL version 4.1.22-standard

cPanel Version 11.6.0-CURRENT 15076

Theme Netrillium CP v2.1

Documentation Click to View

Link to comment
Share on other sites

Try to telnet your server on port 25, if u get a wellcome message it means that the mail server is ok.

Or try to check if u have SSH on the server

service sendmail status

 

if the status is running it means that it's ok, than try to restart it

service sendmail restart

 

if it is stopped since the beginning then start it

service sendmail start

Link to comment
Share on other sites

Try to telnet your server on port 25, if u get a wellcome message it means that the mail server is ok.

Or try to check if u have SSH on the server

service sendmail status

 

if the status is running it means that it's ok, than try to restart it

service sendmail restart

 

if it is stopped since the beginning then start it

service sendmail start

 

I don't even know how to start that... I don't know how to telnet or how it could be on port 25...

Could someone tell me where to start like I'm an old person that has no idea about computers? Because I have no clue how to do any of this stuff.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.