Skip to content

Commit

Permalink
Add Mail snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksamson committed Feb 15, 2016
1 parent 7485ecc commit 4c68650
Show file tree
Hide file tree
Showing 7 changed files with 168 additions and 0 deletions.
24 changes: 24 additions & 0 deletions snippets/Mail/Mail-later.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<snippet>
<content><![CDATA[
Mail::later(${1:5}, '${2:Html.view}', ${3:\$data}, function (${4:\$message}) {
${4}->from(${5:'[email protected]'}, ${6:'John Doe'});
${4}->sender(${7:'[email protected]'}, ${8:'John Doe'});
${4}->to(${9:'[email protected]'}, ${10:'John Doe'});
${4}->cc(${11:'[email protected]'}, ${12:'John Doe'});
${4}->bcc(${13:'[email protected]'}, ${14:'John Doe'});
${4}->replyTo(${15:'[email protected]'}, ${16:'John Doe'});
${4}->subject(${17:'Subject'});
${4}->priority(${18:3});
${4}->attach(${19:'pathToFile'});
});
]]></content>
<tabTrigger>Mail::later</tabTrigger>
<scope>source.php</scope>
<description>Queue a new e-mail message for sending after (n) seconds.</description>
</snippet>
24 changes: 24 additions & 0 deletions snippets/Mail/Mail-laterOn.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<snippet>
<content><![CDATA[
Mail::queueOn(${1:'queue-name'}, ${2:5}, '${3:Html.view}', ${4:\$data}, function (${5:\$message}) {
${5}->from(${6:'[email protected]'}, ${7:'John Doe'});
${5}->sender(${8:'[email protected]'}, ${9:'John Doe'});
${5}->to(${10:'[email protected]'}, ${11:'John Doe'});
${5}->cc(${12:'[email protected]'}, ${13:'John Doe'});
${5}->bcc(${14:'[email protected]'}, ${15:'John Doe'});
${5}->replyTo(${16:'[email protected]'}, ${17:'John Doe'});
${5}->subject(${18:'Subject'});
${5}->priority(${19:3});
${5}->attach(${20:'pathToFile'});
});
]]></content>
<tabTrigger>Mail::laterOn</tabTrigger>
<scope>source.php</scope>
<description>Queue a new e-mail message for sending after (n) seconds on the given queue.</description>
</snippet>
24 changes: 24 additions & 0 deletions snippets/Mail/Mail-plain.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<snippet>
<content><![CDATA[
Mail::plain('${1:plainText.view}', ${2:\$data}, function (${3:\$message}) {
${3}->from(${4:'[email protected]'}, ${5:'John Doe'});
${3}->sender(${6:'[email protected]'}, ${7:'John Doe'});
${3}->to(${8:'[email protected]'}, ${9:'John Doe'});
${3}->cc(${10:'[email protected]'}, ${11:'John Doe'});
${3}->bcc(${12:'[email protected]'}, ${13:'John Doe'});
${3}->replyTo(${14:'[email protected]'}, ${15:'John Doe'});
${3}->subject(${16:'Subject'});
${3}->priority(${17:3});
${3}->attach(${18:'pathToFile'});
});
]]></content>
<tabTrigger>Mail::plain</tabTrigger>
<scope>source.php</scope>
<description>Send a new message when only a plain part.</description>
</snippet>
24 changes: 24 additions & 0 deletions snippets/Mail/Mail-queue.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<snippet>
<content><![CDATA[
Mail::queue('${1:Html.view}', ${2:\$data}, function (${3:\$message}) {
${3}->from(${4:'[email protected]'}, ${5:'John Doe'});
${3}->sender(${6:'[email protected]'}, ${7:'John Doe'});
${3}->to(${8:'[email protected]'}, ${9:'John Doe'});
${3}->cc(${10:'[email protected]'}, ${11:'John Doe'});
${3}->bcc(${12:'[email protected]'}, ${13:'John Doe'});
${3}->replyTo(${14:'[email protected]'}, ${15:'John Doe'});
${3}->subject(${16:'Subject'});
${3}->priority(${17:3});
${3}->attach(${18:'pathToFile'});
});
]]></content>
<tabTrigger>Mail::queue</tabTrigger>
<scope>source.php</scope>
<description>Queue a new e-mail message for sending.</description>
</snippet>
24 changes: 24 additions & 0 deletions snippets/Mail/Mail-queueOn.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<snippet>
<content><![CDATA[
Mail::queueOn(${1:'queue-name'}, '${2:Html.view}', ${3:\$data}, function (${4:\$message}) {
${4}->from(${5:'[email protected]'}, ${6:'John Doe'});
${4}->sender(${7:'[email protected]'}, ${8:'John Doe'});
${4}->to(${9:'[email protected]'}, ${10:'John Doe'});
${4}->cc(${11:'[email protected]'}, ${12:'John Doe'});
${4}->bcc(${13:'[email protected]'}, ${14:'John Doe'});
${4}->replyTo(${15:'[email protected]'}, ${16:'John Doe'});
${4}->subject(${17:'Subject'});
${4}->priority(${18:3});
${4}->attach(${19:'pathToFile'});
});
]]></content>
<tabTrigger>Mail::queueOn</tabTrigger>
<scope>source.php</scope>
<description>Queue a new e-mail message for sending on the given queue.</description>
</snippet>
24 changes: 24 additions & 0 deletions snippets/Mail/Mail-raw.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<snippet>
<content><![CDATA[
Mail::raw('${1:plain text message}', function (${2:\$message}) {
${2}->from(${3:'[email protected]'}, ${4:'John Doe'});
${2}->sender(${5:'[email protected]'}, ${6:'John Doe'});
${2}->to(${7:'[email protected]'}, ${8:'John Doe'});
${2}->cc(${9:'[email protected]'}, ${10:'John Doe'});
${2}->bcc(${11:'[email protected]'}, ${12:'John Doe'});
${2}->replyTo(${13:'[email protected]'}, ${14:'John Doe'});
${2}->subject(${15:'Subject'});
${2}->priority(${16:3});
${2}->attach(${17:'pathToFile'});
});
]]></content>
<tabTrigger>Mail::raw</tabTrigger>
<scope>source.php</scope>
<description>Send a new message when only a raw text part.</description>
</snippet>
24 changes: 24 additions & 0 deletions snippets/Mail/Mail-send.sublime-snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<snippet>
<content><![CDATA[
Mail::send('${1:Html.view}', ${2:\$data}, function (${3:\$message}) {
${3}->from(${4:'[email protected]'}, ${5:'John Doe'});
${3}->sender(${6:'[email protected]'}, ${7:'John Doe'});
${3}->to(${8:'[email protected]'}, ${9:'John Doe'});
${3}->cc(${10:'[email protected]'}, ${11:'John Doe'});
${3}->bcc(${12:'[email protected]'}, ${13:'John Doe'});
${3}->replyTo(${14:'[email protected]'}, ${15:'John Doe'});
${3}->subject(${16:'Subject'});
${3}->priority(${17:3});
${3}->attach(${18:'pathToFile'});
});
]]></content>
<tabTrigger>Mail::send</tabTrigger>
<scope>source.php</scope>
<description>Send a new message using a view.</description>
</snippet>

0 comments on commit 4c68650

Please sign in to comment.