This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

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

Resolved 11 replies questionthemetheme-vantage
10 years ago · Last reply by Support Assistants 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

11
  1. wouter 10 years, 1 month ago

    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. samruault 10 years, 1 month ago

    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. wouter 10 years, 1 month ago

    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. samruault 10 years, 1 month ago

    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. samruault 10 years, 1 month ago

    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. wouter 10 years, 1 month ago

    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. samruault 10 years, 1 month ago

    Hi,

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

    Sam

  8. samruault 10 years, 1 month ago

    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. wouter 10 years, 1 month ago

    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. samruault 10 years, 1 month ago

    Hi,

    Thanks a LOT it works perfectly.

    Sam

  11. Support Assistants 10 years, 1 month ago

    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.

Have a different question or issue?

Start New Thread