Method MIMEContent():attachAlternative() Professional
Attach MIMEContent object as alternative content
:attachAlternative( <oMIMEContent> ) --> lSuccess
The method :attachAlternative() returns .T. (true), if the object that is passed as a parameter was successfully attached. In case of an error, .F. (false) is returned.
In order to attach an object of class MIMEContent to another object of the same class, :attachAlternative() can be used. Calling this method automatically transforms a single-part content to a multi-part content, if required.
With :attachAlternative(), it is possible to compose e-mails with alternative content. When sending html e-mails, for example, a text version of the html content can be attached using this method. Thus, the e-mail can also be viewed by clients that cannot display html pages. Please refer to the sample section of the MIMEMessage class function for an example.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.