1
Soniaro
rplace mail() to email()
  • 2005/8/18 23:44

  • Soniaro

  • Just popping in

  • Posts: 3

  • Since: 2005/8/18


in my hosting service , The mail() function is disabled and replaced by email()
anyone say how to modify XOOPS for change mail() to email() please?

thanks

2
skalpa
Re: rplace mail() to email()
  • 2005/8/19 0:20

  • skalpa

  • Quite a regular

  • Posts: 300

  • Since: 2003/4/16


lol
A free user...
Here are the things to change I could find.
Haven't tested (just checked the source files), so no garantee given.
Maybe you can find more info about this on the french support site forums, I'm sure you're not the first XOOPS user using this hosting service.
http://www.frxoops.org/

In /class/mail/phpmailer/phpmailer.php
Look for the function mail_send, and replace both calls:

if ($this->Sender != "" && PHP_VERSION >= "4.0.5")
        {
            
// The fifth parameter to mail is only available in PHP >= 4.0.5
            
$params sprintf("-oi -f %s"$this->Sender);
            
$rt = @[b]mail[/b]($to$this->encode_header($this->Subject), $body$header$params);
        }
        else
        {
            
$rt = @[b]mail[/b]($to$this->encode_header($this->Subject), $body$header);
        }


Then configure XOOPS to use mail(). Also, don't forget you'll have to re-apply this change if you ever install a new version that updates this file .

skalpa.>
Any intelligent fool can make things bigger, and more complex. It takes a touch of genius, a lot of courage, to move in the opposite direction.
Two things are infinite: the universe and human stupidity; and I'm not sure about the 1st one (A.Einstein)

3
Soniaro
Re: rplace mail() to email()
  • 2005/8/19 10:28

  • Soniaro

  • Just popping in

  • Posts: 3

  • Since: 2005/8/18


Thanks,
i have try and seam to not working also :'(
i have try smtp with my provider smtp account but not working also :'(

4
hervet
Re: rplace mail() to email()
  • 2005/8/20 11:30

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


question already asked an replyed on XOOPS France !
Thank you VERY much.

Login

Who's Online

374 user(s) are online (276 user(s) are browsing Support Forums)


Members: 0


Guests: 374


more...

Donat-O-Meter

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

Latest GitHub Commits