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 "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
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 http://www.yiiframework.com/extension/mail/) and you will have additional features (attachments, MIME parts, etc)