Reputation: 373
I need to programmatically set preheader in email using SMTP. Would appreciate pointers on how to accomplish it in c#.
Upvotes: 1
Views: 2155
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