Author Topic: Any email problem ?  (Read 6906 times)

0 Members and 1 Guest are viewing this topic.

Offline Alfi

  • Newbie
  • *
  • Posts: 34
    • View Profile
Any email problem ?
« on: March 18, 2014, 09:20:19 PM »
When I'm sending emails to my registrered user from ACP I have got such info:
Warning: mail(/tmp/phpmail.log): failed to open stream: Permission denied in /home/accounts_w/wikmail/public_html/includes/email.php on line 171 E-mails sent.

What it mean ?

Offline Jan-Lukas

  • Addicted member
  • ******
  • Posts: 1.289
    • View Profile
    • Discover the New World of Kindersurprise
Re: Any email problem ?
« Reply #1 on: March 19, 2014, 12:16:47 AM »
Danke Harald




Rembrandt

  • Guest
Re: Any email problem ?
« Reply #2 on: March 19, 2014, 07:38:58 AM »
Hi!

Es kann auch ein Sicherheitsproblem seitens der Provider sein.
Oft tritt der Fehler auf wenn das PHP Script und der Mail Server sich in unterschiedlichen Domains befindet.
Die meisten Mail Server lassen einen Mailversand von außerhalb der Domain nicht zu.

mfg Andi

Offline Alfi

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Any email problem ?
« Reply #3 on: March 19, 2014, 07:17:55 PM »
Jan-Lukas, I read the link you recommended me. I can't see/read/modify my php.ini. I can't find such file but found in FAQ that my server provider i have website don't allow modify php.in. But I create email_test.php and test it. I have got "ok" answer. I send email to myself only and have got this same error. I don't know why it show on this line:
 
 return (mail($this->to$this->subject$this->body$this->create_header())) ? 0;

What's wrong with this line ? How fix this problem ?

Rembrandt, my email I'm sending mails are from this same domain I have website on (hope I good understand your sugesion, because I don't German)

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: Any email problem ?
« Reply #4 on: March 19, 2014, 11:06:05 PM »
I don't know allot about the e-mail workings in PHP but I do remember that in order to get my site to work. I had to turn on "php mail" in my domain control panel for my domain before it would send any e-mails.
If you are getting an "OK" message on the email_test.php, Did you replace the 'anyemail@anydomain.com' with your e-mail address? When you did, did you receive an e-mail in your inbox from the test file?
Also, I noticed in your first post, it shows a /tmp/phpmail.log Can you post what it says in that log file?
Buddy Duke
www.budduke.com

Offline Alfi

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Any email problem ?
« Reply #5 on: March 20, 2014, 01:08:56 AM »
budduke, yes, I did replace the anyemail@anydomain.com to mail email I wanted sent the test to. I check it two time - for email addres from this same domain as my website and second time - the other one. Both give "Ok" answer. I have got email from the test to my inbox without any problem - even two for each tries - one as for user and second as copy for admin (sender).
However I can't post phpmail.log from /tmp/ directory. I check all tmp folders. Two of them are completly empty. One (in root directory) have only sess__'and here a lot of different signs' files.

----
Problem resolved. I notice that in ACP on 'Settings' ---> Use SMTP server I have option 'no' (don't know why). I check it for 'yes' and all work fine now.

Thank you very much for all who would help me with this problem.
« Last Edit: March 20, 2014, 01:24:17 AM by Alfi »