Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: X-Mailer editing Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
nightwishler
Newbie
Newbie


Joined: 24 September 2015
Location: Germany
Online Status: Offline
Posts: 1
Posted: 24 September 2015 at 1:38am | IP Logged Quote nightwishler

Hi, I want to customize Header x-mailer
using webMail Lite .ASP net ...

someone any ideas?

greetings
Back to Top View nightwishler's Profile Search for other posts by nightwishler
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 25 September 2015 at 1:45am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide