SmtpClient uses lowercase headers
-
Hi there, Got a strange problem here... Basically, our application sends out an email with a custom X-Header. On the dev box, the header comes out in mixed case (eg "X-EmailID"), but when we move the app to the live box, the header in the email is converted to lower case (e.g. "x-emailid") I need to keep the capitalisation. Has anyone seen this before, and did you find a solution? I've googled this but haven't found much, other than people saying they have seen the problem but no fix - there has to be some config that is different between the two boxes, surely!?! Any help greatly appreciated Baz
-
Hi there, Got a strange problem here... Basically, our application sends out an email with a custom X-Header. On the dev box, the header comes out in mixed case (eg "X-EmailID"), but when we move the app to the live box, the header in the email is converted to lower case (e.g. "x-emailid") I need to keep the capitalisation. Has anyone seen this before, and did you find a solution? I've googled this but haven't found much, other than people saying they have seen the problem but no fix - there has to be some config that is different between the two boxes, surely!?! Any help greatly appreciated Baz
Try to use the
System.Web.Mail
classes, which make use of Microsoft'sCollaboration Data Objects
to send emails. Ignore compiler's warning messages for obsolete classes.SkyWalker
-
Try to use the
System.Web.Mail
classes, which make use of Microsoft'sCollaboration Data Objects
to send emails. Ignore compiler's warning messages for obsolete classes.SkyWalker
-
Strangely enough, I'm just investigating that now! Will report back if it works Still don't understand why it works on the dev box but not on live...? :wtf: Cheers! Baz
oki doki - System.Web.Mail works, but I'd prefer to use System.Net.Mail if possible, as System.Web.Mail is depreciated in .NET 2.0 So has anyone got any ideas as to why this works on the dev box but not on the live? All config files are identical, so it's nothing in there... :mad: Cheers! Baz
-
oki doki - System.Web.Mail works, but I'd prefer to use System.Net.Mail if possible, as System.Web.Mail is depreciated in .NET 2.0 So has anyone got any ideas as to why this works on the dev box but not on the live? All config files are identical, so it's nothing in there... :mad: Cheers! Baz