[Rails] Re: Sending sms via rails
Hey Seeni,
The first thing that comes to mind is, does sms_fu include support for
your carrier there in India? Its GitHub documentation states that the
"to" phone number must be exactly 10 digits long (without any non-
digit characters). I'm not sure what phone numbers in India look
like, but that could be one place to start.
Secondly, sms_fu appears to rely on simply sending an e-mail to <your
phone number>@<your carrier's sms domain>. It just happens to have a
list of known carrier e-mail to SMS domains. Behind the scenes, all
it's doing is sending an e-mail to that carrier (or at least that's my
understanding).
Because it's relying on e-mail, what's your action mailer
configuration setting for development mode? Current versions of Rails
usually set the perform_deliveries option to false for development and
test environments, meaning that any e-mail that goes through
ActionMailer will just be printed out to the logfile, instead of
actually sent. If you're in development or test mode without having
set that option to true (config/environments/development.rb or
test.rb), it could be that the system isn't actually sending the e-
mail to your carrier.
A couple other points to possibly think through:
- Does the carrier support messages in the language (and alphabet -
US-ASCII, UTF-8 or Hindi) you're using?
- Are you sending an HTML-formatted e-mail, or just plain text?
One other thing to look at would be asking the carrier in question
what their SMS-to-e-mail domain is. For example, here in the US, with
Sprint it's <phone number>@messaging.sprintpcs.com. If the
configuration for sms_fu doesn't have a known sms-to-email domain name
for your carrier, you'll probably need to add it.
Good luck to you Seeni! I hope you get it figured out soon.
On Mar 17, 11:34 pm, seeni khan <rafigl...@gmail.com> wrote:
> Hi all,
> Im trying to send sms via rails but it is not reached my mobile
> because in sms_fu.yml file there is no carrier is set for India. How can i
> set the carrier for send sms to India. Please anyone help me. I am using
> sms_fu gem for send sms.
>
> --
>
> *Thanks & Regards,*
>
> *RAFI....,*
>
> ***In Every moment, thank God.*
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home