[Web4lib] Creating e-mail addresses with SSI

Robert Sullivan robert.g.sullivan at gmail.com
Fri Dec 22 10:08:39 EST 2006


I'm working on a site redesign with server side includes.  I would
like to use SSIs to create a unique e-mail contact address on each
page - many people submit genealogical inquiries which are less
cryptic if I know what page they were looking at.

DOCUMENT_NAME won't get me a unique page name.  DOCUMENT_URI will, but
I am wary of creating an e-mail address with slashes in it.

If anyone knows that slashes are generally accepted by e-mail software
(it worked with Google Mail but took a while) then I can do it that
way.  Otherwise, I was browsing through the Variable Substitution
section of

<http://httpd.apache.org/docs/1.3/mod/mod_include.html>

and it appeared that if I could figure out a way to convert the
slashes to e.g. hyphens I could then append the rest of the address
and everything would work.  Does anyone have an idea of how to do that
conversion?

Thanks for any advice,

-- 
Bob Sullivan
Schenectady Digital History Archive
<http://www.schenectadyhistory.org/>
Schenectady County (NY) Public Library


More information about the Web4lib mailing list