Class: Mushy::Smtp
Instance Attribute Summary
Attributes inherited from Flux
#config, #flow, #id, #masher, #parent_fluxs, #subscribed_to, #type
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from EmailBase
#cleanup, #get_via_options_from, #process
Methods inherited from Flux
#convert_this_to_an_array, #convert_to_symbolized_hash, #execute, #execute_single_event, #group_these_results, #guard, #ignore_these_results, inherited, #initialize, #join_these_results, #limit_these_results, #merge_these_results, #model_these_results, #outgoing_split_these_results, #process, #shape_these, #sort_these_results, #standardize_these
Constructor Details
This class inherits a constructor from Mushy::Flux
Class Method Details
.details ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# 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 |
Instance Method Details
#adjust(options) ⇒ Object
115 116 117 |
# File 'lib/mushy/fluxs/smtp.rb', line 115 def adjust .tap { |x| x[:via] = 'smtp' } end |