google schemas - Action button not showing when sending to other gmail account -
my viewaction button working fine when using apps script send email myself. (same gmail account logged in)
function testschemas() { var htmlbody = htmlservice.createhtmloutputfromfile('mail_template').getcontent(); mailapp.sendemail({ to: "myemail@gmail.com", subject: 'test actions in inbox - ' + new date(), htmlbody: htmlbody }); }
when setting gmail account recipient, action button won't display. i've tried several gmail accounts.
by of it, testing schemas possible when sending 1 self , not other gmail accounts. true?
my action button:
<html> <head> <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "emailmessage", "action": { "@type": "viewaction", "name": "test action", "url": "https://mydomain.com/test" }, "description": "test action" } </script> </head> <body> <p> test go-to action in gmail. </p> </body> </html>
working headers:
delivered-to: myemail@gmail.com received: 10.112.167.104 smtp id zn8csp127915lbb; tue, 13 aug 2013 01:44:42 -0700 (pdt) return-path: <3-fejuhejajog4le.fiq8.m6bq8ctag4cf.6ig@maestro.bounces.google.com> received-spf: pass (google.com: domain of 3-fejuhejajog4le.fiq8.m6bq8ctag4cf.6ig@maestro.bounces.google.com designates 10.224.2.202 permitted sender) client-ip=10.224.2.202 authentication-results: mr.google.com; spf=pass (google.com: domain of 3-fejuhejajog4le.fiq8.m6bq8ctag4cf.6ig@maestro.bounces.google.com designates 10.224.2.202 permitted sender) smtp.mail=3-fejuhejajog4le.fiq8.m6bq8ctag4cf.6ig@maestro.bounces.google.com; dkim=pass header.i=@gmail.com x-received: mr.google.com ([10.224.2.202]) 10.224.2.202 smtp id 10mr4378787qak.8.1376383481951 (num_hops = 1); tue, 13 aug 2013 01:44:41 -0700 (pdt) dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:message-id:date:subject:from:to:content-type; bh=ynbte5hf82u8ubhoyjqtfwatxao3n1xz0al3mdu5ycm=; b=dajfv8v0scijf0vy1ec1rtgmfvj5waem5tqmyhyt2b24b3fmyy2veuvscnx4id+4pi d48uq8de2qoj+n18hzry+tvnyydjatrlnfe6fcrqk2ktue79ox/im5t7lri5c6wzvxlm tppcl8botfox7y2fe011kgn0vmfsmowpnbrynbexrjtyafwjrrzhj6z8oxfdfdyay9fg oalcormwud6+kxazgj5qjhz/hueic5kbaxywonjoafdjkz2zpkv2dhazy78vlozcd37g zg43n1rify+udksvly9ornhmawsu+sb4ddq8jtjbqrpw8+mov9zrkhqgludvzu/nmmb4 c8oq== mime-version: 1.0 x-received: 10.224.2.202 smtp id 10mr3639307qak.8.1376383481552; tue, 13 aug 2013 01:44:41 -0700 (pdt) message-id: <001a11c3e1827e3ff904e3d040f8@google.com> date: tue, 13 aug 2013 08:44:41 +0000 subject: test actions in inbox - tue aug 13 2013 10:44:41 gmt+0200 (cest) from: myemail@gmail.com to: myemail@gmail.com content-type: multipart/alternative; boundary=001a11c3e1827e3fef04e3d040f5
not working headers:
delivered-to: myother@gmail.com received: 10.76.9.231 smtp id d7csp139739oab; tue, 13 aug 2013 01:44:49 -0700 (pdt) return-path: <myemail@gmail.com> received-spf: pass (google.com: domain of myemail@gmail.com designates 10.236.38.106 permitted sender) client-ip=10.236.38.106 authentication-results: mr.google.com; spf=pass (google.com: domain of myemail@gmail.com designates 10.236.38.106 permitted sender) smtp.mail=myemail@gmail.com; dkim=pass header.i=@gmail.com x-received: mr.google.com ([10.236.38.106]) 10.236.38.106 smtp id z70mr1926602yha.29.1376383489428 (num_hops = 1); tue, 13 aug 2013 01:44:49 -0700 (pdt) dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:message-id:date:subject:from:to:content-type; bh=0zsog3hkpkergvrg8ym5j4arbi++ujsnwp46kyrsisu=; b=fackadljkifgzasnhw5fkjbomo+brpdsenzzup5emhzrxuzbom2+7im2oytevddk7v ib51o8ej2g3sxp1yo6f+xdaldocfz65x3hizn35hzyagzyhq/asd/ijjb7rxqmybmnm9 zeme71jai1h/wh9djug1va7+af83apjwkefzwosrskdbpacotz7bie2ymxjgp8moq7mz /bldtppooq4xz5aeapefuvmspkckka/l5hlnk7tnhv/euekl0rk7xyrnixgtafkgprj4 hkap+eaqnrfdj3wtvbnvefl1vfcghyu3padpkbkwttbucljicvot67ru6ox9iqrqga8o baya== mime-version: 1.0 x-received: 10.236.38.106 smtp id z70mr1246078yha.29.1376383489312; tue, 13 aug 2013 01:44:49 -0700 (pdt) message-id: <089e01184c56f4944a04e3d040eb@google.com> date: tue, 13 aug 2013 08:44:49 +0000 subject: test actions in inbox - tue aug 13 2013 10:44:49 gmt+0200 (cest) from: myemail@gmail.com to: myother@gmail.com content-type: multipart/alternative; boundary=089e01184c56f4944004e3d040e8
your sender address needs whitelisted send actions other users:
https://developers.google.com/gmail/schemas/registering-with-google
for testing purposes, when sending emails whitelisting requirements ignored.
Comments
Post a Comment