qazzu qazzu - 4 months ago 16
PHP Question

Open email when the email icon is clicked in website

I am creating a website now and one part of it is when the mail icon is clicked. The email interface will display. I've seen example in internet like below:

enter image description here

When the email icon is clicked. The email interface will show:

enter image description here

What I want to do is to apply it in my website but I don't have any idea how it works. I am here to asked some suggestions or link tutorials on how to do it or if it's possible a sample code. I'm using php codeigniter. Thank you.

Answer

you just need to add one link and point to email like:

<a href="mailto:myemail@site.com?Subject=Some%20subject"><img src="myImage.jpg"/></a>
Comments