Custom login logo works in preview, but does not show up on actual login page?
Question asked by josh levine - 11/30/2015 at 10:13 AM
Answered
I have "Enable custom login page HTML" checked and the following code entered...
<div id='companyinfo' style='max-width:280px;'> 

    <center>

    <img style='max-width:240px;max-height:140px;' src='the correct URL is here but forum wont let me post it' />

    </center>

</div>
The logo seems to be uploaded correctly and shows up at the URL...
 
ImagesResourceHandler.ashx?file=2147483647.png
 
...(forum will not let me post full URL, but you can add https and mail.josh.com at the front to test).
 
When I click "preview" from the settings page, the login page shows the logo correctly, but if I hit "save" and then goto the real login page, the logo does not show up.
 
What am I doing wrong?
 
Thanks!

11 Replies

Reply to Thread
0
Bruce Barnes Replied
Looking up:
 
 
shows an error
Bruce Barnes
ChicagoNetTech Inc
brucecnt@comcast.net

Phonr: (773) 491-9019
Phone: (224) 444-0169

E-Mail and DNS Security Specialist
Network Security Specialist

Customer Service Portal: https://portal.chicagonettech.com
Website: https://www.ChicagoNetTech.com
Security Blog: http://networkbastion.blogspot.com/

Web and E-Mail Hosting, E-Mail Security and Consulting
0
Paul Blank Replied
the URL does work (shows his logo)..

https then : then // then mail.josh.com then / then
ImagesResourceHandler.ashx?file=2147483647.png

0
Bruce Barnes Replied

That is now what you need in the CSS.

You need a path to the logo on the local SmarterMail machine - and, because you are running HTTPS, it must also be https, IE:

https://securemail.chicagonettech.com/ClientImages/CNT/cnt352.png

By changing the call, your logo should show up.

Bruce Barnes
ChicagoNetTech Inc
brucecnt@comcast.net

Phonr: (773) 491-9019
Phone: (224) 444-0169

E-Mail and DNS Security Specialist
Network Security Specialist

Customer Service Portal: https://portal.chicagonettech.com
Website: https://www.ChicagoNetTech.com
Security Blog: http://networkbastion.blogspot.com/

Web and E-Mail Hosting, E-Mail Security and Consulting
0
Bruce Barnes Replied
It will not work from within CSS.
Bruce Barnes
ChicagoNetTech Inc
brucecnt@comcast.net

Phonr: (773) 491-9019
Phone: (224) 444-0169

E-Mail and DNS Security Specialist
Network Security Specialist

Customer Service Portal: https://portal.chicagonettech.com
Website: https://www.ChicagoNetTech.com
Security Blog: http://networkbastion.blogspot.com/

Web and E-Mail Hosting, E-Mail Security and Consulting
0
Matt Petty Replied
Employee Post Marked As Answer
I put your html into mine along with your image.
It seemed to work fine for me. You could try removing https and using http instead.
Matt Petty
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
josh levine Replied
Yes, the server was serving the PNG fine, the problem was that it was not using the custom HTML code as entered even though the "use custom HTML" was checked and the settings were saved. I cleared everything out and restarted and it worked with the exact same settings, so there seems to be something strange going on here you might want to look into. Thanks.
0
Matt Petty Replied
Employee Post
It is working now then?
So you cleared the html and rewrote it?
Matt Petty
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
josh levine Replied
Another datapoint: If I now hit the "preview" button, the preview that comes up flashes between the old setting and the new settings about once per second. Looks maybe a caching bug in the javascript that pulls the login page custom html down?
0
Matt Petty Replied
Employee Post
You will see this if you have multiple SmarterMail tabs (usually settings) open.
Matt Petty
Software Developer
SmarterTools Inc.
(877) 357-6278
www.smartertools.com
0
josh levine Replied
Yes, it seems be correctly injecting the custom HTML now. Note that I had tried clearing the HTML and rewriting and checking and unchecking the enable boxes and saving, but none had worked before. I came back to it a few hours later after my session expired and the custom HTML in the text box was *not* what it was from the last save. I cleared it out and re-entered the HTML with the logo in it and saved it and it worked. Note that the 1st time I pulled up the login page after saving the new HTML (from a different computer, BTW), it hung and did not load at all. After hitting refresh a few minutes later, the login page then loaded correctly and had the custom HTML. Almost certainly some some bug in there. I looked in the Service log and IIS log and did not see any errors that looked related. LMK if there are any logs or anything you'd like to look at. Thanks.
0
josh levine Replied
BTW, this is a fresh IIS8 server box just set up over the weekend with 14.4 installed over migrated 13.X files if that matters. Thanks.

Reply to Thread