<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
   <TITLE>Send and Receive Thai mail in X Window environment</TITLE>
   <META NAME="GENERATOR" CONTENT="Mozilla/3.01Gold (X11; I; Linux 2.0.0 i586) [Netscape]">
   <META NAME="Author" CONTENT="Poonlap Veerathanabutr">
   <META NAME="Description" CONTENT="Explain how to send and receive Thai mail on internet using X Window System.">
   <META NAME="Keywords" CONTENT="X, Thai, Thai mail, mail, ZzzThai, THai language">
   <META NAME="Classification" CONTENT="Internet, Conputer science">
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EF" VLINK="#55188A" ALINK="#FF0000">

<H1 ALIGN=CENTER>
<HR WIDTH="50%"></H1>

<H1 ALIGN=CENTER><IMG SRC="letters.xbm" HEIGHT=48 WIDTH=48 ALIGN=CENTER><FONT COLOR="#000080">Send
and Receive Thai mail in  X Window environment</FONT><BR>

<HR WIDTH="50%"></H1>

<H3>Introduction</H3>

<P>This document aims to show how can we use exist mail utilites to send
Thai mail via internet. Almost of examples here have done by Linux Slacware3.1
and SunOs4.</P>

<P>We will use almost xmodmap utility to input Thai characters to mail
program. Make sure that you have Thai fonts and .Xmodmap for your system.</P>

<H3>Preparation</H3>

<P>Make sure you are using xterm that can display Thai font.</P>

<UL>
<PRE>%xterm -fn thai_font_name &amp;</PRE>
</UL>

<P>Make sure your keymap was modified to Thai keymap, use xmodamap and
.Xmodmap file.</P>

<UL>
<PRE>%xmodmap .Xmodmap</PRE>
</UL>

<P>For more information, <A HREF="http://www.fedu.uec.ac.jp/ZzzThai/xio/">http://www.fedu.uec.ac.jp/ZzzThai/xio/<BR>
</A>Now, you are ready to use one of these mail programs.</P>

<P>
<HR WIDTH="100%"></P>

<H3 ALIGN=CENTER><FONT COLOR="#FF0000">Contents</FONT></H3>

<CENTER><P ALIGN=CENTER><B><A HREF="#1">1. mailto command (the simple one)</A></B></P></CENTER>

<CENTER><P><B><A HREF="#2">2. pine</A></B></P></CENTER>

<CENTER><P><B><A HREF="#3">3. Netscape mail</A>l</B></P></CENTER>

<CENTER><P><B><A HREF="#4">4. likit</A></B></P></CENTER>

<CENTER><P>
<HR WIDTH="100%"></P></CENTER>

<H2><A NAME="1"></A>1. mailto command (the simple one)</H2>

<P>In unix, there is simple mail utility called mail (see <A HREF="./man/mailx">mailx</A>)
to send and receive mail. This mail utility accept only 7 bit character
set which is not enough to encode Thai character code. mailto utility is
the extended mail utility to send mail in MIME format. As the name &quot;mailto&quot;
said this is mail sending program not for reading.</P>

<H3>Start to use mailto</H3>

<P>Run mailto program.</P>

<UL>
<PRE>%mailto -a ISO-8859-1</PRE>
</UL>

<P>Press Mode_switch key to input Thai characters. </P>

<P><IMG SRC="mailto_th.gif" HEIGHT=449 WIDTH=629></P>

<P>You can receive mail by using pine, netscape mail, mail program that
support MIME format. This is man page for <A HREF="./man/mailto"">mailto
</A>program (This example was tested on Linux Slackware). </P>

<P>
<HR WIDTH="100%"></P>

<H2><A NAME="2"></A>2. pine </H2>

<P>pine is a popular mail program on unix from <A HREF="http://www.washington.edu/pine/">the
university of washington.</A> Pine supports MIME format so we can use pine
to send Thai mail. This example is PINE version 3.93, some version don't support iso-8859-1 character set. This is the man page for <A HREF="./man/pine">pine</A>.</P>

<H3>2.1.Setup pine</H3>

<P>You may need to config pine to accept ISO-8859-1 character set. From
main menu, choose SETUP then type &quot;C&quot; to enter configure menu.
Find character-set and press &quot;A&quot; to add value. Add value to &quot;ISO-8859-1&quot;
like the pictures below.</P>

<P><IMG SRC="pine_setup_iso.gif" HEIGHT=487 WIDTH=669></P>

<P>Save configuration and return to main menu.</P>

<H3>2.2. Send Thai mail from pine</H3>

<P>Before you send Thai mail from pine, make sure that you are running
pine from xterm with thai font. To compose Thai message, press Mode_switch
key and type. Control-X to send that mail. This is an example.</P>

<P><IMG SRC="pine_send.gif" HEIGHT=297 WIDTH=621></P>

<H3>2.3. Receive Thai mail by pine</H3>

<P>Before you receiveThai mail by pine, make sure that you are running
pine from xterm with thai font. Read mail as the English mail. This is
an example.</P>

<P><IMG SRC="pine_get.gif" HEIGHT=487 WIDTH=665></P>

<P>You may notice that when we typed Thai characters, SARA, WANNAYUK. Pine
can not display character's position correctly. When we receive the mail,
there is no problem about that.</P>

<P>
<HR WIDTH="100%"></P>

<H2><A NAME="3"></A>3. Netscape mail</H2>

<P>There is a good explanation on how to use Netscape mail with Thai, see
<A HREF="http://www.fedu.uec.ac.jp/ZzzThai/unix/nets-mail/nets-mail-big.html">http://www.fedu.uec.ac.jp/ZzzThai/unix/nets-mail/nets-mail-big.html<BR>
</A>Netscape mail is easy to use and available for many platform. Try it.</P>

<P>
<HR WIDTH="100%"></P>

<H2><A NAME="4"></A>4. Likit</H2>

<P>Also see <A HREF="http://www.fedu.uec.ac.jp/ZzzThai/unix/likit">http://www.fedu.uec.ac.jp/ZzzThai/unix/likit/
</A>Likit is actually Thai editor for X by <A HREF="http://www.ctrl.titech.ac.jp/~vuthi/">Vuthichai
Amphornaramvej </A>, you can send Thai email with Likit too. Likit does
not require Thai fonts or xmodamp configuration.</P>



<P><!--#include virtual="/FEDU/FEDUusers/Thailand/ZzzThai/unix/tail.shtml" --></P>

<CENTER><P>|<A HREF="mailto:uecthai@fedu.uec.ac.jp">--uecthai@fedu.uec.ac.jp--</A>|<A HREF="http://www.fedu.uec.ac.jp/ZzzThai/">--ZzzThai
Main Page--</A>|</P></CENTER>

<CENTER><P><!--#exec cmd="/export/www/cgi-bin2/ZzzThai/counter /export/www/cgi-bin2/ZzzThai/Counter/unix/xmailer.dat" --></P></CENTER>
<DIV ALIGN=right><P><A HREF="http://www.fedu.uec.ac.jp/ZzzThai/staffs.html">-PLV</A></P></DIV>

</BODY>
</HTML>














































































































