Forgot password emails is an important component of any email communication strategy. In order to ensure delivery of Forgot password emails to your customers, reply on a trusted cloud-based email provider like Mailazy as a partner in your growth journey.
Configure Email API with PHP
The Mailazy platform helps you to send transactional emails seamlessly and track email deliverability and enables your applications to send messages via a simple HTTP REST interface. When you sign up for a free Mailazy account, you'll be able to send 350 emails per day forever. For more account options, see our pricing page.
Mailazy has recently released a PHP library that will allow you to send email from Mailazy email API. This library gives you full access to all of the features offered by our PHP Email API. APIs, in general, have better delivery speeds and can be executed in less than a second.
This doesn’t mean that sending email using SMTP is going to be slow, but API has less back and forth and reduces the potential steps for failure when sending an email.
The Mailazy PHP library has cURL or FSOCKOPEN dependencies.
It is easy to build, customize, and send emails, including email messages with to, from, cc, bcc, reply_to, attachments, and custom headers.
The library also has a ton of pre-written code examples to demonstrate more advanced topics like sending bulk mail, merge data, and other features.
You need to complete these given prerequisites, you can skip the step if you have already completed.
Sign up for a Mailazy account.
Complete Domain Authentication.
Generate the Mailazy Access Key
PHP installed and configured
Integration with PHP
Create a php file to setup a demo mailazy sending project with name
Install the mailazy package via composer, simple type the following in your terminal:
composer require mailazy/php-sdk
define('MAILAZY_APIKEY','xxxxxxxxxxxxxxxxxxxxxxxx');// mailazy apikey replace at "MAILAZY_APIKEY"
define('MAILAZY_APISECRET','xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');// mailazy apikey replace at "MAILAZY_APISECRET"
$mailazyClient = new mailazyAPI();
//Set CC address
//Set BCC address
Update Mailazy credentials with your Mailazy Account in above code.
index.php file and hit project URL
Now you will get email at your provided receipt email address.