Email-MIME
view release on metacpan or search on metacpan
lib/Email/MIME.pm view on Meta::CPAN
#pod $email->content_type_set( 'text/html' );
#pod
#pod Change the content type. All C<Content-Type> header attributes
#pod will remain intact.
#pod
#pod =cut
sub content_type_set {
my ($self, $ct) = @_;
my $ct_header = parse_content_type($self->header('Content-Type'));
@{$ct_header}{qw[type subtype]} = split m[/], $ct;
$self->_compose_content_type($ct_header);
$self->_reset_cids;
return $ct;
}
#pod =method charset_set
#pod
#pod =method name_set
#pod
#pod =method format_set
( run in 1.105 second using v1.01-cache-2.11-cpan-71847e10f99 )