Skip to content
Browse files

added send_mail snippet

git-svn-id: http://svn.textmate.org/trunk/Bundles/Python Django.tmbundle@9435 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 0fc263f commit d063e55911a4b3d4d09da6079f28a52121f2bf28 Paul Bissex committed
Showing with 18 additions and 0 deletions.
  1. +17 −0 Snippets/send_mail.tmSnippet
  2. +1 −0 info.plist
View
17 Snippets/send_mail.tmSnippet
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>mail.send_mail("${1:Subject}", "${2:Message}", "${3:from@example.com}", ${4:["to@example.com"]}${5:, fail_silently=True})
+</string>
+ <key>name</key>
+ <string>send_mail</string>
+ <key>scope</key>
+ <string>source.python.django</string>
+ <key>tabTrigger</key>
+ <string>sendmail</string>
+ <key>uuid</key>
+ <string>97AF7101-45AD-4286-8AA2-4F43E63EB452</string>
+</dict>
+</plist>
View
1 info.plist
@@ -75,6 +75,7 @@
<string>Python Django</string>
<key>ordering</key>
<array>
+ <string>97AF7101-45AD-4286-8AA2-4F43E63EB452</string>
<string>311C17C5-A556-48D4-B91F-DD28BB0CF4E7</string>
<string>F497C0D3-812E-4339-8260-8D906337023B</string>
<string>449AB31C-BAB7-4D30-AF04-6A070CBE4EF4</string>

0 comments on commit d063e55

Please sign in to comment.
Something went wrong with that request. Please try again.