How To Send Email From My Web Application

i have no idea how to send email from my yii application can any one tell me from basics

There are lots of extensions for sending email. Try this one:

i have a scenario in which when an item is uploaded to the database an email alert is sent to all the users of the database i don’t need any layout or another page for this, this will be done on back end… i am using gmail smtp through swift mailer but there are some problems… if some one have easy solution for this kindly give me the link…

Use this extension.This is wrapper for swiftmailer.

When you upload file to db.

Fetch all the users, to whom you want to sen email.

Set static body.

I think it is the simple solution, just do it step by step.

If you are using gmail SMTP don’t forget to set transport option to components array in config/main.php file.

i followed all the steps. i don’t understand $message->setBody function what it does and another error php is giving is

fsockopen(): unable to connect to ssl:// (Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)