I want to add a feature to the mailing list but i'm unsure how to do it.
I want to be able to as soon as the user registers it will receive a welcome message.
I know I have to use mail function lol but how to check if a new user is registered and send an email.
or the best way is too add that mail in the registration process? something like
if no errors register and send mail
precisely what I was refering.
You do the error checking and if no errors are found you then can send an welcome message to the user.
I was asking if that's the best way to send an welcome message to a newly registered user or the server that you are using has to have that option enabled in order to do that.
Well, it is the only way I know of to send an email through PHP, but yes, it does require some tinkering on some servers. Most servers have this enabled by default, but if you're using a free host ( or even some payed hosts ) there might be a chance that they block or limit the email function to prevent spam.