Announcement

Collapse
No announcement yet.

Emails in Fragments

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Emails in Fragments

    I've several Brochure Fragments within my Brochure Pages. I have created links to web addresses in most, which is straight forward, however, I wouldn't mind being able to put an email address link that opens email prog etc. (<a href="mailto etc, also in some.
    Is this possible (each Fragment would be a different email) and if so where in the code would I put it?
    I really hope I've given enough info here, or I may get told off again!
    Thanks for any help.
    Mike

    #2
    You can include any html code in the fragment text pane in this way:

    !!<
    <a href="mailto:fred@mydomain.co.uk">email me</a>
    >!!

    Be aware that this is not the best solution as your email address may be grabbed by spambots. You are best obfuscating the code, see here:
    http://community.actinic.com/showpos...26&postcount=2

    Comment


      #3
      Hi, Thanks for that, obvious really, tried it a few times but just got a piece if the code wrong and it didn't work. The link you give for info on obfuscating the code doesn't take me anywhere though! I have some info in the advance guide.

      Comment


        #4
        I've fixed the link in my post above.

        Comment


          #5
          OK, I think I've sorted it?!?
          Entered the following and it seems to work OK, famous last words!!

          !!<
          <script language=JavaScript>
          <!--
          document.write('<a hr' + 'ef="mai'
          + 'lto:'
          + 'myname@'
          + 'mydomain'
          + '.co.uk">You can contact me here</a>');
          // -->
          </script>
          >!!

          Just make sure you enter the leading !!< and the ending >!! else you get code all over the page instead of the contact details.

          Thanks to Norman Rouxel for the code slightly modified for fragments.

          Comment


            #6
            If you want to include a pre-filled Subject line, then use the following:
            Code:
            !!<
            <script language=JavaScript>
            <!--
            document.write('<a hr' + 'ef="mai'
            + 'lto:'
            + 'myname@'
            + 'mydomain'
            + '.co.uk?subject=Your%20Subject%20Here">You can contact me here</a>');
            // -->
            </script>
            >!!
            Changing the Your%20Subject%20Here to suit. Note that you should use %20 instead of spaces.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Hi Norman,

              Just wondering if it works if I substitute %20 for %10???

              Thanks

              Mike

              Comment


                #8
                Do a preview and try it (magnifying glass button).

                Comment


                  #9
                  OK, already tried it. Just shows the code as written! I think Norman was winding me up, just a touch!!

                  Comment


                    #10
                    Try this:

                    Code:
                    !!<<script language="JavaScript">
                    <!--
                    document.write('<a hr' + 'ef="mai'
                    + 'lto:'
                    + 'myname@'
                    + 'mydomain'
                    + '.co.uk?subject=Your%20Subject%20Here">You can contact me here</a>');
                    // -->
                    </script>
                    >!!

                    Comment


                      #11
                      Tried it again, but it just does nothing, just leaving it out works OK so what's the point with the extra code?

                      Comment


                        #12
                        I think preview disables the JS actually, pretty sure it will work when online, in fact i can confirm it does, just tried it on a page myself. The script is obfusating your email address so that bots cannot pick it up and land 1000's of email in your inbox daily.

                        Comment


                          #13
                          Originally posted by Michael J View Post
                          Tried it again, but it just does nothing, just leaving it out works OK so what's the point with the extra code?
                          No. What are wanting to use instead of a space and why?

                          Comment


                            #14
                            Whoops. I'd missed !!< out of my post #6. Fixed it now.
                            Norman - www.drillpine.biz
                            Edinburgh, U K / Bitez, Turkey

                            Comment

                            Working...
                            X