--- !ruby/object:RI::MethodDescription 
aliases: 
- !ruby/object:RI::AliasName 
  name: attach_as
block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: adds an attachment to the mail as emailfilename. Type may be given as a mime type. If it is left off and the MIME::Types module is available it will be determined automagically. file may be given as an IO stream (which will be read until the end) or as a filename. If the optional attachemntheaders is given, then they will be added to the attachment boundary in the email, which can be used to produce Content-ID markers. attachmentheaders can be given as an Array of a String.
full_name: MailFactory#add_attachment_as
is_singleton: false
name: add_attachment_as
params: (file, emailfilename, type=nil, attachmentheaders = nil)
visibility: public
