hi all,
I"m new to yii.. I'm trying to send email to adminEmail (which is in config/main.php). I'm trying this on mamp with yii.
i've downloaded emailer extension and added this in components array of config/main.php.
in my controller i've written like this
$message = 'msg msg testing';
Yii::app()->mailer->Host = 'smtp.yiiframework.com';
Yii::app()->mailer->IsSMTP();
Yii::app()->mailer->FromName = 'dev';
Yii::app()->mailer->From = 'dev@dev.com';
//Yii::app()->mailer->AddReplyTo('dev@dev.com');
Yii::app()->mailer->AddAddress('dev@dev.com');
Yii::app()->mailer->Subject = 'ding ding sub';
Yii::app()->mailer->Body = $message;
Yii::app()->mailer->Send();
its not working from my local machine ...whats going wrong here??
im working on mamp and i did not change anything in php.ini file..do i need to change any??
Page 1 of 1
Unable To Send Email With Mamp On Yii i'm trying to send mail to admin when user saves a image
#2
Posted 13 December 2012 - 08:53 AM
It won't work on your local machine unless you install local mail server or to be more strict SMTP server.
My ChromeExtension:
https://chrome.googl...hchpaijgfhnpdmp
https://chrome.googl...pbjblmbdnblkbac
My websites:
https://4mstash.com
https://chrome.googl...hchpaijgfhnpdmp
https://chrome.googl...pbjblmbdnblkbac
My websites:
https://4mstash.com
Share this topic:
Page 1 of 1