Simple Mail

Hi. im new in yii framework… im just wondering how can i send strings to email? like i want to send

$name = ‘kevin’

$surname = ‘asdf’

how can i send those information in email using yii?? please help…

i always get this error >> mail() [<a href=‘function.mail’>function.mail</a>]: Failed to connect to mailserver at &quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set()

You can use mail function of php.

This is because you have wrong PHP configuration (php.ini). mail() function should work same as it is working without Yii. You can also use additional component (like and you will have additional features (attachments, MIME parts, etc)