R – I can send an email from the Rails app, but not an SMS text through an email gateway

emailrubyruby-on-railssms

I have application that needs to send emails and sms text messages. It sends emails just fine, but when I try to send text messages using email gateways (for verizon, xxxyyyzzzz@vtext.com) I get nothing. I have texted the phone using though the email gateway using my gmail account, so I know it works. I would just think that from my app's point of view I am just sending out another email. Any idea why this doesn't work? Or what I can do to troubleshoot it?

I should also note that I am doing this from a Rails app on my local computer…not that it should matter.

Best Answer

Maybe Verizon has software that can identify emails sent from software rather than humans, and rejects yours?

Try making your software add all the same headers (eg. X-Mailer) that a normal email client would add.

Related Topic