PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I would like to know how I can send an email from my php code. I am aware there is a function called mail(), but there are no Username and Password settings. I am trying to use gmail as my SMTP. Can anyone help? I need to know how to configure for an external email server such as Gmail
Generally mail() will not require a username or password to be specified directly from a host account. I suggest testing it in a small script or verifying it with your host.