[Tex/LaTex] Email inside \author{} not producing clickable email with \maketitle

authoremailtitles

Using \href{mailto:x@y.z}{x@y.z} I am able to render my email as a clickable text. Is there a way to add email as a part of \author{} field, and have \maketitle generate a link that will call an email client when clicked? I am using KOMA-Script.
MWE:

\documentclass[a4paper,12pt,titlepage=true]{scrartcl}
\usepackage[margin=2cm,footskip=1cm]{geometry}
\usepackage[table]{xcolor}
\usepackage{mathtools,amssymb}
\setlength{\jot}{10pt}
\usepackage{pgfplots}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage[utf8]{inputenc}
\usepackage[pdftex]{hyperref}
\hypersetup{
  pdfauthor={x},
  pdftitle={x},
  colorlinks=false,
  urlbordercolor={0.9 0.5 0.1},
  pdfborderstyle={/S/D/W 1}
}

\begin{document}
\titlehead{\centering x\\y\\z}
\subject{my subject}
\title{my title}
\author{author1\\x@y.z}
\date{2017}
\maketitle
\end{document}

Also, any comments on the preamble regarding (improper) use of packages are welcome. Thanks!

Best Answer

As gernot and samcarter suggested \author{author1\\ \href{mailto:x@y.z}{x@y.z}} solves the issue. Thank you!

Related Question