I was using my own e-mail address at first which was verified and it still wouldn't work. I hadn't verified this new test account, thank you for reminding me, although it is still not working. I'm not sure what could be causing it. I tried sending it to an actual e-mail address instead of the phone number but it still doesn't send :/
On Sunday, November 24, 2013 10:12:15 PM UTC-5, Adi wrote: > > If it's a new test gmail account, did you login into it, and verify with > your phone? Sometimes they hold up the new accounts, until you verify and > confirm it is ok to be used from within an application. > > I had a similar issue for a new app dedicated gmail account. > > > > On Sun, Nov 24, 2013 at 6:58 PM, melmg <meli...@gmail.com <javascript:>>wrote: > >> I am working on the last part of my application where I send a text >> message as an e-mail using gluon.contrib.sms_utils to set up the e-mail >> address but I am not receiving anything (I have it set up to send the >> message to my phone). >> >> This is my controller setup (in default.py): >> >> def send_text(): >> from gluon.contrib.sms_utils import SMSCODES, sms_email >> >> # Retrieve the phone number and phone carrier info >> number = '1 (111) 111-1111' # Phone number >> provider = 'AT&T' >> >> # Set up the e-mail address >> email = sms_email(number, provider) >> >> # Message to be sent >> message = 'This is a test' >> >> # Send message >> mail.send(to=email, subject='TrackAlert', message=message) >> >> return dict(result=mail.result) >> >> This is my model setup (in db.py): >> from gluon.tools import Mail >> >> ## configure email >> mail = Mail() >> mail.settings.server = "smtp.gmail.com:587" or "gae" # I also tried >> port 25 and 465 >> mail.settings.sender = "tra...@gmail.com" # Test e-mail address >> mail.settings.tls = True or False >> mail.settings.login = "tra...@gmail.com:Thisisatest" # Username:Password >> >> I am calling the function directly from the URL as such: >> >> http://127.0.0.1:8000/TrackAlert/default/send_text<http://www.google.com/url?q=http%3A%2F%2F127.0.0.1%3A8000%2FTrackAlert%2Fdefault%2Fsend_text&sa=D&sntz=1&usg=AFQjCNGNJkftqKfsecc434mUnA6M105OqQ> >> >> >> I am not receiving any errors but yet I'm not getting the text message. >> I don't have a view set up for this because it will be called from another >> script. >> >> Am I missing something? >> >> I'd greatly appreciate any help! This is part of my senior project that I >> need to present tomorrow :( >> >> -- >> Resources: >> - >> http://web2py.com<http://www.google.com/url?q=http%3A%2F%2Fweb2py.com&sa=D&sntz=1&usg=AFQjCNE7x6wflFTAQ11b-FhtMwFfvltXeg> >> - >> http://web2py.com/book<http://www.google.com/url?q=http%3A%2F%2Fweb2py.com%2Fbook&sa=D&sntz=1&usg=AFQjCNFAv433a0RL4nfaYxTbZ4cHi4Q78A>(Documentation) >> - >> http://github.com/web2py/web2py<http://www.google.com/url?q=http%3A%2F%2Fgithub.com%2Fweb2py%2Fweb2py&sa=D&sntz=1&usg=AFQjCNHSwgWBkjuiIoo30014e8BB_iCDag>(Source >> code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.