For Developers By Developers
You can integrate Mailazy in minutes with your platform. Build and monitor your email solution on a trusted foundation with technical and strategic support when you need it the most.
Configure OTP emails with SMTP for CodeIgniter
OTP emails is an important component of any email communication strategy. In order to ensure delivery of OTP emails to your customers, reply on a trusted cloud-based email provider like Mailazy as a partner in your growth journey.
You need to complete these given prerequisites, you can skip the step if you have already completed.
Integrate Mailazy with CodeIgniter
CodeIgniter comes with an email sending library built in. It is important to use the correct end of lines using "crlf" => "\r\n" and "newline" => "\r\n".
load->library('email'); $this->email->initialize(array( 'protocol' => 'smtp', 'smtp_host' => 'smtp.mailazy.com', 'smtp_user' => 'access_key', 'smtp_pass' => 'access_secret', 'smtp_port' => 587, 'crlf' => "\r\n", 'newline' => "\r\n" )); $this->email->from('[email protected]', 'Your Name'); $this->email->to('[email protected]'); $this->email->subject('Email Test'); $this->email->message('Testing the email class.'); $this->email->send(); echo $this->email->print_debugger(); ?>
Send Emails with Mailazy
Mailazy is a simple email service to use, yet it provides so many benefits. Mailazy is the only simple transactional email service you’ll need. And the forever free plan lets you test drive it., Mailazy's team is well-equipped to help you quickly resolve your queries and issues. Try us for free today!Signup for Free Developer Documentation
Ready to get started?
For High-Volume custom requirements send us an email and we will come up with a detailed quote within 24 hours.Contact Us