Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » custom   (RSS)

Example of setting headers with System.Web.Mail

//============================ Optional Settings ======================== if (this.Priority.Length != 0) { if (this.Priority == "Non Urgent") { oMsg.Priority = System.Web.Mail.MailPriority.Low; }; if (this.Priority == "Normal") { oMsg.Priority = System.Web.Mail.MailPriority.Normal;

Example of setting headers with CDOSYS

//============================ Optional Settings ======================== if (this.Priority.Length != 0) { // Well... it seems that priority is not what needs to be set to get priority set... // Looks like setting importance will set priority... at least

Example of setting headers with System.Net.Mail

Here is a partial sample on setting header fields with System.Net.Mail: //============================ Instance Message =========================== oMsg = new System.Net.Mail.MailMessage(); //============================ Optional Settings ===========================

How to use PS_INTERNET_HEADERS with cdo 1.21 for custom properties.

'This example uses PS_INTERNET_HEADERS for setting a custom property const smbx="mymailbox" ' TODO: Change const ssrv="myserver" ' TODO: Change const mycdoInetPset = "8603020000000000C000000000000046" const myXheader = "X-SPAM" ' TODO: Change to your
 
Page view tracker