Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Robert Peake

    (@robertpeake)

    Hi,

    Some web and email client combinations support a syntax like:

    mailto:[email protected]?subject=my+subject+here

    However, if you try to use that with the current implementation of antispambot it will simply fail to encode (so don’t do it!)

    If this is a feature you’re keen on having, I can consider rewriting the functionality to respect the ?subject= syntax.

    Let me know!

    Best,
    Robert

    Thread Starter ma3ry

    (@ma3ry)

    Thank you. That would be a nice feature but now I’m finding that more importantly I need a way to obfuscate something like the following so that the email address doesn’t show at all:

    My Name

    I have tired [email] [/email] in different places but none work for this scenario.

    Plugin Author Robert Peake

    (@robertpeake)

    Hi,

    I’ve just updated the plugin. With version 1.1, you can now specify e.g.:

    [email linktext="My Name"][email protected][/email]

    I hope this helps! If so, please consider leaving a review.

    Best wishes,
    Robert

    Thread Starter ma3ry

    (@ma3ry)

    Thank you Robert. Unfortunately my clients don’t want their email addresses shown so I can’t use it. Would love it if there was a way to use it showing the name (not email address) as link.

    Thank you for what you’re doing.

    Plugin Author Robert Peake

    (@robertpeake)

    Hi,

    Using the shortcode:

    [email linktext="My Name"][email protected][/email]

    will produce a link like:

    <a href="mailto:[email protected]">My Name</a>

    The email will be obfuscated from automated spambots. When you click on the “My Name” link, though, of course, you will open an email message to [email protected] and thus be able to see the email address in the “To” field.

    This is all as of the most recent (1.1) version of the plugin.

    If you want to hide the email address completely, you need to use a contact form plugin instead.

    Hope that helps!

    Best,
    Robert

    Thread Starter ma3ry

    (@ma3ry)

    I think this will work Robert. Thank you so much! I will try it out and if it does I will be sure to give it a good review. ??

    Plugin Author Robert Peake

    (@robertpeake)

    p.s. also as of 1.1 we also now support ?subject= strings in the email as well.

    Thread Starter ma3ry

    (@ma3ry)

    Thank you so much Robert! I have just given you a 5 star rating and review.

    Could I ask you a couple more things please?

    Can you please give me an example of

    [email linktext=”My Name”][email protected][/email]

    plus subject
    plus making the name bold and underlined.

    Thank you again!

    Plugin Author Robert Peake

    (@robertpeake)

    Hi,

    You can accomplish this with code like:

    <strong>[email linktext="My Name"][email protected]?subject=foo+bar&body=baz[/email]</strong>

    (Be sure to input that in the Text tab, not the Visual tab.)

    Alternatively you could enter:

    [email linktext="My Name"][email protected]?subject=foo+bar&body=baz[/email]

    in the Visual tab, then highlight all of the text and click the “B” button to make it bold. It comes to the same thing (as you will see if you switch back-and-forth from Visual to Text mode on the post or page).

    Things to note:

    – You must escape spaces in the subject with either + or %20
    – You can also use &body= (again escaping spaces and newlines)
    – Whether or not links are underlined (and whether or not that changes when the mouse is hovered) is controlled by CSS, so that’s best handled in your theme, rather than in HTML on a single page or post

    Hope that helps, and thanks for the nice review!

    Best,
    Robert

    Thread Starter ma3ry

    (@ma3ry)

    AWESOME!!!! So VERY Helpful!!!! Thank you again so much!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Is There A Way To Insert Subject Into Email?’ is closed to new replies.