====== Unterschiede ====== Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
|
web.php [2015/08/23 17:12] 192.168.100.51 created |
web.php [2015/08/23 17:17] (aktuell) |
||
|---|---|---|---|
| Zeile 16: | Zeile 16: | ||
| } | } | ||
| </code> | </code> | ||
| + | |||
| + | ===== Mailer ===== | ||
| + | |||
| + | Swiftmailer installieren über Composer? | ||
| + | <code php> | ||
| + | 'mail' => [ | ||
| + | 'class' => 'yii\swiftmailer\Mailer', | ||
| + | // send all mails to a file by default. You have to set | ||
| + | // 'useFileTransport' to false and configure a transport | ||
| + | // for the mailer to send real emails. | ||
| + | 'viewPath' => '@app/mail', | ||
| + | 'useFileTransport' => false,//set this property to false to send mails to real email addresses | ||
| + | //comment the following array to send mail using php's mail function | ||
| + | 'transport' => [ | ||
| + | 'class' => 'Swift_SmtpTransport', | ||
| + | 'host' => 'smtp.mailgun.org', | ||
| + | 'username' => 'postmaster@example.ch', | ||
| + | 'password' => 'ewfwefewhiu', | ||
| + | 'port' => '587', | ||
| + | 'encryption' => 'tls', | ||
| + | ], | ||
| + | ], | ||
| + | </code> | ||
| + | |||
| + | http://www.yiiframework.com/doc-2.0/yii-swiftmailer-mailer.html | ||