This is what Part 1 of this post was all about so we’ll use it as the foundation for this post. To access the Gmail API we need to authenticate our Rails app and retrieve an OAuth access token. Sadly, Snoop hasn’t emailed us yet, so go ahead and apply the SMS label to any of the messages in your inbox - that’ll do until our big day inevitably comes. Once we’ve sent an sms alert, we’ll automatically remove the label so that we send only one alert per email. Check Apply the Label and create a new label called sms.Also, make sure the 'Captcha' is disabled - this may be necessary if you are running the script on a remote server (not necessary when. Make sure 2-factor authentication is disabled. Enable 'less secure apps' in the google security control panel. Enter search criteria that’s important to you - in our case emails from “Snoop.” There is some gmail configuration you must perform before you can send emails from powershell.Click Add New Filter on the bottom of the page.Click the Settings gear in the top right.So before we write any code, let’s create a new filter to apply a sms label to certain messages. Below is the API provided by my bulk SMS provider. I have purchased a bulk SMS account and they have provide me the API. Now, Type the Message you want to Send as SMS on your Phone. Which emails deserve SMS alerts? My first inclination was to hard-code that logic but Gmail’s already given us filters and labels. Its a membership loyalty program and every time members are billed it will send the current billed amount along with points earned or redeemed. Click on Compose to Send the New SMS to any Mobile Number.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |