Php function to send mails

Nice Guy Posted in General Discussion 7 years ago

Hi,

I've installed OSSN and i was surprised that the email notifications wasn't sent after a registrer (i have an error message). My address email typed at the subscription was the good one (i checked)
After a little search, i discovered that my host hadn't any function mail()
He use of the php function email()

I would like to know if ossn it made to work with a email() function. If not, can I change it myself ? In this case, where to change it ?

Thanks a lot
Guy

Replies
German Michael Zülsdorff Replied 7 years ago

No, you don't have to start from scratch. Simply do yourself a favor a read the Ossn documentation.

> See https://www.opensource-socialnetwork.org/wiki/all

Frequently asked questions are answered there, in your case the last topic on page 1
"How to move Ossn installation to another server and domain"

Byelorussian Nice Guy Replied 7 years ago

Thanks for your answer. If i change of provider, i think i need to restart my network from 0 ? Is there possibility to change of host without to have to do all the installation again ?

German Michael Zülsdorff Replied 7 years ago

Install the SMTP component and configure it to establish a working mail channel by entering the same credentials you would normally use for sending mails with Mozilla Thunderbird, MS-Outlook, or any other mail client. In doubt ask your provider for the necessary details.

The component is available here:
https://github.com/opensource-socialnetwork/SMTP

In case your provider doesn't even allow SMTP connections, we cannot help you, and you should better change to someone offering World standard services.