Page 1 of 1

does ini_set SMTP work in safe mode

Posted: Sat Oct 22, 2011 5:45 am
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!

Re: does ini_set SMTP work in safe mode

Posted: Sat Oct 22, 2011 7:15 pm
by Celauran
You shouldn't need to set SMTP. Does their mail() function not work?

Re: does ini_set SMTP work in safe mode

Posted: Sun Oct 23, 2011 3:33 am
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...