mailto email function

This is a discussion on "mailto email function" within the Classic ASP section. This forum, and the thread "mailto email function are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Sep 21st, 2004, 01:44
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
mailto email function

what i want to do is..

in my page, i have 6 textbox field:
name, id, <span style="color:red">email</span id="red">, age and bookingStatus, bookingMessage.

when i click a button in the page,
the ms outlook will opened, and all the information in the field will be displayed in the ms outlook before i send the email.

I want to use the "mailto" code!
The address of the email will be get from the <span style="color:red">email field</span id="red"> in my form!
The subject of the email will be: BOOKING STATUS
and the message will be: get form the bookingMessage field in my form
Anybody can help me please
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Sep 21st, 2004, 09:22
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
wow, i dont think this is possible?? :sad:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Sep 21st, 2004, 09:49
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,188
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
This is completely possible, but why on earth would you want to use the visitors email application?

Why not have your webserver send the email.

If you need example code, search these forums for 'CDONTS'
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Sep 23rd, 2004, 01:54
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
yes i know about the CDONTS but i would like to try using the MAILTO code,

When i use cdonts, it will automatically send all the info to the email specified, right?

What i want, when the admin click the mailto button, it will open ms outlook, and all the info will be displays in the body of the email before he or she click the send button in the email.
view them first...before send them

you said it is posible...
can you teach me how?

Actually i have tried to use cdonts, but then it require a configuration on the email server that i dont know much.

So i plan to use a simple email function using mailto:
something like this...

<a href='mailto:from recordset?subject=BOOKING STATUS&body=from the field of my form>Mail</a>

But instead of specifying the email in the mailto, i want to capture the email address from my recordset, as well as the body of my email.

Let say i want to send all the field content(in my form) to the body of my email...Name, Age, ID NO.... can i put them in the &body?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Sep 23rd, 2004, 03:25
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Monie, Rob said he can help you, but asked why you wanted to do it this way. Not only are you directly revealing your e-mail address to the many e-mail harvesting bots out there, but you simply have more control when you send e-mail via a server side script.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Sep 23rd, 2004, 07:05
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
actually, this system will only be available INTRANET, locally in the IT DEPARTMENT.

<a href='mailto:<%=myemailfield%>?subject=BOOKING STATUS&body=<%=namefield%><%=agefield%><%=IDfield%><%=addressf ield%>>Mail</a>

I just want to know Can i capture the email from my recordset and make it the email value in the mailto:" " and also
Can i put many recordset in the &body???

I just want to know that
please guide me
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Sep 23rd, 2004, 11:35
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,188
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Hi Monie.

What you really need to do is this:-
Code: Select all
<% 

' < Create RecordSet Here >

MsgBody = ObjRS("myDbNameField") & " - Age " & ObjRS("myDbAgeField")
MsgBody = MsgBody & vbcrlf & "ID: " & ObjRS("myDbIDField")
MsgBody = MsgBody & vbcrlf & vbcrlf & ObjRS("myDbAddressField")
MsgBody = Server.URLEncode(MsgBody)

Response.write "Mail"
%>
Hope this helps.
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
mailto, email, function

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailto with cc included rubyfruit Web Page Design 2 Sep 5th, 2006 13:38
mailto and IE6 Don Logan Web Page Design 12 Apr 30th, 2006 16:48
Can you specify a subject with #mailto: Ivy_58201 Web Page Design 2 Mar 13th, 2006 15:49
mailto function Monie JavaScript Forum 6 Sep 28th, 2004 15:16
Mailto: Physt Flash & Multimedia Forum 1 Jul 22nd, 2004 14:00


All times are GMT. The time now is 14:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42