class Mushy::Smtp
Public Class Methods
details()
click to toggle source
# File lib/mushy/fluxs/smtp.rb, line 49 def self.details { name: 'Smtp', description: 'Send email through SMTP.', config: { from: { description: 'From whom the email will be sent.', type: 'text', shrink: true, value: '', }, to: { description: 'To whom the email should be sent.', type: 'text', value: '', }, subject: { description: 'The subject of the email.', type: 'text', value: '', }, body: { description: 'The text body of the email.', type: 'textarea', value: '', }, html_body: { description: 'The HTML body of the email.', type: 'textarea', value: '', }, attachment_file: { description: 'The full path of a file to attach.', type: 'text', shrink: true, value: '', }, address: { description: 'The address of the SMTP server.', type: 'text', value: 'smtp.gmail.com', }, port: { description: 'The SMTP server port.', type: 'integer', value: '587', }, domain: { description: 'The email domain.', type: 'text', value: 'gmail.com', }, username: { description: 'The username.', type: 'text', value: '', }, password: { description: 'The password.', type: 'text', value: '', }, }, } end
Public Instance Methods
adjust(options)
click to toggle source
# File lib/mushy/fluxs/smtp.rb, line 115 def adjust options options.tap { |x| x[:via] = 'smtp' } end