Now using sendgrid  for emails

Copied the working pear email solution and replaced it with the
sendgrid account.