Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
85c26332
Commit
85c26332
authored
Nov 07, 2013
by
Paul Klimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc comments for "MessageInterface" and "MailerInterface" updated.
parent
104cfd7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
MailerInterface.php
framework/yii/mail/MailerInterface.php
+9
-0
MessageInterface.php
framework/yii/mail/MessageInterface.php
+2
-2
No files found.
framework/yii/mail/MailerInterface.php
View file @
85c26332
...
@@ -9,6 +9,15 @@ namespace yii\mail;
...
@@ -9,6 +9,15 @@ namespace yii\mail;
/**
/**
* MailerInterface is an interface, which any mailer should apply.
* MailerInterface is an interface, which any mailer should apply.
* Mailer creates and sends messages. Also it allows composition of the message
* body via view rendering:
* ~~~php
* Yii::$app->mail->compose('contact/html', ['contactForm' => $form])
* ->from('from@domain.com')
* ->to($form->email)
* ->subject($form->subject)
* ->send();
* ~~~
*
*
* @see MessageInterface
* @see MessageInterface
*
*
...
...
framework/yii/mail/MessageInterface.php
View file @
85c26332
...
@@ -16,8 +16,8 @@ namespace yii\mail;
...
@@ -16,8 +16,8 @@ namespace yii\mail;
* ->from('from@domain.com')
* ->from('from@domain.com')
* ->to('to@domain.com')
* ->to('to@domain.com')
* ->subject('Message Subject')
* ->subject('Message Subject')
* ->
renderText('text/view
')
* ->
textBody('Plain text content
')
* ->
renderHtml('html/view
')
* ->
htmlBody('<b>HTML content</b>
')
* ->send();
* ->send();
* ~~~
* ~~~
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment