What should you do?

You are developing a .NET Framework 2.0 enterprise application on Certkiller -WS552.
The application will be used to allow the users to send e-mail messages and should allow users to send HTML-based e-mails,
but the users should not be able to use the HTML tag to embed images in the HTML document.
The images are not externally hosted so instead the images must be sent as part of the e-mail message.
You are required to select which class to use.
What should you do?

You are developing a .NET Framework 2.0 enterprise application on Certkiller -WS552.
The application will be used to allow the users to send e-mail messages and should allow users to send HTML-based e-mails,
but the users should not be able to use the HTML tag to embed images in the HTML document.
The images are not externally hosted so instead the images must be sent as part of the e-mail message.
You are required to select which class to use.
What should you do?

A.
The AlternateView class should be used.

B.
The Attachment class should be used.

C.
The MailAddress class should be used.

D.
The LinkedResource class should be used.

Explanation:
In the scenario you should make use of the LinkedResource class as it is used to embed external resources in an e-mail attachment such as images in an HTML attachment.
Incorrect Answers:
A: The class in question could be used in the scenario but the AlternateView class itself cannot be used to embed images in the HTML document.
B: The Attachment class should not be used in the scenario as the class only allows you to send images as an attachment.
C: The usage of this class is incorrect as it is used to store the address information for e-mail messages in the scenario.



Leave a Reply 1

Your email address will not be published. Required fields are marked *