I have been trying to send email for registration, invitations and so on.
On local development, emails get sent. However once on the server no mails arrive.
I installed postfix. I was trying to setup a mail server but gave up. So currently, If I type in terminal
peter# mail [email protected]
the email arrives. However, this does not send email:
$res = mail('[email protected]', 'subj', 'bodddd');
not only that, but echoing $res
gives nothing. Neither true
nor false
.
What and how do i do to make it working?
thanx