1
miealex
php mail() problem
  • 2005/9/8 16:36

  • miealex

  • Just popping in

  • Posts: 96

  • Since: 2004/12/12


Hello people,

I'm posting this in hope that someone had the same problem. My hosting company doesn't allow me to have anonymous php mail() sent. So I have to somehow crack the code and put my user as the one that sends the email through php mail() function.

If anyone knows how to do this it will save my site.

I also tried to put SMTP, SMTPauth (+ user/pass) or sendmail as an option but it seems that it doesn't work either (I don't know if it is because of my host or is just XOOPS ... btw, I'm using 2.2.3 version of XOOPS).

Thanks for reading this,
Alex

2
adrock
Re: php mail() problem
  • 2005/9/8 18:59

  • adrock

  • Quite a regular

  • Posts: 291

  • Since: 2004/12/7


I've noticed some threads stating that 2.2.3 won't send e-mail to the webmaster but will send e-mail to other users.

Check that possability before completely ruling out any of the other options, as they may be working, but just not in the way you tried it.

My host has an alternate path to use for sendmail when calling it from PHP...you may want to ask about that as well.

(Out of curiosity, have you set-up a 2.0.13.1 or even a 2.2 site in another directory, to test against, to make sure that it isn't specifically a 2.2.3 issue?)
Affordable Web Hosting - Family - Fun!...and not always in that order!

3
miealex
Re: php mail() problem
  • 2005/9/8 20:33

  • miealex

  • Just popping in

  • Posts: 96

  • Since: 2004/12/12


My problem is I can't send email to anybody through the admin interface + the site can't send the activation link. This is like hell on Earth

I wanted to resend the activation links to my inactive users, the ones that didn't follow the activation process. Maybe some of them are not so familiar with Internet like for example .. we are.
I also think we lost at least 10 possible users in the last week just because of this mail thing

Of course ... I'll install a 2.0.13 on other dir so I can see if it works or not. If it doesn't => it is definetly a hosting problem.

The main thing is: can php mail() function inside XOOPS be customized? Let's say I want all emails to be sent from somename@server.com and this to be recognized by the server (php mail function sends an anonymous-like mail - from user "nobody").

Here is a return-receipt from my server's email system. It has been previously set up to NOT accept ANY php mail() requests from user "nobody".

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients
This is a permanent errorThe following address(esfailed:

  
r4zz3_1988@yahoo.com
    unrouteable mail domain 
"yahoo.com"

------ This is a copy of the messageincluding all the headers. ------

Return-
path: <alex@mielus.ro>
[
b]Receivedfrom nobody by server.romania-webhosting.com with local (Exim 4.52)[/b]
    
id 1EDTvs-0007bq-JB
    
for r4zz3_1988@yahoo.comFri09 Sep 2005 00:27:44 +0300
To
r4zz3_1988@yahoo.com
Subject
User activation key for razepsk1
Received
from phpmailer ([193.226.117.250]) 
    
by allcrews.mielus.ro with HTTP (phpmailer);
    
Fri9 Sep 2005 00:27:44 +0300
Date
Fri9 Sep 2005 00:27:44 +0300
From
: =?iso-8859-1?B?QWxsIFJPbWFuaWFuIENyZXdz?= <alex@mielus.ro>
Message-ID: <1b9c7f321fa8b567f56368bd0385fc7f@allcrews.mielus.ro>
X-Priority1
X
-Mailerphpmailer [version 1.65]
X-MailerPHP/4.3.11
MIME
-Version1.0
Content
-Transfer-Encoding8bit
Content
-Typetext/plaincharset="iso-8859-1"
SenderNobody <nobody@server.romania-webhosting.com>

Hello razepsk1,

Thanks for subscribing to All ROmanian Crews. As a registered member your can:
Send private messages among members
Participate in discussion boards
Get the latest news
Submit content
Muchmuch more....

The email address (r4zz3_1988@yahoo.comhas been used to register an account.

To become a member of All ROmanian Crewsplease confirm your
request by clicking on the link below
:

http://allcrews.mielus.rohttp://allcrews.mielus.ro/modules/profile/activate.php?op=actv&id=236&actkey=f26a6db4

-----------
Best Regards
All ROmanian Crews
(http://allcrews.mielus.ro/) 
alex@mielus.ro


Where should I modify the code? In /class/mail/xoopsmultimailer.php ? Or in /class/mail/phpmailer/class.phpmailer.php ? Or .......... where ? I'll modify it, no problem, but I don't know where.

Thanks,
Alex

4
miealex
Re: php mail() problem
  • 2005/9/10 18:42

  • miealex

  • Just popping in

  • Posts: 96

  • Since: 2004/12/12


Nobody?

5
MadChas
Re: php mail() problem
  • 2005/9/13 5:01

  • MadChas

  • Just popping in

  • Posts: 7

  • Since: 2005/8/25


Hi miealex,

It is not going to matter what you change in the XOOPS php.

Because of this:
Quote:
Received: from nobody by server.romania-webhosting.com with local (Exim 4.52)


This is your Webhost Mail Server and they would need to configure the server ports and exim mail system to support your php mail issue.

Your host may or may not be willing to change it due to security issues.

Sometimes, unless they have experienced tech support, they may not even know what to change for you.

If you need some XOOPS friendly hosting PM me.

6
miealex
Re: php mail() problem
  • 2005/9/13 19:03

  • miealex

  • Just popping in

  • Posts: 96

  • Since: 2004/12/12


I understood what you said and it might be true.

But it's not JUST a php mail() thing. I can't send it through sendmail, SMTP or SMTPauth options either

When I try to send an email from admin with SMTP or SMTPauth options activated here is what I get:

Quote:

Errors
SMTP Error: From address [gigwiki@yahoo.com] failed
Could not send mail to testing.
Sending message completed.


Any ideeas? Is it the mail server again?

Thanks, Alex.

PS: Thanks you so much for your reply!

7
Claus
Re: php mail() problem
  • 2005/9/13 20:26

  • Claus

  • Just popping in

  • Posts: 1

  • Since: 2005/9/13


so

I can tell you that my server is very ok

I just disable user nobody

I can tell you that I use phpmailer for contact forms and it works properly

I use invision board and it works properly

so my question is why XOOPS doesn't wotk properly with SMTPauth ?!?!

regards,
Claus

8
miealex
Re: php mail() problem
  • 2005/9/13 20:39

  • miealex

  • Just popping in

  • Posts: 96

  • Since: 2004/12/12


Claus that's a question we should ask XOOPS developers .. don't you think?

9
MadChas
Re: php mail() problem
  • 2005/9/15 9:44

  • MadChas

  • Just popping in

  • Posts: 7

  • Since: 2005/8/25


Quote:

miealex wrote:
I understood what you said and it might be true.

But it's not JUST a php mail() thing. I can't send it through sendmail, SMTP or SMTPauth options either

When I try to send an email from admin with SMTP or SMTPauth options activated here is what I get:

Quote:

Errors
SMTP Error: From address [gigwiki@yahoo.com] failed
Could not send mail to testing.
Sending message completed.


Any ideeas? Is it the mail server again?

Thanks, Alex.

PS: Thanks you so much for your reply!


Here's what I can tell you:
Exim generally runs SMTP thru port 25 on your server and guess what most webhosts close this off because spammers will relay thru it.

If that is the case then exim has to be configured and authorized for another port - usually port 26.

Don't know that it is a XOOPS problem.

I run XOOPS 2.2.2 with no problem. HOWEVER, I also control my own server:)

10
macmend
Re: php mail() problem
  • 2005/9/30 11:59

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


now this is interesting because I have a similar problem, I know my hosts have turned of "nobody"...however I have two XOOPS servers running on my domain at macmend.com one is public and one private. The private one cannot send mail whilst the public one can.

I have tried all sorts of things see this post
Free Mac Support

Ordinary Wisdom

apache server with php sshexec turned on
xoops version 2.0.18.1 & 2.3.1
php version 5.2.5
mysql version 5.0.45

Login

Who's Online

218 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 218


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits