Google App Engine PHP script to process email and send data to a Google Sheet -


our water district sends out automated alarms , process statistics scada computer in our water treatment plant. information sent in form of sms messages , daily emails csv file attachments. because have informational website on google sites, automatically display real-time process statistics on our website in simple google sheet automatically updated.

i have been handling sms alarms through custom php/twilio scripts separately hosted, integrate in google cloud google appengine. think can accomplished in variety of ways, , evaluating alternative automation approaches using php , gmail api. google cloud/appengine noob, have couple of architectural questions:

  1. can accomplish automation enabling google sheet incoming mail , processing data through spreadsheet scripting? if elect approach, can google sheet receive email directly, or must send email data sheet http request?

  2. alternatively, google cloud more reliable , robust platform automation? examples have seen, looks appengine php scripts can enabled receive incoming email, parse required data email body or attachments, , form appropriate web request directed google sheet endpoint. under approach, google sheet scripting minimal.

does have constructive advice before plunge blindly , lustfully headlong project? thanks.

to answer questions:

1/ using google scripts

i think using google spreadsheet scripting might option if data stored in body text of e-mail.

in case write google spreadsheet script pulls e-mails directly gmail account. instead of sending e-mail spreadsheet access gmail account gmailapp service.

however ... if data stored inside csv attachment i'm not sure if feasible. i'm not sure can access data inside attachments google spreadsheet script.

2/ using google cloud

i'm no means expert here. think don't need host code them. once use php , leverage google apis (gmail + google sheets) should able host code anywhere like.

extra: consider using email parser software

developing feasible take sure lot of time. e-mail bit difficult handle , have lot of moving parts there.

i'm founder of mailparser.io , believe better of using ready made e-mail parser software ours job. integrate natively google spreadsheets , should have running within couple of minutes.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -