this is a build-in library for send email
you can optimize your code with this library