Email Confirmation With Send Grid

Okay i’m now searching for a way for sending email confirmation in my project with google smtp but it’s works sometimes only. i’m trying to add sendgrid in my app but it’s not working correctly so can anyone suggest a way to make this ?