junli antolovich
junli antolovich

Reputation: 373

How to set preheader for email with smtp?

I need to programmatically set preheader in email using SMTP. Would appreciate pointers on how to accomplish it in c#.

Upvotes: 1

Views: 2155

Answers (1)

Yousuf
Yousuf

Reputation: 3275

You can do this by putting preheader text in a invisible div.

<style type="text/css">
.email-pre-header { display: none !important; }
</style>

<div class="email-pre-header">Sample PreHeader Text</div>

Upvotes: 5

Related Questions