Home>Support>Create a link from a text to a direct email message?

Create a link from a text to a direct email message?

Hello,

I would like to know if it is possible to create a link between my email address on my website (in text) to, when clicking on it, opening a new email window with a subject message already prepared.

Thanks,
Sam

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 8 months ago wouter

    As far as I know, just add a link to your email and instead of putting down a website add: “Mailto:[email protected]” (using your own email). then add e.g. ?subject=I love your site

    So an email regarding pizza could look like this
    “mailto:[email protected]?subject=I would like some pizza”

    You can even add body text with “body=Put some body-text here” and add a cc or bcc. So a link could look like this:
    “mailto:[email protected]?subject=I would love some Pizza&body=Hi, Can I have some Pizza&[email protected]&[email protected]

  2. 8 years, 8 months ago samruault

    Thanks for these informations. When I try it it shows the whole code which is “mailto:[email protected]?subject:contact”. It is not possible to click on it either. Any advices?

  3. 8 years, 8 months ago wouter

    First of all use = instead of :
    So mailto:[email protected]?subject=contact

    Second; how are you adding the link to your text? Are you using the text-editor or working in html or css?

  4. 8 years, 8 months ago samruault

    Hi,

    I tried with the = instead of the : and it does the same. Maybe it is because I am using the HTML text editor. Where should I write this code?

    Thanks for your help and your time
    Sam

  5. 8 years, 8 months ago samruault

    This is what is does when I write it.
    Test maito

    And I would like to be a ling and the shape of it would be:
    Test without mailto

  6. 8 years, 8 months ago wouter

    Sorry, I thought you were adding the link via the visual text editor by selecting the text and then adding a link trough the link button. (like this image explains)

    If you want to do it in html it’s:

    <a href="mailto:[email protected]?subject=contact">[email protected]</a>

    (the last part being the email that’s displayed)

  7. 8 years, 8 months ago samruault

    Hi,

    Thanks a lot, it works but it breaks all my layout. Is it normal?

    Sam

  8. 8 years, 8 months ago samruault

    Hi,

    I found a way around it ;) Thanks a lot. Is it possible take off the line under the email address?

    Thanks a lot
    Sam

  9. 8 years, 8 months ago wouter

    Sure:
    If it’s just this link

    <a style="text-decoration:none;" href="mailto:[email protected]?subject=contact">[email protected]</a>

    and if you want the color to be black instead of the link-blue color:

    <a style="text-decoration:none; color:black;" href="mailto:[email protected]?subject=contact">[email protected]</a>

    Note; If you want all the links on your site to be without underlining you might be better of with custom CSS

    Also, I’m no expert, so there might be a more elegant solution, but I think this works.

  10. 8 years, 8 months ago samruault

    Hi,

    Thanks a LOT it works perfectly.

    Sam

  11. 8 years, 8 months ago SiteOrigin
    Hi, I Work Here

    Thanks for helping out here wouter. Much appreciated.

    Glad you were able to resolve samruault.

    ()Ref: http://stackoverflow.com/questions/4782068/can-i-set-subject-content-of-email-with-using-mailto)

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More