Clickable email address to open outlook

Hi all,

I am hoping to have my email address, hyperlinked on the sidebar, so when my colleagues click on it, it automatically opens outlook for them with my email address in the to field.

I am not deploying my dashboard to a server yet, so everyone would lunch my code on their machine at least in the first phase of my solution.

Thanks,
Amin

Hey @aedalat,

You should be able to use HTML mailto links inside markdown unsafe HTML, like in the following :

st.sidebar.markdown('<a href="mailto:hello@streamlit.io">Contact us !</a>', unsafe_allow_html=True)

Fanilo

4 Likes

Thanks andfanilo, I will try it out and starting working on my html to expand on this.