textr 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +42 -1
- data/lib/textr/version.rb +1 -1
- metadata +3 -3
data/README.markdown
CHANGED
@@ -41,4 +41,45 @@ Simply call `Textr.send_sms` and pass the number with the hash.
|
|
41
41
|
|
42
42
|
$ rails c
|
43
43
|
>> Textr.send_sms :number => '123-456-7890', :body => 'Hello World!', :carrier => 'att'
|
44
|
-
=> #<Mail::Message:12345>
|
44
|
+
=> #<Mail::Message:12345>
|
45
|
+
|
46
|
+
### Transport
|
47
|
+
|
48
|
+
textr relies on Pony (https://github.com/benprew/pony) for mail transport which uses /usr/sbin/sendmail to send mail if it is available, otherwise it uses SMTP to localhost. To add custom SMTP config
|
49
|
+
|
50
|
+
rake textr:config:smtp
|
51
|
+
|
52
|
+
This will generate `config/textr_smtp.yml`, add your custom SMTP settings
|
53
|
+
|
54
|
+
development:
|
55
|
+
protocol: smtp
|
56
|
+
from: email@example.com
|
57
|
+
address: smtp.yourserver.com
|
58
|
+
port: 25
|
59
|
+
ssl: true
|
60
|
+
username: user
|
61
|
+
password: password
|
62
|
+
authentication: plain
|
63
|
+
domain: localhost.localdomain
|
64
|
+
|
65
|
+
test:
|
66
|
+
protocol: smtp
|
67
|
+
from: email@example.com
|
68
|
+
address: smtp.yourserver.com
|
69
|
+
port: 25
|
70
|
+
ssl: true
|
71
|
+
username: user
|
72
|
+
password: password
|
73
|
+
authentication: plain
|
74
|
+
domain: localhost.localdomain
|
75
|
+
|
76
|
+
production:
|
77
|
+
protocol: smtp
|
78
|
+
from: email@example.com
|
79
|
+
address: smtp.yourserver.com
|
80
|
+
port: 25
|
81
|
+
ssl: true
|
82
|
+
username: user
|
83
|
+
password: password
|
84
|
+
authentication: plain
|
85
|
+
domain: localhost.localdomain
|
data/lib/textr/version.rb
CHANGED
metadata
CHANGED