OAuth2 Mailer

Categories

Component ID

2458503

Component name

OAuth2 Mailer

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

388

Component created

Component changed

Component body

Overview

This module allows users send emails through Gmail server. User just authenticate via OAuth2 and can send mail. It will be helpful if site users communicate with each other through email. For example it will be bulletin board, alternative to mailto or writing feedback to site administration.

Features

  • User use OAuth 2.0 protocol for authentication.
  • Having two way for show message form as standard block or popup on page bottom.
  • User friendly form for compose email.

Requirements

Tutorials

  • See README.txt.
  • Or follow below instruction.
    • Download and install required modules (OAuth2 Client , Libraries API).
    • Download PHPMailer library. Create folder 'phpmailer' in sites/all/libraries. Extract archive to sites/all/libraries/phpmailer.
    • Download and copy OAuth2 Mailer module to sites/all/modules on your site.
    • Install module and go to configuration page /admin/config/services/oauth2_mailer.
    • Go to Google developer console and configure or create new project. Follow to APIs & auth > Credentials > Create new Client ID and choose "Web application" for "Create Client ID". Fill form for an application and set "Redirect URIs" like "http://[YOURSITE]/oauth2/authorized" and "Javascript Origins" like "http://[YOURSITE]".
    • Go to configuration Google provider on your site (admin/config/services/oauth2_mailer/provider/Google). Set the "Client Id" and "Client Secret" from Google developer console, other settings leave by default.
    • Manage 'Oauth2 mailer' block on admin/structure/block page or use link (see code below) to call popup with message form.
      print l(t('Compose'), '/mailer/compose', array('attributes' => array('class' => array('use-ajax'))));