I have a page, where people can sign up with name and mail to a waitinglist. When they write the info, the backend add it to my db and I have an admin-page to show the list. But I would like to recieve a mail, when a new user has submittet. I tried this:
$msg = "New user"; mail('email@example.com', 'New user', $msg);
But that didn't send anything. I know Joomla have its own mail-system with JFactory, but I don't understand how I should set it up.
Can anyone help me out?