amp-email

AMP Email form causes error [amp-form] Form submission failed: Error: Request viewerRenderTemplate failed: Error: Class$obf_1008:

落爺英雄遲暮 提交于 2021-02-11 14:27:49
问题 The form submits perfectly well in the amp playground and the amp Gmail playground. When I send myself the email and open it in Gmail, the dynamic content loads correctly but on submitting the form, I get the following errors: Uncaught (in promise) Error: Class$obf_1008: [https://dynamicmail-pa.googleapis.com/v2/xhrs:proxy?alt=protojson] Cg: Unsupported HTTP status: 400: Class$obf_1007: [object Object] log.js:258 [amp-form] Form submission failed: Error: Request viewerRenderTemplate failed:

How to send AMP Email from Python? How is it technically different from Normal Email

为君一笑 提交于 2020-01-01 07:18:05
问题 I am trying to understand what is AMP Email and also understand how I can send it from something like Pyhton/NodeJs/Ruby. Currently in Python I send email as below: import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from = "from@email.address" to = "to@email.address" msg = MIMEMultipart('alternative') msg['Subject'] = "AMP Email" msg['From'] = from msg['To'] = to #Email body. plain_text = "Hi,\nThis is the plain text version of this Email.\nHere

How to add Roboto font to AMP 4 Email

梦想的初衷 提交于 2019-12-11 05:15:20
问题 When I add this, I get an error from The AMP Validator : <link href="https://fonts.googleapis.com/css?family=Roboto+Slab:400,700|Roboto:300,400,500" rel="stylesheet"> The tag 'link' is disallowed. How should I add fonts from Google Fonts inside an amp4email . 回答1: AMP for Email doesn't currently support custom fonts. #21907 is the tracking issue for this feature request. 回答2: Google fonts include to AMP4MAIL by default. You need just change font-family property in your element. For example

How to make 'search box which shows list of dynamic option according to data retrieve by get api call on input string' like select2 in amp mail

谁说胖子不能爱 提交于 2019-12-10 19:02:25
问题 I am very new in AMP Email technology and I am facing an issue related to render dynamic options inside search box which makes get API request call as query according to input string and show options list according to data retrieve by request. I came to know that amp-autocomplete is not working in amp-email and I use this code. So, please consider this and suggest a way how to solve this problem. <div> <amp-state id="name"></amp-state> <input id="name-input" placeholder="Search name..." on=