Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

PHP mail() issue


ghost's Avatar
0 0

I've got a problem with sending mails with the mail() function. I know how to use it and and the syntax is right. But the mail never arrives. Is there anything I have to change in the config file?


Uber0n's Avatar
Member
0 0

In your php.ini file, check the [mail function] part

If you have a local server:

[mail function] sendmail_path = put it here, for example /usr/sbin/sendmail

If you have a remote server:

[mail function] SMTP = put server here, for example smtp.isp.net sendmail_from = from adress goes here, like me@isp.net


ghost's Avatar
0 0

Does anyone know a public mail server that I could use for sending the mails?


ghost's Avatar
0 0

You could always set up your own, there are plenty of free mail server programs out there.


ghost's Avatar
0 0

Check the Spam/Junk Email folders lol.