We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Email address Hyperlink

Hi ,

i have few email addresses in string variable which i write in a table.

using builder.write("abc.de@gmail.com");

i want to create a hyperlink for the email addresses to directly open a new mail in outlook.

Thank you.

Hi Shilpa,

Thanks for your inquiry. Please use following code example to achieve your requirements. Hope this helps you.

<pre style=“background-color: rgb(255, 255, 255); font-family: “Courier New”; font-size: 9pt;”>Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

// Specify font formatting for the hyperlink.

builder.insertHyperlink("abc.de@gmail.com", "mailto:abc.de@gmail.com", false);

// Revert to default formatting.

doc.save(MyDir + “Out v16.11.0.docx”);