Best method for adding an email link...

User 590631 Photo


Registered User
17 posts

If I add an <a href="mailto:webmaster@example.com"> link into the text in RSD it seems to get screwed up when I upload

%3Ca%20href=%22mailto:webmaster@example.com%22%3Ewebmaster@example.com%3C/a%3E and just doesn't work from a browser, so I have to add directly in dreamweaver.

Is there a better way?
User 379556 Photo


Registered User
1,583 posts

Assuming that I wanted the text to read "Please email me at webmaster@example.com." I do it as follows -
(a) I enter those words in a text or paragraph element.
(b) While in Text Edit Mode in that element I select (by dragging the mouse at the right place) the words "webmaster@example.com".
(c) In the Text Edit Mode panel at the right I click on the plus icon next to the Link box.
(d) In the URL box that appears I enter (without the inverted commas) "mailto:webmaster@example.com" and click Apply.

Please forgive me if the above is already being done and the problem is not just unfamiliarity with inserting links in text.

Frank
User 590631 Photo


Registered User
17 posts

Yes that's what I did, but once you export it the code changes to

%3Ca%20href=%22mailto:webmaster@example.com%22%3Ewebmaster@example.com%3C/a%3E

and doesn't work.

So basically the problem occurs when you export....
User 590631 Photo


Registered User
17 posts

Oh Frank, are you saying don't include <a href= > ?
User 2484360 Photo


Registered User
3,293 posts

Giles Miller wrote:
Oh Frank, are you saying don't include <a href= > ?


That is correct. As the link element provides that for you.

To create a mailto link, add a Text Link Element or you can link text from a Paragraph Element and in the HREF box enter mailto:you@mydomain.com

Remember mailto links only work for systems that have an email client configured which not all do. It also opens that email address up to spam bots. Using a contact form is the better way to go. If you do not already own Web Form Builder, that is the perfect tool for a form.

If you would like to make a telephone link, add a Text Link element or you can link text from a Paragraph Element and in the HREF box enter tel:+15555555555
User 590631 Photo


Registered User
17 posts

Thanks Adam. Suppose now it makes sense, as it does say on the RSD box..."no coding necessary" - it was my force of habit getting in the way!:)
User 2484360 Photo


Registered User
3,293 posts

Giles Miller wrote:
Thanks Adam. Suppose now it makes sense, as it does say on the RSD box..."no coding necessary" - it was my force of habit getting in the way!:)


You will soon have what I coined as an "Ah Ha" moment where everything just clicks and you say to yourself, why was I making this so hard, when it is SO easy. :P

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.