|
|||||||
| General Discussion and support for your general issues associated with web design. |
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Ooops sorry, typo
Try <a href="mailto:mail@ab.com?subject=blabla&body=some text">Clickme</a>
__________________
// Stefan Huszics |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
|||
|
|||
|
Many thanks Zach.
Doug. |
|
#8
|
|||
|
|||
|
Quote:
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|