{
    "mode": "perldoc",
    "parameter": "Mail::Message::Body::String",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Mail%3A%3AMessage%3A%3ABody%3A%3AString/json",
    "generated": "2026-06-10T16:29:09Z",
    "synopsis": "See Mail::Message::Body",
    "sections": {
        "NAME": {
            "content": "Mail::Message::Body::String - body of a Mail::Message stored as single string\n",
            "subsections": []
        },
        "INHERITANCE": {
            "content": "Mail::Message::Body::String\nis a Mail::Message::Body\nis a Mail::Reporter\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "See Mail::Message::Body\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "The body (content) of a message can be stored in various ways. In this documentation you will\nfind the description of extra functionality you have when a message is stored as a single\nscalar.\n\nStoring a whole message in one string is only a smart choice when the content is small or\nencoded. Even when stored as a scalar, you can still treat the body as if the data is stored in\nlines or an external file, but this will be slower.\n\nExtends \"DESCRIPTION\" in Mail::Message::Body.\n",
            "subsections": []
        },
        "OVERLOADED": {
            "content": "Extends \"OVERLOADED\" in Mail::Message::Body.\n\noverload: \"\"\nInherited, see \"OVERLOADED\" in Mail::Message::Body\n\noverload: '==' and '!='\nInherited, see \"OVERLOADED\" in Mail::Message::Body\n\noverload: @{}\nInherited, see \"OVERLOADED\" in Mail::Message::Body\n\noverload: bool\nInherited, see \"OVERLOADED\" in Mail::Message::Body\n",
            "subsections": []
        },
        "METHODS": {
            "content": "Extends \"METHODS\" in Mail::Message::Body.\n",
            "subsections": [
                {
                    "name": "Constructors",
                    "content": "Extends \"Constructors\" in Mail::Message::Body.\n\n$obj->clone()\nInherited, see \"Constructors\" in Mail::Message::Body\n\nMail::Message::Body::String->new(%options)\n-Option           --Defined in         --Default\nbasedon           Mail::Message::Body  undef\ncharset            Mail::Message::Body  'PERL' or <undef>\nchecked            Mail::Message::Body  <false>\ncontentid         Mail::Message::Body  undef\ndata               Mail::Message::Body  undef\ndescription        Mail::Message::Body  undef\ndisposition        Mail::Message::Body  undef\neol                Mail::Message::Body  'NATIVE'\nfile               Mail::Message::Body  undef\nfilename           Mail::Message::Body  undef\nlog                Mail::Reporter       'WARNINGS'\nmessage            Mail::Message::Body  undef\nmimetype          Mail::Message::Body  'text/plain'\nmodified           Mail::Message::Body  <false>\ntrace              Mail::Reporter       'WARNINGS'\ntransferencoding  Mail::Message::Body  'none'\n\nbasedon => BODY\ncharset => CHARSET|'PERL'\nchecked => BOOLEAN\ncontentid => STRING\ndata => ARRAY-OF-LINES | STRING\ndescription => STRING|FIELD\ndisposition => STRING|FIELD\neol => 'CR'|'LF'|'CRLF'|'NATIVE'\nfile => FILENAME|FILEHANDLE|IOHANDLE\nfilename => FILENAME\nlog => LEVEL\nmessage => MESSAGE\nmimetype => STRING|FIELD|MIME\nmodified => BOOLEAN\ntrace => LEVEL\ntransferencoding => STRING|FIELD\n"
                },
                {
                    "name": "Constructing a body",
                    "content": "Extends \"Constructing a body\" in Mail::Message::Body.\n\n$obj->attach($messages, %options)\nInherited, see \"Constructing a body\" in Mail::Message::Body::Construct\n\n$obj->check()\nInherited, see \"Constructing a body\" in Mail::Message::Body::Encode\n\n$obj->concatenate($components)\nInherited, see \"Constructing a body\" in Mail::Message::Body::Construct\n\n$obj->decoded(%options)\nInherited, see \"Constructing a body\" in Mail::Message::Body\n\n$obj->encode(%options)\nInherited, see \"Constructing a body\" in Mail::Message::Body::Encode\n\n$obj->encoded()\nInherited, see \"Constructing a body\" in Mail::Message::Body::Encode\n\n$obj->eol( ['CR'|'LF'|'CRLF'|'NATIVE'] )\nInherited, see \"Constructing a body\" in Mail::Message::Body\n\n$obj->foreachLine(CODE)\nInherited, see \"Constructing a body\" in Mail::Message::Body::Construct\n\n$obj->stripSignature(%options)\nInherited, see \"Constructing a body\" in Mail::Message::Body::Construct\n\n$obj->unify($body)\nInherited, see \"Constructing a body\" in Mail::Message::Body::Encode\n"
                },
                {
                    "name": "The body",
                    "content": "Extends \"The body\" in Mail::Message::Body.\n\n$obj->isDelayed()\nInherited, see \"The body\" in Mail::Message::Body\n\n$obj->isMultipart()\nInherited, see \"The body\" in Mail::Message::Body\n\n$obj->isNested()\nInherited, see \"The body\" in Mail::Message::Body\n\n$obj->message( [$message] )\nInherited, see \"The body\" in Mail::Message::Body\n\n$obj->partNumberOf($part)\nInherited, see \"The body\" in Mail::Message::Body\n"
                },
                {
                    "name": "About the payload",
                    "content": "Extends \"About the payload\" in Mail::Message::Body.\n\n$obj->charset()\nInherited, see \"About the payload\" in Mail::Message::Body\n\n$obj->checked( [BOOLEAN] )\nInherited, see \"About the payload\" in Mail::Message::Body\n\n$obj->contentId( [STRING|$field] )\nInherited, see \"About the payload\" in Mail::Message::Body\n\n$obj->description( [STRING|$field] )\nInherited, see \"About the payload\" in Mail::Message::Body\n\n$obj->disposition( [STRING|$field] )\nInherited, see \"About the payload\" in Mail::Message::Body\n\n$obj->dispositionFilename( [$directory] )\nInherited, see \"About the payload\" in Mail::Message::Body::Encode\n\n$obj->isBinary()\nInherited, see \"About the payload\" in Mail::Message::Body::Encode\n\n$obj->isText()\nInherited, see \"About the payload\" in Mail::Message::Body::Encode\n\n$obj->mimeType()\nInherited, see \"About the payload\" in Mail::Message::Body\n\n$obj->nrLines()\nInherited, see \"About the payload\" in Mail::Message::Body\n\n$obj->size()\nInherited, see \"About the payload\" in Mail::Message::Body\n\n$obj->transferEncoding( [STRING|$field] )\nInherited, see \"About the payload\" in Mail::Message::Body\n\n$obj->type( [STRING|$field] )\nInherited, see \"About the payload\" in Mail::Message::Body\n"
                },
                {
                    "name": "Access to the payload",
                    "content": "Extends \"Access to the payload\" in Mail::Message::Body.\n\n$obj->endsOnNewline()\nInherited, see \"Access to the payload\" in Mail::Message::Body\n\n$obj->file()\nInherited, see \"Access to the payload\" in Mail::Message::Body\n\n$obj->lines()\nInherited, see \"Access to the payload\" in Mail::Message::Body\n\n$obj->print( [$fh] )\nInherited, see \"Access to the payload\" in Mail::Message::Body\n\n$obj->printEscapedFrom($fh)\nInherited, see \"Access to the payload\" in Mail::Message::Body\n\n$obj->string()\nInherited, see \"Access to the payload\" in Mail::Message::Body\n\n$obj->stripTrailingNewline()\nInherited, see \"Access to the payload\" in Mail::Message::Body\n\n$obj->write(%options)\nInherited, see \"Access to the payload\" in Mail::Message::Body\n"
                },
                {
                    "name": "Internals",
                    "content": "Extends \"Internals\" in Mail::Message::Body.\n\n$obj->addTransferEncHandler( $name, <$class|$object> )\nMail::Message::Body::String->addTransferEncHandler( $name, <$class|$object> )\nInherited, see \"Internals\" in Mail::Message::Body::Encode\n\n$obj->contentInfoFrom($head)\nInherited, see \"Internals\" in Mail::Message::Body\n\n$obj->contentInfoTo($head)\nInherited, see \"Internals\" in Mail::Message::Body\n\n$obj->fileLocation( [$begin, $end] )\nInherited, see \"Internals\" in Mail::Message::Body\n\n$obj->getTransferEncHandler($type)\nInherited, see \"Internals\" in Mail::Message::Body::Encode\n\n$obj->isModified()\nInherited, see \"Internals\" in Mail::Message::Body\n\n$obj->load()\nInherited, see \"Internals\" in Mail::Message::Body\n\n$obj->modified( [BOOLEAN] )\nInherited, see \"Internals\" in Mail::Message::Body\n\n$obj->moveLocation( [$distance] )\nInherited, see \"Internals\" in Mail::Message::Body\n\n$obj->read( $parser, $head, $bodytype, [$chars, [$lines]] )\nInherited, see \"Internals\" in Mail::Message::Body\n"
                },
                {
                    "name": "Error handling",
                    "content": "Extends \"Error handling\" in Mail::Message::Body.\n\n$obj->AUTOLOAD()\nInherited, see \"Error handling\" in Mail::Message::Body\n\n$obj->addReport($object)\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback] )\nMail::Message::Body::String->defaultTrace( [$level]|[$loglevel, $tracelevel]|[$level, $callback]\n)\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->errors()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->log( [$level, [$strings]] )\nMail::Message::Body::String->log( [$level, [$strings]] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->logPriority($level)\nMail::Message::Body::String->logPriority($level)\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->logSettings()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->notImplemented()\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->report( [$level] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->reportAll( [$level] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->trace( [$level] )\nInherited, see \"Error handling\" in Mail::Reporter\n\n$obj->warnings()\nInherited, see \"Error handling\" in Mail::Reporter\n"
                },
                {
                    "name": "Cleanup",
                    "content": "Extends \"Cleanup\" in Mail::Message::Body.\n\n$obj->DESTROY()\nInherited, see \"Cleanup\" in Mail::Reporter\n"
                }
            ]
        },
        "DETAILS": {
            "content": "Extends \"DETAILS\" in Mail::Message::Body.\n",
            "subsections": []
        },
        "DIAGNOSTICS": {
            "content": "Warning: Charset $name is not known\nThe encoding or decoding of a message body encounters a character set which is not\nunderstood by Perl's Encode module.\n\nWarning: No decoder defined for transfer encoding $name.\nThe data (message body) is encoded in a way which is not currently understood, therefore no\ndecoding (or recoding) can take place.\n\nWarning: No encoder defined for transfer encoding $name.\nThe data (message body) has been decoded, but the required encoding is unknown. The decoded\ndata is returned.\n\nError: Package $package does not implement $method.\nFatal error: the specific package (or one of its superclasses) does not implement this\nmethod where it should. This message means that some other related classes do implement this\nmethod however the class at hand does not. Probably you should investigate this and probably\ninform the author of the package.\n\nError: Unable to read file $filename for message body scalar: $!\nA Mail::Message::Body::String object is to be created from a named file, but it is\nimpossible to read that file to retrieve the lines within.\n\nWarning: Unknown line terminator $eol ignored\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "This module is part of Mail-Message distribution version 3.012, built on February 11, 2022.\nWebsite: http://perl.overmeer.net/CPAN/\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "Copyrights 2001-2022 by [Mark Overmeer <markov@cpan.org>]. For other contributors see ChangeLog.\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself. See http://dev.perl.org/licenses/\n",
            "subsections": []
        }
    },
    "summary": "Mail::Message::Body::String - body of a Mail::Message stored as single string",
    "flags": [],
    "examples": [],
    "see_also": []
}