--- !ruby/object:RI::MethodDescription 
aliases: 
- !ruby/object:RI::AliasName 
  name: content_type=
block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Destructively sets the &quot;Content-Type:&quot; header field of this mail object
- !ruby/struct:SM::Flow::P 
  body: Allows you to set the main type, sub type as well as parameters to the field. The main type and sub type need to be a string.
- !ruby/struct:SM::Flow::P 
  body: The optional params hash can be passed with keys as symbols and values as a string, or strings as keys and values.
- !ruby/struct:SM::Flow::P 
  body: "Example:"
- !ruby/struct:SM::Flow::VERB 
  body: " mail = TMail::Mail.new\n mail.set_content_type(&quot;text&quot;, &quot;plain&quot;)\n mail.to_s #=&gt; &quot;Content-Type: text/plain\\n\\n&quot;\n\n mail.set_content_type(&quot;text&quot;, &quot;plain&quot;, {:charset =&gt; &quot;EUC-KR&quot;, :format =&gt; &quot;flowed&quot;})\n mail.to_s #=&gt; &quot;Content-Type: text/plain; charset=EUC-KR; format=flowed\\n\\n&quot;\n\n mail.set_content_type(&quot;text&quot;, &quot;plain&quot;, {&quot;charset&quot; =&gt; &quot;EUC-KR&quot;, &quot;format&quot; =&gt; &quot;flowed&quot;})\n mail.to_s #=&gt; &quot;Content-Type: text/plain; charset=EUC-KR; format=flowed\\n\\n&quot;\n"
full_name: TMail::Mail#set_content_type
is_singleton: false
name: set_content_type
params: ( str, sub = nil, param = nil )
visibility: public
