Author |
|
nightwishler Newbie
Joined: 24 September 2015 Location: Germany
Online Status: Offline Posts: 1
|
Posted: 24 September 2015 at 1:38am | IP Logged
|
|
|
Hi, I want to customize Header x-mailer
using webMail Lite .ASP net ...
someone any ideas?
greetings
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 25 September 2015 at 1:45am | IP Logged
|
|
|
You can try modifying App_Code\Smtp.cs file, SendMail method holds quite a few lines on setting message headers and properties:
Code:
...
messageToSend.Subject = message.MailBeeMessage.Subject;
messageToSend.ConfirmRead = message.MailBeeMessage.ConfirmRead;
messageToSend.Date = DateTime.Now;
messageToSend.BodyHtmlText = message.MailBeeMessage.BodyHtmlText;
messageToSend.BodyPlainText = message.MailBeeMessage.BodyPlainText; |
|
|
There, you can add a line:
Code:
messageToSend.XMailer = "My Custom Mailer Name"; |
|
|
Though IIS usually recompiles files found under App_Code, you might need to force the recompilation by running compile.bat file found in root WebMail directory.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|