Already registered? Log in
Don't have an account? Register here
This guide provides a simple script to send an email using Email Class.
Please change the following variables in this guide:
Sender Name: the sender’s name.
firstname.lastname@example.org: the sender’s email address.
Recipient Name: the recipient’s name.
email@example.com: the recipient’s email address.
USERNAME: your SMTP username.
PASSWORD: your SMTP password.
Create a file application/config/email.php with the following content:
Add the following code in your controller:
Try SMTP2GO free for as long as you like:Try SMTP2GO Free → Paid plans available for over 1,000 emails/month.