Whether you are creating a basic website or setting up a feature-rich online store, you are more than likely going to need to send an email or two from your PHP application. There are essentially two main methods for doing this and here they are explained for your reading pleasure.
I thought it might be useful to occasionally post some basic PHP tips that I wish I had been given when I first started programming. These will feature simple PHP methods that are aimed more at beginners than experienced PHP devs, but they may also serve as handy little reminders for the latter. To start the series I thought I’d give the simplest way to connect to a MySQL database using PHP.