title: GmailApp without Gmail
body: <p>While looking into Google Apps script, I happened to try the very first "sample" script here: <a href="https://developers.google.com/apps-script/overview" rel="nofollow noreferrer">https://developers.google.com/apps-script/overview</a></p>
  
  <p>But running the script caused this error: </p>
  
  <blockquote>
    <p>We're sorry, a server error occurred. Please wait a bit and try again.
    (line 21, file "Code")</p>
  </blockquote>
  
  <p>I eventually realized that the particular account I was using is a Google account that isn't linked to a Gmail account. I tried another Google account that is linked to a Gmail account and it worked just fine. So, I'm assuming that's the problem, but the error doesn't exactly indicate that.</p>
  
  <p>I'm hoping someone can confirm that is indeed the problem and whether this is something that should be addressed in the sample code and/or have the error improved (obviously waiting a bit and trying again probably isn't going to fix the issue).</p>
  
  <p>Also, if being linked to a Gmail account is required to use GmailApp, is there any way to send email without being linked to a Gmail account?</p>
  
  <p><em>Update:</em></p>
  
  <p>Apparently you can use <code>MailApp.sendEmail()</code> to send email without being linked to a Gmail account.</p>
  
  <p>I still think the sample script error handling and messaging needs improvement.</p>