Author |
|
JulianB Newbie
Joined: 28 April 2008 Location: Germany
Online Status: Offline Posts: 4
|
Posted: 28 April 2008 at 6:30am | IP Logged
|
|
|
hello everybody,
i have a problem when sending mails whith our online smtp server.
like someone mentioned in a thread before pop3 requires <account@domain>, but smtp requires just <account>.
the files mentioned in the other thread do not exist in my version.
currently using latest webmail lite version (4.1.11).
so if you could post me which files i need to modify so that pop/smtp matches the requirements of our server i would be very thankful
greetings
julian beckmann
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 28 April 2008 at 7:21am | IP Logged
|
|
|
Instructions for ASP.NET version of WebMail Lite 4.1 are the following.
1. You should modify App_Code/Smtp.cs file, the beginning of SendMail method (below the line 22). Add the following code:
Code:
int atPos = account.MailIncomingLogin.IndexOf('@');
account.MailIncomingLogin = account.MailIncomingLogin.Substring(0, atPos);
|
|
|
2. Re-compile the application.
3. Use full e-mail address as username for logging into your mailbox.
Best regards,
Andrew
|
Back to Top |
|
|
JulianB Newbie
Joined: 28 April 2008 Location: Germany
Online Status: Offline Posts: 4
|
Posted: 28 April 2008 at 8:45am | IP Logged
|
|
|
thanks andrew for your quick reply.
but it seems not to work.
might that i do not recompile the application correct.
1. i run iisreset in the cmd box
2. i delete the files in "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files"
3. i revisit the webmailer page
event log on the smtp server still says that it cant log in <account@domain> instead of <account>.
server.AccountName = ((...));
is the line for login information?
is there a way to print a message to the frontend? like:
throw new WebMailMailBeeException(server.AccountName);
so that i can see what the current AccountName
is?
greetings,
julian beckmann
|
Back to Top |
|
|
JulianB Newbie
Joined: 28 April 2008 Location: Germany
Online Status: Offline Posts: 4
|
Posted: 28 April 2008 at 8:52am | IP Logged
|
|
|
because i can not edit,
maybe you could add 2 drop down boxes in the mail admin interface and on the extended login like:
pop account uses:
o email
o username
stmp account uses:
o same as pop
o email
o username
greeting
julian beckmann
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 29 April 2008 at 3:14am | IP Logged
|
|
|
We've applied the above change to the original version of WebMail Lite ASP.NET and recompiled it for you. You can download it here.
Best regards,
Andrew
|
Back to Top |
|
|
JulianB Newbie
Joined: 28 April 2008 Location: Germany
Online Status: Offline Posts: 4
|
Posted: 29 April 2008 at 5:26am | IP Logged
|
|
|
hello,
thank you for re-compiling the application.
it works now.
which tool do you use for re-compile?
the aspnet_compiler.exe?
grettings,
julian beckmann
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 29 April 2008 at 5:55am | IP Logged
|
|
|
We use MS Visual Studio 2005 SP1.
Best regards,
Andrew
|
Back to Top |
|
|