Skip Ribbon Commands
Skip to main content
SharePoint
How to put e-mail links on SU web pages
 
                                                                      Afrikaans

NB! This procedure applies solely to registered pagemasters of University web pages.

Information Technology has implemented the blocking of junk e-mail (more well-known as "SPAM"). There are however numerous web pages on which the email addresses are displayed in such a manner that it can be easily forged.

Email addresses displayed on web pages then becomes the target of SPAM and our servers are bombarded with these unwanted emails. Some of the SPAM escapes the filters and are still delivered, it is irritating and time-wasting to the receivers.

All email Addresses on web pages should therefore be coded as follows:

Add the following line of code to the <HEAD></HEAD> section of all the Web pages you edit on Stellenbosch University Web servers:

  • <SCRIPT language="JavaScript" SRC="http://www.sun.ac.za/scripts/common.js"></SCRIPT>

When referring to an e-mail address on a Web page in the
<BODY></BODY> section, code it as follows:

  • Where you would usually have:
    <A HREF="mailto:username@sun.ac.za">username@sun.ac.za</A>
  • Please use the JavaScript function 'Epos':
    <SCRIPT language="JavaScript">document.write(EPos('emanresu', 'Mail me',''))></SCRIPT>
  • E.g. if the email address is Magriet@sun.ac.za, the HTML code must be:
    • <SCRIPT language="JavaScript">document.write(EPos('teirgam','Magriet Treurnicht',''))</SCRIPT>
    • (Username of person written in reverse: Magriet becomes teirgam).

  • The following is then displayed on the webpage:
    • Magriet Treurnicht
    • and in the taskbar only Magriet Treurnicht is displayed in stead of: mailto:magriet@sun.ac.z

Please test all email links on the page and make sure that mailto: does not appear in the taskbar when the mouse moves over the email link on the page.

IT Support Homepage