Note: The features listed in this page are supported only in GroupDocs.Viewer Cloud V1
When rendering email messages by GroupDocs.Viewer uses English language to render field labels such as (From, To, Subject etc.). To change field labels you can set FieldLabels on EmailOptionsclass.
Viewer supports following field labels:
Field
Label
Anniversary
Anniversary
Bcc
Bcc
Birthday
Birthday
Business
Business
Business Address
Business Address
Business Fax
Business Fax
BusinessHomepage
BusinessHomepage
Company
Company
Department
Department
Email
Email
Email Display As
Email Display As
Email2
Email2
Email2 Display As
Email2 Display As
Email3
Email3
Email3 Display As
Email3 Display As
End
End
First Name
First Name
From
From
Full Name
Full Name
Gender
Gender
Hobbies
Hobbies
Home Address
Home Address
Importance
Importance
Job Title
Job Title
Last Name
Last Name
Location
Location
Middle Name
Middle Name
Mobile
Mobile
Organizer
Organizer
Other Address
Other Address
PersonalHomepage
PersonalHomepage
Profession
Profession
Recurrence
Recurrence
Recurrence Pattern
Recurrence Pattern
Required Attendees
Required Attendees
Sent
Sent
Show Time As
Show Time As
Spouse/Partner
Spouse/Partner
Start
Start
Subject
Subject
To
To
User Field 1
User Field 1
User Field 2
User Field 2
User Field 3
User Field 3
User Field 4
User Field 4
The following GroupDocs.Viewer Cloud REST API resource has been used to Render Email as HTML.
cURL example
# Set field labels when rendering pagescurl --request POST \
url https://api.groupdocs.cloud/v1/viewer/sample.msg/html/pages \
header 'authorization: [Access Token]'\
header 'content-type: application/json'\
data '{"emailOptions": {"fieldLabels": [{"Field":"From", "Label":"Sender"}, {"Field":"To", "Label":"Receiver"}]}}'# Retrieve created pagecurl request GET \
url https://api.groupdocs.cloud/v1/viewer/sample.msg/html/pages/1 \
header 'authorization: [Access Token]'
The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.
Render Email documents as Image with Setting to set Page Size
It is possible to set output page size for rendering Email documents into PDF.
The following GroupDocs.Viewer Cloud REST API resource has been used to Render Email as HTML.
cURL example
# Set page size when rendering pages curl request POST \ url http://api.groupdocs.cloud/v1/viewer/message.msg/image/pages \ header 'authorization: [Access Token]'\ header 'content-type: application/json'\
data '{"emailOptions": {"pageSize": "A0"}}'# Retrieve created page curl request GET \ url http://api.groupdocs.cloud/v1/viewer/message.msg/image/pages/1 \ header 'authorization: [Access Token]'
The API is completely independent of your operating system, database system or development language. We provide and support API SDKs in many development languages in order to make it even easier to integrate. You can see our available SDKs list here.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.