www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > General

    General Discussion and support for your general issues associated with web design.

    Reply
     
    Thread Tools Rate Thread Display Modes
      #1  
    Old 11-21-2002, 02:27 AM
    Doug Doug is offline
    Registered User
     
    Join Date: Nov 2002
    Posts: 4
    Email script

    Hi all,
    I'm trying to put a script on all of my pages, that will 'send this page to a friend', it will automatically bring up their e-mail propgram, it will have the senders email address in the from field, the subject and some body text will already be complete. The question is, can I do this in a php script and not js ?
    Regards.
    Doug.
    Reply With Quote
      #2  
    Old 11-21-2002, 04:57 AM
    Stefan Stefan is offline
    HTML-Mushroom
     
    Join Date: Nov 2002
    Posts: 984
    You can do this even with plain HTML, however the best way would be to do the entire mailaction serverside. Many mailproggies doen't follow standards or the visitor might not even HAVE a configured mailclient on the mashine he's at.

    Anyway, here is the HTML
    <a href="mailto:mail@ab.com?subject=blabla?body=some text">Clickme</a>
    __________________
    // Stefan Huszics
    Reply With Quote
      #3  
    Old 11-21-2002, 06:21 AM
    Doug Doug is offline
    Registered User
     
    Join Date: Nov 2002
    Posts: 4
    Hi Stefan,

    Many thanks for that, good help. I think we're nearly there. One thing, when I put the text in that you suggest, I get the body bit in the subject line ? ?

    Doug.
    Reply With Quote
      #4  
    Old 11-21-2002, 03:04 PM
    Stefan Stefan is offline
    HTML-Mushroom
     
    Join Date: Nov 2002
    Posts: 984
    Ooops sorry, typo

    Try
    <a href="mailto:mail@ab.com?subject=blabla&body=some text">Clickme</a>
    __________________
    // Stefan Huszics
    Reply With Quote
      #5  
    Old 11-21-2002, 03:10 PM
    Doug Doug is offline
    Registered User
     
    Join Date: Nov 2002
    Posts: 4
    Many thanks Stefan, just tried it and it works good.

    (p.s. I'm just about to start work on putting a search option onto my site for free - any ideas where to start ?)

    Last edited by Doug; 01-18-2006 at 12:39 PM.
    Reply With Quote
      #6  
    Old 11-22-2002, 11:11 AM
    Zach Elfers Zach Elfers is offline
    Registered User
     
    Join Date: Nov 2002
    Posts: 631
    Here on javaScript source there is a good script for that. I think Biab made it or something. It is titles A search engine for YOUR site or something. I forget where it is.
    Reply With Quote
      #7  
    Old 11-22-2002, 11:14 AM
    Doug Doug is offline
    Registered User
     
    Join Date: Nov 2002
    Posts: 4
    Many thanks Zach.

    Doug.
    Reply With Quote
      #8  
    Old 11-22-2002, 11:42 AM
    Zach Elfers Zach Elfers is offline
    Registered User
     
    Join Date: Nov 2002
    Posts: 631
    Quote:
    Originally posted by Doug
    Many thanks Zach.

    Doug.
    Did you find it?
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 01:22 PM.



    Acceptable Use Policy

    Internet.com
    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.