Mailto

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


MailTo is a standard html function that allows users to send emails from their browser by clicking on it. The click on "mailto" opens the client side default email client like Outlook, Thuderbird whichever is configured and set as default. The email etc fields are pre filled with the ones set in mailto tag.

Mailto allows for configuring to send single or more than 1 recipient as follows:

Mailto Syntax and Examples

Send email to a single person:

    <a href="mailto:info@programmingbulls.com">

Send email to a multiple recipients:

    <a href="mailto:info@programmingbulls.com, admin@programmingbulls.com">

Send mailTo with Subject

    <a href="mailto:info@programmingbulls.com?subject=Nice Site">

Send MailTo with a Copy(CC), BCC, Subject and Body:

    <a href="mailto:info@programmingbulls.com?CC=admin@programmingbulls.com&bcc=secret@programmingbulls.com&subject=Nice Site&body=Great Tutorial">





Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.