2

注文用の Google 注文スキーマ マークアップを作成しようとしています。ただし、生成した html テンプレートは、google App Script Test を使用して実行すると機能します

Google App スクリプトの Code.gs ファイル

function testSchemas() {
 var htmlBody = HtmlService.createHtmlOutputFromFile('template_html').getContent();

MailApp.sendEmail({
 // to: Session.getActiveUser().getEmail(),
   to:'MY GMAIL EMAIL',
subject: 'Test Actions in the Inbox - ' + new Date(),
htmlBody: htmlBody,
 });
 }

しかし、nodemailer で同じ html テンプレートを使用し、Gmail サービスを使用して同じ Gmail 資格情報で nodemailer を実行すると、「View order」セクションが見つかりません。

to: と from: のアドレスはスキーマをテストするために同じである必要があり、to と from のアドレスは同じである必要があることを認識しています。

私のnodemailer設定は次のようになります:

var smtpTransport = nodemailer.createTransport("SMTP",{
service: "Gmail",
auth: {
    user: "GMAIL EMAIL",
    pass: "PASSWORD"
}
});

 smtpTransport.sendMail(mailOptions,function(err,response){console.log('Done');});

Google によると、フィッシング攻撃を阻止するには、メールで SPF/DKIM を有効にする必要がありますが、Gmail サービスを使用している場合はそうではありません。

IpP を Google にホワイトリストに登録するようリクエストする前に、この理由と、ノード メーラーを使用してテストする方法の回避策を教えてください。

また、Google 注文を Google Now に Google カードとして表示することはできますか。

4

0 に答える 0