\ProvidesClass{mylettre}

\PassOptionsToClass{paper=a4,foldmarks=false,NF,fromphone,fromemail,
                    fromurl,backaddress=off,subject=titled}{scrlttr2}

\newif\if@english
\newif\if@telecom

\DeclareOption*{
  \PackageError{myfonts}{Unknown option `\CurrentOption'}
}

\DeclareOption{english}{\@englishtrue}
\DeclareOption{telecom}{\@telecomtrue}

\ProcessOptions
\LoadClass{scrlttr2}

\pagestyle{empty}
\if@english
\setkomavar{fromname}{Pierre Senellart}
\else
\setkomavar{fromname}{Pierre \bsc{Senellart}}
\setkomavar{placeseparator}{, le }
\fi

\if@telecom
\setkomavar{fromaddress}{T\'el\'ecom ParisTech, D\'epartement INFRES\\46 rue Barrault\\75634 Paris Cedex 13, France}
\setkomavar{fromphone}{(+33)~1~45~81~77~59}
\setkomavar{fromemail}{\textsf{pierre.senellart@telecom-paristech.fr}}
\else
\setkomavar{fromaddress}{14 rue du Cherche-Midi\\75006 Paris, France}
\setkomavar{fromphone}{(+33)~9~52~71~19~06}
\setkomavar{fromemail}{\textsf{pierre@senellart.com}}
\fi

\setkomavar{fromurl}{\textsf{http://pierre.senellart.com/}}

\setkomavar{place}{Paris}
