我完全不熟悉Ruby on Rails,我必須構建一個首先使用公司ID和omniauth LDAP插件登錄的電子郵件系統(我已經擁有所有憑據)。我也有一個已經制作好的表格的項目。我試圖完成的是在用戶登錄並填寫表單後,將電子郵件發送給特定人員。到目前爲止,我所遇到的所有教程都只處理髮送自動確認電子郵件給創建配置文件的用戶,但這不是我所需要的。我不需要應用程序來創建新用戶,只需要將我創建的HTML /文本模板發送到指定的電子郵件。我不確定要提供哪些文件代碼,這是我第一次使用stackoverflow提出問題,所以我提前道歉不提供所有正確的信息。我正在使用設計來創建用戶模型。我可以提供任何必要的文件代碼,如果有人能指出我正確的方向,那將是非常棒的!Ruby on Rails使用omniauth-ldap向AD上的用戶發送電子郵件
我的Gemfile看起來這樣:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'jquery-datatables-rails', github: 'rweng/jquery-datatables-rails'
gem 'devise'
gem 'omniauth'
gem 'omniauth-ldap', :git => 'https://github.com/intridea/omniauth-ldap.git'
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin