2017-12-21 5 views
1

나는 즉흥 희극을 위해 달리는 워크샵을 관리하기위한 사이트를 만들었습니다. 확인 이메일이 Google 캘린더에 이벤트를 자동으로 추가하도록합니다.일정 자동으로 Google 캘린더에 추가하기

내 이메일에 포함시킨 마크 업은 에 있습니다. 아래에 보낸 이메일의 원본 원본이 모두 나와 있습니다. 내가 "reservationStatus"를 사용하고 https://www.google.com/webmasters/markup-tester/

에서 검증 된 것 : 구글 문서에 명시된 바와 같이 이것은 "http://schema.org/Confirmed" 합니다. 나는 원래 schema.org가 사용하는 것으로 보이기 때문에 "Confirmed"대신에 "ReservationConfirmed"라는 상태를 사용했습니다 (그들은 'Confirmed'를 가지고 있지 않습니다).

하지만 '예약 확인 됨'또는 '확인 됨'은 추가되지 않습니다.

TicketToken이 올바른 QR 코드를 가리키는 티켓 정보를 추가했습니다. Google EMail Markup Validator에서 제안한 "수행자"정보 (선생님으로서)를 추가했습니다.

또한 이메일을 허용 목록에 추가하지 않아도되는 이메일 ([email protected], [email protected])을 본인에게 보내 테스트했습니다.

Delivered-To: [email protected] 
Received: by 10.107.197.133 with SMTP id v127csp1379143iof; 
     Thu, 21 Dec 2017 10:53:10 -0800 (PST) 
X-Google-Smtp-Source: ACJfBoszCK5Q3Br9bFDOI7ucImZ8NGhK8yMVSfgRYzXWXmUjnZqrdWeFZtfiZgGGBqNTLHO6E66y 
X-Received: by 10.107.199.131 with SMTP id x125mr14553462iof.70.1513882390523; 
     Thu, 21 Dec 2017 10:53:10 -0800 (PST) 
ARC-Seal: i=1; a=rsa-sha256; t=1513882390; cv=none; 
     d=google.com; s=arc-20160816; 
     b=mB5G7WFlPlD0EJjxARc9/MRoHHqtadwu83hRH6c6nIddN/4vwoNR3ASv+zr/5ER9RU 
     Ys70NMGAZodF0lkVU40jByhV7rGiKA5h61kcC+JK2iR8X3QBBA/qcpxYDtwITAkQrqNc 
     1+HEJ+kM3zboFJo8P1tUJYjKuucIRC+iQm/cLGYahf00vgIY+qeMbPXGmrKWMCR0Nl2l 
     DItwZy25XrI54wO0joGt5zj1Gmxk2vPWX4Z7Y3PJsqUzc9sEZzHE7W68Ul2XKNS65CYO 
     vgWwYXNuDYXeRM8kUIiEg9WuPv/Azzdj6clMDcwGLkXW5B3k76p4gNzr2uB4F6uZHJqu 
     5gqA== 
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 
     h=charset:mime-version:to:subject:reply-to:from:dkim-signature 
     :message-id:date:arc-authentication-results; 
     bh=dg0XGyowjh3py1SdZvxdclmUyhBEczAui/9SQr8hI6w=; 
     b=n6Ej7Hv7uLnf3K61YP/6JhTBsMs/1JpwwS5dL+4XDHKOfgWfdkJW6nUaKrtyQimhk9 
     vAmaVzJmNn9KdHH+31SeTACGHsX4aMwD0cgttIeNFL/HLTmucNWuzyGHW2I2Vt4ppsWt 
     UI3NDAsc1LgkVw7E/MGo+z3IwGabYK9QIUNIg29uC9GK72cPhFonKoYzB+z4LrjG94xm 
     w4NcWLu/rtciQy21YoertS1ahvGy0kPlMmv71mc6hW1Jt1HiEvpThMQag9y4Is8t9go/ 
     nJjkQvTYfxDFk4y/k6GEa1gbvuUEOsjtFELLxK6gcnCruMeUr9HPOdRfC8RLIEFg0Zjj 
     d8+Q== 
ARC-Authentication-Results: i=1; mx.google.com; 
     dkim=pass [email protected] header.s=default header.b=L6X46Jgh; 
     spf=pass (google.com: domain of [email protected] designates 72.52.242.236 as permitted sender) [email protected] 
Return-Path: <[email protected]> 
Received: from rocket-mail.gnservers.com ([72.52.242.236]) 
     by mx.google.com with ESMTPS id v9si13875880iog.60.2017.12.21.10.53.10 
     for <[email protected]> 
     (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); 
     Thu, 21 Dec 2017 10:53:10 -0800 (PST) 
Received-SPF: pass (google.com: domain of [email protected] designates 72.52.242.236 as permitted sender) client-ip=72.52.242.236; 
Authentication-Results: mx.google.com; 
     dkim=pass [email protected] header.s=default header.b=L6X46Jgh; 
     spf=pass (google.com: domain of [email protected] designates 72.52.242.236 as permitted sender) [email protected] 
Date: Thu, 21 Dec 2017 10:53:10 -0800 (PST) 
Message-Id: <[email protected]> 
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; 
    d=willhines.net; s=default; h=Content-Type:MIME-Version:To:Subject:Reply-To: 
    From:Sender:Date:Message-ID:Cc:Content-Transfer-Encoding:Content-ID: 
    Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc 
    :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: 
    List-Subscribe:List-Post:List-Owner:List-Archive; 
    bh=dg0XGyowjh3py1SdZvxdclmUyhBEczAui/9SQr8hI6w=; b=L6X46Jgh23/qgj8FXWHGGxiPKD 
    uYRAMfjpclaKE6Z6uWLHrdU2KWvyeqtYF+P4tFwp83oNWqOV9cOfc1NmzAgKkUXojH4ek02MW3HgX 
    HP5jVNrlDuQfbQooA1HIMjAgSGlY5KONujfIpZiV9h0N0PhiqiWpdXtzjMebpTP1PR8WmVchEYFNh 
    6Bbl+ZLfEFqugo9SFvQtQWdUqKd2h+eNT6+/WH3lf/nowNpnOS0PZcLCXrWFllmlwpkjc23LDAcyP 
    UV9pizZtTqxbXpgCy2pEZUTYfX4aiqVJ5+E291QQlVLrl0YhCTOrXmD8nSntqXpABVRKB4QyWsdBq 
    ZdJ93biA==; 
Received: from static-205-185-62-122.earthlinkbusiness.net ([205.185.62.122]:60727 helo=localhost) 
    by rocket.gnservers.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) 
    (Exim 4.89_1) 
    (envelope-from <[email protected]>) 
    id 1eS5xu-0007m4-0b 
    for [email protected]; Thu, 21 Dec 2017 13:53:10 -0500 
From: [email protected] 
Reply-To: [email protected] 
Subject: ENROLLED: test - Mon Dec 25 - 11:00am-5pm 
To: [email protected] 
MIME-Version: 1.0 
Content-Type: text/html 
charset: iso-8859-1 
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report 
X-AntiAbuse: Primary Hostname - rocket.gnservers.com 
X-AntiAbuse: Original Domain - gmail.com 
X-AntiAbuse: Originator/Caller UID/GID - [47 12]/[47 12] 
X-AntiAbuse: Sender Address Domain - willhines.net 
X-Get-Message-Sender-Via: rocket.gnservers.com: authenticated_id: [email protected] 
X-Authenticated-Sender: rocket.gnservers.com: [email protected] 
X-Source: 
X-Source-Args: 
X-Source-Dir: 

<script type="application/ld+json"> 
{ 
    "@context": "http://schema.org", 
    "@type": "EventReservation", 
    "reservationNumber": "wbhwk794", 
    "reservationStatus": "http://schema.org/Confirmed", 
    "underName": { 
    "@type": "Person", 
    "name": "Will Hines" 
    }, 
    "reservationFor": { 
    "@type": "EducationEvent", 
    "name": "test", 
    "startDate": "2017-12-25 11:00:00", 
     "endDate": "2017-12-25 17:00:00", 
    "performer": { 
      "@type": "Person", 
      "name": "Will Hines", 
      "image": "http://willhines.net/home_files/wh_clay_med.jpg" 
     }, 
    "location": { 
     "@type": "Place", 
     "name": "The Complex", 
     "address": { 
     "@type": "PostalAddress", 
     "streetAddress": "6476 Santa Monica Blvd", 
     "addressLocality": "Los Angeles", 
     "addressRegion": "CA", 
     "postalCode": "90038", 
     "addressCountry": "US" 
     } 
    } 
    }, 
    "ticketToken": "http://www.willhines.net/practices/code.php?wid=52&key=9ef66eb1f8166930&v=winfo", 
    "ticketNumber": "1", 
    "numSeats": "1", 
    "modifiedTime": "2017-12-21 10:53:05", 
    "modifyReservationUrl": "http://willhines.net/practices/index.php?wid=52" 
} 
</script> 
<p>You are ENROLLED in test - Mon Dec 25 - 11:00am-5pm. </p> 

<p>To DROP, click here: 
http://localhost:8888/practices/index.php?key=9ef66eb1f8166930&ac=drop&wid=52<br><br>Pay in person or venmo. On the day of the workshop is fine.<br>Venmo link: 
http://venmo.com/willhines?txn=pay&share=friends&amount=10&note=improv%20workshop</p> 

<p>Full info:</p> 

<p><b>Title:</b> test<br> 
<b>When:</b> Mon Dec 25 - 11:00am-5pm<br> 
<b>Where:</b> The Complex 6476 Santa Monica Blvd Los Angeles CA 90038<br> 
<b>Cost:</b> 10</p> 
<b>Description:</b> </p> 






<p>Thanks!</p> 

<p>-Will Hines<br> 
HQ: 1948 Hillhurst Ave. Los Angeles, CA 90027</p> 
+0

마크 업을 수정하여 script.google.com을 통해 작동하도록했습니다. script.google.com을 통해 수정 된 마크 업을 보내면 작동한다는 의미입니다. 내 서버의 PHP 코드를 통해 보내면 작동하지 않습니다. Google의 문서에 따르면 이메일이 발신자와 수신자가 동일한 Gmail 주소로 전송되면 마크 업이 처리됩니다. 하지만 script.google.com을 통해서만 사용할 수 있습니다. –

답변

0

누군가 다른 사람이이 문제에 부딪혔을 때 나는 그것을 "해결"했습니다. 경미한 스키마 오류와 함께 이메일을 Google에 등록해야했습니다.

1) Google 문서가 schema.org에서 설명한 것과 다르면 Google 문서를 따르십시오. 당신이 그들을 할 경우 Registering With Google 그렇지 않으면

, 테스트에만 작동합니다 : 나를 위해 여기에 설명 된대로 구글과 이메일을 등록해야합니다)

2 "이벤트"없습니다 "EducationEvent"로 reservationFor의 @type을 정의하는 것을 의미하는 Apps Script Quickstart에 설명 된대로 script.google.com을 통해

docs는 동일한 주소에서 이메일을 보내고 테스트를 위해 등록하지 않았지만 작동하도록 할 수는 없다고합니다.

3) 또한 이것은 분명하지만, 계정을 가진 SMTP 서버에 내 PHP 코드를 (PEAR의 메일을 통해) 연결했습니다. 이를 통해 제 이메일에 유효한 DKIM/SPF 정보가 있는지 확인했습니다.