Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Toolkits > age_mime
create/1
Description
create/1 is an Erlang function exported by "age_mime" module.
This function create a single-part MIME record.
References
•age_mime.hrl
•get_types/0
•create_multipart/3
Parameters
Name
Type
Header
list()
Optional list of MIME header fields.
Result
Value or Type
#age_mime{}
Returns a MIME message record.
Code Sample
> age_mime:create(). {age_mime, [ {'message-id', "2581114C-D8F5-FCF2-9010-B7287F20C4DE"}, {'mime-version', "1.0"}, {'user-agent', "BINETIX AGE/2019.1 (engine:age_mime; vsn:1.0)"}, {date, "Fri, 26 Jul 2019 08:02:09 GMT"} ], "", [] }