Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Use special identity by default Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
hemorieder
Newbie
Newbie


Joined: 17 June 2014
Online Status: Offline
Posts: 7
Posted: 17 June 2014 at 2:10am | IP Logged Quote hemorieder

Hey,

every user has a one identity in my case. I want that by default this identity is used and not the standard account. Is this possible ?

Would be perfect :)
Back to Top View hemorieder's Profile Search for other posts by hemorieder
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 17 June 2014 at 2:12am | IP Logged Quote Igor

That's not currently available. We're considering adding that in future version of the product, and right now we're researching an optimal way for this to be presented in the interface while keeping it clear and simple.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
hemorieder
Newbie
Newbie


Joined: 17 June 2014
Online Status: Offline
Posts: 7
Posted: 17 June 2014 at 2:27am | IP Logged Quote hemorieder

hmmm okay,

is it possible to set the send email adress for each user fixed ?

because my problem is:

my hoster uses as mail login:     mail_XYC_box
And so the default send email in AF ist : mail_XYC_box@domain.com

But i want that it is:   name@domain.com

Is it possible to make that fix for every user (5 accounts) ?
Back to Top View hemorieder's Profile Search for other posts by hemorieder
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 17 June 2014 at 2:41am | IP Logged Quote Igor

It's possible to implement custom email/username mapping via this plugin.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
hemorieder
Newbie
Newbie


Joined: 17 June 2014
Online Status: Offline
Posts: 7
Posted: 17 June 2014 at 3:08am | IP Logged Quote hemorieder

Yeah that looks good, but i have one little problem, only the first 2 logins work (tom, john) and not the others (tim, bill,sam,peter) any idea why ?

if (empty($sIncLogin))
          {
               $sIncLogin = str_replace('tom@test.de', 'mailbox_p1', $sEmail);     
               $sIncLogin = str_replace('john@test.de', 'mailbox_p2', $sEmail);
               $sIncLogin = str_replace('tim@test.de', 'mailbox_p3', $sEmail);
               $sIncLogin = str_replace('bill@test.de', 'mailbox_p15', $sEmail);
               $sIncLogin = str_replace('sam@test.de', 'mailbox_p7', $sEmail);
               $sIncLogin = str_replace('peter@test.de', 'mailbox_p4', $sEmail);
          }
          else
          {     
               $sIncLogin = str_replace('tom@test.com', 'mailbox_p1', $sIncLogin);
               $sIncLogin = str_replace('john@test.com', 'mailbox_p2', $sIncLogin);
               $sIncLogin = str_replace('tim@test.com', 'mailbox_p3', $sIncLogin);
               $sIncLogin = str_replace('bill@test.com', 'mailbox_p15', $sIncLogin);
               $sIncLogin = str_replace('sam@test.com', 'mailbox_p7', $sIncLogin);
               $sIncLogin = str_replace('peter@test.com', 'mailbox_p4', $sIncLogin);
          }
Back to Top View hemorieder's Profile Search for other posts by hemorieder
 
hemorieder
Newbie
Newbie


Joined: 17 June 2014
Online Status: Offline
Posts: 7
Posted: 17 June 2014 at 3:18am | IP Logged Quote hemorieder

the real logins like "mailbox_p7" are working
Back to Top View hemorieder's Profile Search for other posts by hemorieder
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 17 June 2014 at 3:50am | IP Logged Quote Igor

Code:
               $sIncLogin = str_replace('tom@test.de', 'mailbox_p1', $sEmail);      
               $sIncLogin = str_replace('john@test.de', 'mailbox_p2', $sEmail);
               $sIncLogin = str_replace('tim@test.de', 'mailbox_p3', $sEmail);
               ...


It's not going to work as expected, every next line cancels the effect of the previous one replacing value of $sIncLogin. Try something like this instead:

Code:
               if ($sEmail == 'tom@test.de') $sIncLogin = 'mailbox_p1';
               if ($sEmail == 'john@test.de') $sIncLogin = 'mailbox_p2';
               if ($sEmail == 'tim@test.de') $sIncLogin = 'mailbox_p3';
               ...


--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
hemorieder
Newbie
Newbie


Joined: 17 June 2014
Online Status: Offline
Posts: 7
Posted: 17 June 2014 at 4:28am | IP Logged Quote hemorieder

yeah that works great! thank you very much :)
Back to Top View hemorieder's Profile Search for other posts by hemorieder
 

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