does ini_set SMTP work in safe mode

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dev_007
Forum Newbie
Posts: 2
Joined: Sat Oct 22, 2011 4:43 am

does ini_set SMTP work in safe mode

Post by dev_007 »

Hi

For sending email I use:

Code: Select all

ini_set("SMTP", "mail.abc.com");

@mail($email,$subject,$body_message,...)

It seems not to work anymore, as my hosting was transferred to php with safe_mode set ON. I can't change safe_mode, so my question is if ini_set for SMTP is not working in safe mode?

If not, is there another way I can send email, using just php_code and not other ways?

Thanx a lot!
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: does ini_set SMTP work in safe mode

Post by Celauran »

You shouldn't need to set SMTP. Does their mail() function not work?
dev_007
Forum Newbie
Posts: 2
Joined: Sat Oct 22, 2011 4:43 am

Re: does ini_set SMTP work in safe mode

Post by dev_007 »

No, it doesn't work. I tried with and without setting SMTP.

Their support is not helping, either.

Not sure what else I can try...
Post Reply