navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

email with automatic title & URL

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Community >> OutFront Discoveries >> email with automatic title & URL
Page: [1]
 
ed1

 

Posts: 135
From: Annandale, VA USA
Status: offline

 
email with automatic title & URL - 5/30/2002 14:37:35   
Thought this may be of interest and is definitely a good way to attract new customers.

It is your traditional email link with 2 modifications. When you click on the button a new email opens - This script will;
- Automatically insert the subject field for you and
- Automatically insert the "Title" of the page you are looking along with the pages URL in the body of the email.

<script LANGUAGE="JavaScript">
function EmailLink(){
window.location = "mailto:"+"?subject=PAL, a very useful resource web site." + "&body=I found the "+document.title+" web page "+" "+window.location+" on the PAL website a very useful resource (It makes a GREAT FAVORITES LIST Link!).";
}
document.write('<FORM><INPUT class="select" TYPE="button" VALUE="Email This Page" onClick="EmailLink()"></FORM>')
</script>


 
waltor

 

Posts: 12
Joined: 12/8/2001
From: Norcross GA USA
Status: offline

 
RE: email with automatic title & URL - 6/5/2002 9:27:21   
Not to be completely ignorant here, but I am. Can you tell me how to actually implement this Javascript in FrontPage? I am not conversant with this and cannot figure out how to insert this in a page. Thanks!

(in reply to ed1)
Thomas Brunt

 

Posts: 6109
Joined: 6/6/1998
From: St. Matthews SC USA
Status: offline

 
RE: email with automatic title & URL - 6/5/2002 9:34:56   
Copy paste into the source code. Code examples taken from Web pages should get pasted into notepad first and then copied from there and pasted into the source code. Otherwise FP might think you're trying to display the code example instead of trying to implement the code.

t

(in reply to ed1)
waltor

 

Posts: 12
Joined: 12/8/2001
From: Norcross GA USA
Status: offline

 
RE: email with automatic title & URL - 6/5/2002 9:37:05   
You are the man. I tried just pasting it and got a beautiful code example on my page!
Thanks for the quick response.

(in reply to ed1)
pcguy

 

Posts: 125
From: None
Status: offline

 
RE: email with automatic title & URL - 6/5/2002 9:38:53   
You don't have to use Javascript to do this. You can use a regular link with the added values like this:

<a href="mailto:me@myemail.com?subject=Call me sometime&body=Put your Body message here.">Email me</a>

Simple....


(in reply to ed1)
pcguy

 

Posts: 125
From: None
Status: offline

 
RE: email with automatic title & URL - 6/5/2002 9:41:15   
Oops....I guess that doesn't insert the title of the page, etc...

I should have read more completely :)



(in reply to ed1)
waltor

 

Posts: 12
Joined: 12/8/2001
From: Norcross GA USA
Status: offline

 
RE: email with automatic title & URL - 6/5/2002 9:45:19   
I was actually interested in this so I could add a tell a friend function like a form. Can anyone tell me how to setup a form that will fill the From and To addresses in an email?



(in reply to ed1)
pcguy

 

Posts: 125
From: None
Status: offline

 
RE: email with automatic title & URL - 6/5/2002 9:51:27   
You would be better of using CDONTS mail, ASPmail or the like...

You can control every aspect of the email with these. You also don't have to worry about the client having a default email program installed and set up, because the email is sent from the server, instead of from the clients machine.

Like this:
User fills out form in their browser, clicks submit. On the server side it grabs the values from the form and inserts them into the script that sends the email...

Of course, this all requires ASP be functional on the server.


(in reply to ed1)
waltor

 

Posts: 12
Joined: 12/8/2001
From: Norcross GA USA
Status: offline

 
RE: email with automatic title & URL - 6/5/2002 9:55:32   
Thanks. Good feedback. Unfortunately I don't think Earthlink supports that with my hosting package. Too bad. I was really wishing there was a simple way to do this. I can use forms to email (feedback, comments, etc...). I just don't know how to pickup a variable from the user input to create the outgoing message. It defaults to the parameters of the system.



(in reply to ed1)
joa1barroso

 

Posts: 3
Joined: 6/5/2002
From:
Status: offline

 
RE: email with automatic title & URL - 6/5/2002 10:24:28   
And would it be possible to also have the script insert text into the body of the message? Something like a form, that would show up like:

Your name: [ ]
Age: [ ]

Likes: [ ]
Dislikes: [ ]
Alikes: [ ]

Thanks,

joa1


(in reply to ed1)
pcguy

 

Posts: 125
From: None
Status: offline

 
RE: email with automatic title & URL - 6/5/2002 10:33:05   
Yes,

You can insert any values from any form you'd like.

I use ASP all the time, so I usually recommend it. You can use Frontpage to "write" the ASP code, but the server itself (host) has to support this functionality.

Some hosts support specific components, like ASPemail, ASPMail, etc. But even if the host does not have a 3rd party component installed, as long as they support ASP, you can use CDONTS email, which is part of the operating system.

If you need info on how to send email with CDONTS, you can reference www.asp101.com or www.aspfaq.com - both have examples....

Simply use a few lines of ASP to capture the form input, then insert them into the CDONTS code to be sent in the email...

HTH


(in reply to ed1)
joa1barroso

 

Posts: 3
Joined: 6/5/2002
From:
Status: offline

 
RE: email with automatic title & URL - 6/5/2002 12:49:56   
hum... thanks. but I was thinking about something more plain vanilla... just plain text and html tags inside the javascript... And no ASP available and 0% knowledge of it...
Possible?
TIA,
joa1


(in reply to ed1)
Wage Slave

 

Posts: 24
From: None
Status: offline

 
RE: email with automatic title & URL - 6/6/2002 8:51:12   
I fiddled with a MAILTO solution about a year and a half ago but ran into too many problems. A couple of things to be aware of:

1) If there's an embedded '&' in a substituted value (e.g. your document.title) then the value is truncated at the '&' because MAILTO uses it as a delimiter between parameters.

2) As per http://www.network23.com/hub/mailto/default.html, the entire
MAILTO string can be no longer than 256 characters.

Wage Slave


(in reply to ed1)
waltor

 

Posts: 12
Joined: 12/8/2001
From: Norcross GA USA
Status: offline

 
RE: email with automatic title & URL - 6/6/2002 10:04:33   
Good feedback. To that point. How would I even make that substitution? Can you provide an example of a mailto: using a substitution of a variable? Specifically if I could just pull the users email address to insert as the from or to that would be great. I don't need a lot of length for that so the 256 limitation should not be an issue.


(in reply to ed1)
Janet

 

Posts: 1
Joined: 6/6/2002
From:
Status: offline

 
RE: email with automatic title & URL - 6/6/2002 18:12:46   
I'm new to webdesign,completely self taught by researching seo through various newsletters. What is the best loction for this email button, where will I copy and paste the above source code. Using FP which lines of this code do I actually need to use?


(in reply to ed1)
J-man

 

Posts: 936
From: Canada
Status: offline

 
RE: email with automatic title & URL - 6/7/2002 20:30:23   
quote " no ASP available and 0% knowledge of it..."

if you can put the square block in the square hole you could figure out the "SIMPLE MAIL EXAMPLE" located here:

http://serverobjects.com/comp/Aspmail4.htm

 

(in reply to ed1)
waltor

 

Posts: 12
Joined: 12/8/2001
From: Norcross GA USA
Status: offline

 
RE: email with automatic title & URL - 6/8/2002 0:18:39   
You are the man. Great resource.



(in reply to ed1)
Page:   [1]

All Forums >> Community >> OutFront Discoveries >> email with automatic title & URL
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts