Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Location
    Finland
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How can I send mailto to referrer?

    Hi! My problem is to spread my banner so that referrer clicks an anchor what is mailto-link. All those body (that consists banners html code only), subject and such are crystal clear... but do how I place referrers email address into 'To'-field???? Someone please...

  • #2
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    573
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi, I'm not sure I understand you question clearly. There is really no (legitimate) way to grab a user's email address without the user providing it (such as typing it in a text box for example). If the form is mailto: you could simply instruct the user that they will need to enter their email address into the "To" field once their default email program has been opened.
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #3
    New to the CF scene
    Join Date
    Aug 2002
    Location
    Finland
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    referrer..

    Yes, that's how I thought I have to do

  • #4
    New Coder
    Join Date
    Aug 2002
    Location
    NJ
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Why don't you just have your banner link to a page that contains a form? This way if you want to control the format of the message, as well as reinforce your offer (or else why would someone give you their email address or other personal information?) and make sure that required fields are filled in.

    No one wants to click on a "banner ad" and have their email program open a new screen.

    But if you just want to make a graphic button that uses a mailto: link, it's just:
    Code:
    <a href="mailto:foo@foo.com"><img src="my_image.gif" alt="click here to send me an email"></a>
    HTH

    Pete
    TotalHosting.com
    Web Hosting | Domain Names | Merchant Accounts | Web Design
    Pete at TotalHosting.com

  • #5
    New to the CF scene
    Join Date
    Aug 2002
    Location
    Finland
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Pete, sorry I'm from Finland and can't make me clear with my bad english... Let's start at the bottom: I have one page, sized as banner (400x40 px). It contais 1) an A-tag linking to my webcam popup and 2) java applet (accessed on hover) that's my site's navigation. Now, I think if someone want to download that HTML code for banner and I've created P IFRAME stucture that loads my "banner" as I want to when it's added as I wrote. Finally: I though it would be most easy to send that html by e-mail but there's this final problem: How I Can Preformat MAILTO-tag so that it fills TO-field of accidental users email program as his/her FROM-information...

  • #6
    New Coder
    Join Date
    Aug 2002
    Location
    NJ
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So let me see if I get this straight:

    1) You want the user to click on a banner that uses the mailto: instead of going to a url

    2) You want to then send that person something back via email

    Ok.

    Does your host have or allow autoresponders? If yes, then you would set the mailto: like this:
    Code:
    <a href="mailto:autoresponder@mydomain.com">
    <img src="banner.gif" alt="click this to get my code">
    </a>
    Now, when the email goes to your autoresponder, it will automatically send you a copy of the email sent from the user, and it will reply back to the email address in the FROM field automatically with whatever message you wish to send.

    Otherwise, you set the mailto: to myemail@mydomain.com and then you will have to process the request manually by just hitting "reply" in your email program and then cutting and pasting in the message you wish to send.

    Does that sound right to you? I hope I understood you correctly.

    Pete
    TotalHosting.com
    Web Hosting | Domain Names | Merchant Accounts | Web Design
    Pete at TotalHosting.com

  • #7
    New to the CF scene
    Join Date
    Aug 2002
    Location
    Finland
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Pete, U are off and out and whatsoever.. my question started at the point 'I have a banner on (or under) my site' and 'I want to spread it' and 'I think to use email for that'... If U read my first posty then U find there a word 'IFRAME' meaning that html-code I'm trying to email with mailto consists only that small page with iframe linking to page where's all intelligency.. and that QUESTION is: How Could I Write Code That Writes Into 'TO' Field The Information That Is Already In 'FROM' Field... huh...stupid me...


  •  

    Posting Permissions

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