Chapter 5 - Technical reference

5.1 - WM files

Filename

Description

attachment-no.wm

No attachment text.

attachment-table.wm

Attachment table

attachment-yes.wm

Attachment exists.

composeemail.wm

Compose email

footer.wm

Footer html.

header.wm

Header html.

help.wm

Help button html.

jump-table.wm

Jump email page table.

listemails-table.wm

List emails table.

listemails.wm

List emails main html page.

loginerror.wm

Access denied page.

newuser-thankyou.wm

Page displayed after new user registration.

newuser.wm

New User Registration page.

nomail.wm

No mail text.

priority-high.wm

High priority text.

priority-low.wm

Low priority text.

priority-normal.wm

Normal priority text.

reademail.wm

Read email page.

servererror.wm

Server Error page.

userlogin.wm

User login page.

userlogin2.wm

User login page for New User Registration feature.

5.2 - WM file variables

Variable

Location

Description

*!WMVERSION!*

Anywhere

WebMail/2 logo name

*!WMUSER!*

Anywhere

User email ID, effective after user login.

*!WMPASS!*

Anywhere

User password, only used for administration, effective after user login.

*!WMFILENAME!*

Anywhere

The actual CGI filename (webmail2.cmd), reported by SCRIPT_NAME environment.

*!WMEMAILNUM!*

Inbox, Read

The number represents a specific email on the email server.

*!WMEMAILFROM!*

Inbox, Read, Compose

Email source address (From: field).

*!WMEMAILSUBJECT!*

Inbox, Read, Compose

Email subject (Subject: field)

*!WMEMAILDATE!*

Inbox, Read

Email date (Date: field)

*!WMEMAILBODY!*

Read, Compose

The body of the email while reading, or replying.

*!WMEMAILTABLE!*

Inbox

Table listing emails on email server.

*!SERVERERROR!*

Anywhere

If there is an error, this variable is initialized.

*!WMATTACHMENT!*

Inbox, Read

Shows attachment status.

*!WMEMAILPRIORITY!*

Inbox, Read

Show email priority level.

*!WMAUTHID!*

Anywhere

Unique ID number set by cookies, effective after user login.

*!WMATTACHMENTSTABLE!*

Read

List of file attachments.

*!WMATTACHFILE!*

Attachment Table

Attachment filename.

*!WMJUMPTABLE!*

Inbox

Page numbers of email pages.

*!WMJUMPPAGE!*

Jump Table

Page number.

*!WMPREVEMAILNUM!*

Read

Previous email number.

*!WMNEXTEMAILNUM!*

Read

Next email number

*!WMEMAILCC!*

Compose

List of emails for Cc: field, separated by spaces.

*!WMEMAILREPLYTO!*

Compose

Replaced with the From: email when Reply-To: exists.

*!WMPAGE!*

Anywhere

Points to the current Inbox page.