title: Using SendGrid and B2C Custom Policy to send customised email
body: <p>Am trying to combine azure b2c and sendgrid to send a custom verification code email using SendGrid.</p>
  <p>after performing the steps mention the reference link below, am getting an error saying</p>
  <blockquote>
  <p>Basic credentials specified for 'SendOtp' are invalid. Check that the credentials are correct and that access has been granted by the resource.</p>
  </blockquote>
  <p>reference link
  <a href="https://docs.microsoft.com/en-us/azure/active-directory-b2c/custom-email-sendgrid" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/active-directory-b2c/custom-email-sendgrid</a></p>
  <p>Stuck for entire day. any help would be appriciated.
  Thanks in advance.</p>