-
Notifications
You must be signed in to change notification settings - Fork 1
/
sms fu
300 lines (284 loc) · 7.25 KB
/
sms fu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
plugin
==================================================
https://github.com/brendanlim/sms-fu/tree/plugin
in console
=============================================================
SMS.deliver("9822347028","idea", "hello sandip", :limit => 128)
first parameter: is the mobile number(idea)
second parameter: is the carier as "idea", maharastra idea phone. in your yml file you have to
add this carier. example go dowm.
third parameter: is the message
Environment.rb file
===================================================
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.smtp_settings = {
:port => 25,
:domain => 'persistent.co.in',
:address => "puneexchange.persistent.co.in",
:authentication => :login,
:user_name => "sandip_mondal",
:password => 'sm!@#4567',
:enable_starttls_auto => true
}
SMS = SMSFu::Client.configure(:delivery => :action_mailer)
#ActionMailer::Base.default_url_options[:host] = "localhost:3000"
PONY_CONFIG = {
:via => :smtp,
:via_options => {
:port => 25,
:domain => 'persistent.co.in',
:address => "puneexchange.persistent.co.in",
:authentication => :login,
:user_name => "sandip_mondal",
:password => 'sm!@#4567',
:enable_starttls_auto => true
}}
SMS_FU = SMSFu::Client.configure(:delivery => :pony, :pony_config => PONY_CONFIG)
config/sms_fu.yml
==============================================================
config:
from_address: [email protected]
carriers:
idea:
name: Maharashtra Idea Cellular
value: @ideacellular.net
airtel:
name: Maharashtra Airtel
value: @airtelmail.com
alltel:
name: Alltel
value: @message.alltel.com
ameritech:
name: Ameritech
value: @paging.acswireless.com
at&t:
name: AT&T
value: @txt.att.net
bell-atlantic:
name: Bell Atlantic
value: @message.bam.com
bellsouthmobility:
name: Bellsouth Mobility
value: @blsdcs.net
blueskyfrog:
name: BlueSkyFrog
value: @blueskyfrog.com
boost:
name: Boost Mobile
value: @myboostmobile.com
cellularsouth:
name: Cellular South
value: @csouth1.com
comcast:
name: Comcast PCS
value: @comcastpcs.textmsg.com
cricket:
name: Cricket
value: @sms.mycricket.com
kajeet:
name: kajeet
value: @mobile.kajeet.net
metropcs:
name: Metro PCS
value: @mymetropcs.com
nextel:
name: Nextel
value: @messaging.nextel.com
powertel:
name: Powertel
value: @ptel.net
pscwireless:
name: PSC Wireless
value: @sms.pscel.com
qwest:
name: Qwest
value: @qwestmp.com
southernlink:
name: Southern Link
value: @page.southernlinc.com
sprint:
name: Sprint PCS
value: @messaging.sprintpcs.com
suncom:
name: Suncom
value: @tms.suncom.com
t-mobile:
name: T-Mobile
value: @tmomail.net
tracfone:
name: Tracfone
value: @mmst5.tracfone.com
telus-mobility:
name: Telus Mobility
value: @msg.telus.com
virgin:
name: Virgin Mobile
value: @vmobl.net
verizon:
name: Verizon Wireless
value: @vtext.com
# International Carriers
aliant-canada:
name: Aliant (Canada)
value: @chat.wirefree.ca
beeline-ua:
name: Beeline
value: @sms.beeline.ua
bellmobility-canada:
name: Bell Mobility (Canada)
value: @txt.bell.ca
bpl-mobile:
name: BPL Mobile
value: @bplmobile.com
claro-brazil:
name: Claro (Brazil)
value: @clarotorpedo.com.br
claro-nicaragua:
name: Claro (Nicaragua)
value: @ideasclaro-ca.com
du-arab-emirates:
name: Du (UAE)
value: @email2sms.ae
e-plus-germany:
name: E-Plus (Germany)
value: @smsmail.eplus.de
etisalat-arab-emirates:
name: Etisalat (UAE)
value: @email2sms.ae
fido-canada:
name: Fido
value: @fido.ca
manitobatelecom-canada:
name: Manitoba Telecom (Canada)
value: @text.mtsmobility.com
mobinil-egypt:
name: Mobinil
value: @mobinil.net
mobistar-belgium:
name: Mobistar (Belgium)
value: @mobistar.be
mobitel:
name: Mobitel
value: @sms.mobitel.lk
movistar-spain:
name: Movistar (Spain)
value: @correo.movistar.net
northerntel-canada:
name: NorthernTel (Canada)
value: @txt.northerntelmobility.com
o2-germany:
name: o2 (Germany)
value: @o2online.de
o2-uk:
name: o2 (UK)
value: @mmail.co.uk
orange-mumbai:
name: Orange (Mumbai)
value: @orangemail.co.in
orange-netherlands:
name: Orange (Netherlands)
value: @sms.orange.nl
orange-uk:
name: Orange (UK)
value: @orange.net
rogers-wireless:
name: Rogers Wireless
value: @pcs.rogers.com
rogers-canada:
name: Rogers (Canada)
value: @pcs.rogers.ca
sasktel-canada:
name: SaskTel (canada)
value: @sms.sasktel.ca
sfr-france:
name: SFR (France)
value: @sfr.fr
t-mobile-austria:
name: T-Mobile (Austria)
value: @sms.t-mobile.at
t-mobile-germany:
name: T-Mobile (Germany)
value: @t-d1-sms.de
t-mobile-germany:
name: T-Mobile (Netherlands)
value: @gin.nl
t-mobile-uk:
name: T-Mobile (UK)
value: @t-mobile.uk.net
telebec-canada:
name: Telebec (Canada)
value: @txt.telebecmobilite.com
telefonica-spain:
name: Telefonica (Spain)
value: @movistar.net
telus-canada:
name: Telus (Canada)
value: @msg.telus.com
virgin-canada:
name: Virgin (Canada)
value: @vmobile.ca
vodafone-germany:
name: Vodafone (Germany)
value: @vodafone-sms.de
vodafone-egypt:
name: Vodafone (Egypt)
value: @vodafone.com.eg
vodafone-uk:
name: Vodafone (UK)
value: @sms.vodafone.net
vodafone-in:
name: Vodafone (IN)
value: @sms.vodafone.in
vodafone-italy:
name: Vodafone (Italy)
value: @sms.vodafone.it
vodafone-jp-chuugoku:
name: Vodafone (Japan - Chuugoku)
value: @n.vodafone.ne.jp
vodafone-jp-hokkaido:
name: Vodafone (Japan - Hokkaido)
value: @d.vodafone.ne.jp
vodafone-jp-hokuriko:
name: Vodafone (Japan - Hokuriko)
value: @r.vodafone.ne.jp
vodafone-jp-kansai:
name: Vodafone (Japan - Kansai)
value: @k.vodafone.ne.jp
vodafone-jp-osaka:
name: Vodafone (Japan - Osaka)
value: @k.vodafone.ne.jp
vodafone-jp-kanto:
name: Vodafone (Japan - Kanto)
value: @k.vodafone.ne.jp
vodafone-jp-koushin:
name: Vodafone (Japan - Koushin)
value: @k.vodafone.ne.jp
vodafone-jp-tokyo:
name: Vodafone (Japan - Tokyo)
value: @k.vodafone.ne.jp
vodafone-jp-kyuushu:
name: Vodafone (Japan - Kyuushu)
value: @q.vodafone.ne.jp
vodafone-jp-okinawa:
name: Vodafone (Japan - Okinawa)
value: @q.vodafone.ne.jp
vodafone-jp-shikoku:
name: Vodafone (Japan - Shikoku)
value: @s.vodafone.ne.jp
vodafone-jp-touhoku:
name: Vodafone (Japan - Touhoku)
value: @h.vodafone.ne.jp
vodafone-jp-niigata:
name: Vodafone (Japan - Niigata)
value: @h.vodafone.ne.jp
vodafone-jp-toukai:
name: Vodafone (Japan - Toukai)
value: @h.vodafone.ne.jp
vodafone-spain:
name: Vodafone (Japan - Spain)
value: @vodafone.es
If you want to add more carrier go to the following site
================================================================
http://en.wikipedia.org/wiki/List_of_SMS_gateways