SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot Junk's Avatar
    Join Date
    Dec 2004
    Location
    Asia
    Posts
    193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Hyperlink in html email not working as intended

    Hi,

    I am doing something like the email system. Right now, I need to send an html email with a hyperlink.

    All goes well, except that the hyperlink address in the emails (during my trial runs) show this:

    http://mail.yahoo.com/config/login?/ \"http://www.example.com\"

    Upon clicking this link, the portion in red will always prompt for the yahoo! login in id and password, instead of directing the reader to the link http://www.example.com

    May I know how can I get rid of the unnecessary red portion?

    My code is:

    $message="<a href=\"http://www.example.com/example.html\"><i>Example Website</i></a>";

    Any advise is most appreciated.

    Thanks for reading.

    Regards,
    Junk

  2. #2
    SitePoint Evangelist ColinHughes's Avatar
    Join Date
    Sep 2004
    Location
    Spain
    Posts
    468
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you post the rest of your code?

    Colin

  3. #3
    SitePoint Zealot Junk's Avatar
    Join Date
    Dec 2004
    Location
    Asia
    Posts
    193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Colin, for your fast reply.

    Here you go:

    <script language="JavaScript" type="text/javascript">
    <!--
    //Usage: writeRichText(fieldname, html, width, height, buttons, readOnly)
    writeRichText('standard_reply', '<p>Dear <?=$job_title;?> <?=$author;?>,</p><p>&nbsp;</p><p>Thank you for your submission.</p><p>Please see our website</p><p><a href="http://www.example.com/" target="_blank">Example webpage</a></p>', 520, 300, true, false);
    //-->
    </script>



    This is the function writeRichtext:

    function writeRichText(rte, html, width, height, buttons, readOnly) {
    if (isRichText) {
    if (allRTEs.length > 0) allRTEs += ";";
    allRTEs += rte;
    writeRTE(rte, html, width, height, buttons, readOnly);
    } else {
    writeDefault(rte, html, width, height, buttons, readOnly);
    }
    }


    Regards,
    Junk

  4. #4
    SitePoint Zealot Junk's Avatar
    Join Date
    Dec 2004
    Location
    Asia
    Posts
    193
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please refer to this site http://www.kevinroth.com/rte/demo.htm

    I am developing an email sys, using this sample.

    The hyperlink is a default statement inside the textarea.

    Thanks and merry christmas!

    Junk


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •