Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

My HTTP server requires me to move the image files into a directory other than MailMan is installed in, but that breaks the image references, what do I do?

0
Posted

My HTTP server requires me to move the image files into a directory other than MailMan is installed in, but that breaks the image references, what do I do?

0

It is not possible for MailMan to include a “MailMan()” keyword in the templates so that the image URLs can be automatically rewritten. This is because the keyword would make the image URLs invalid in the raw HTML template files, which would make customizing the templates with an HTML editor very difficult. Originally there was no way to correct your image URLs other than by actually editing the templates, but this is an inconvenient solution. To rectify this situation and make things easier for site maintainers, we have included the “$strURLImageLocation” configuration variable. This variable contains a string that will be prepended to the image URLs when the template is processed at runtime. To use this variable, set it to the exact value that you want prepended to image names in order to make them into URLs that will point to your image directory. For instance, if you bury your images in an “images” directory under the directory where MailMan is installed, set this to ‘images/’ (wit

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123