Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Access databases and emails
Old 07-08-2004, 07:08 AM Access databases and emails
Experienced Talker

Posts: 37
Trades: 0
Ive managed to set up an online form to deal with absences.

People enter information and it then sends to an access database. One field they have to fill in is their email and ive set-up the database so it appears as a hyperlink when you look in the database.

However when i click on it within access i want it so that outlook/outlook express opens so you can reply to that email address but this doesnt happen. How can i set it so this does happen??

Thanks!

Woody
woody22 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-12-2004, 05:53 PM
Bullschmidt's Avatar
Average Talker

Posts: 24
Location: USA
Trades: 0
<a href="mailto:<%= EmailAddressField %>">E-mail This Person</a>

But I'd suggest that you have the EmailAddressField or whatever it is named actually be a text field within the database itself.
__________________
J. Paul Schmidt

Please login or register to view this content. Registration is FREE
- Freelance Web and Database Developer

Please login or register to view this content. Registration is FREE
- Classic ASP Design Tips
Bullschmidt is offline
Reply With Quote
View Public Profile Visit Bullschmidt's homepage!
 
Old 07-14-2004, 05:31 AM
Experienced Talker

Posts: 37
Trades: 0
thanks for that - ill try it!

Ive also got this code done - im told its close to achieving what i want but it still doesnt send me an email

Code:
Dim objConfig  ' As CDO.Configuration
Dim objMessage ' As CDO.Message
Dim flgEmailSent

flgEmailSent = False

Const cdoSendUsingMethod = "http://schemas.microsoft.com/cdo/configuration/sendusing"
Const cdoSendUsingPort = 2
Const cdoSMTPServer = "http://schemas.microsoft.com/cdo/configuration/smtpserver"
Const cdoSMTPServerPort = "http://schemas.microsoft.com/cdo/configuration/smtpserverport"
Const cdoSMTPConnectionTimeout = "http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"
Const cdoSMTPAuthenticate = "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"
Const cdoBasic = 1
Const cdoSendUserName = "http://schemas.microsoft.com/cdo/configuration/sendusername"
Const cdoSendPassword = "http://schemas.microsoft.com/cdo/configuration/sendpassword"

Set objConfig = CreateObject("CDO.Configuration")
Set objMessage = CreateObject("CDO.Message")

' Set config fields we care about
With objConfig.Fields
	.Item(cdoSendUsingMethod)       = "cdoSendUsingPort"
	.Item(cdoSMTPServer)            = "http://217.180.78.26/exchange/"	
	.Item(cdoSMTPServerPort)        = "25"
	.Item(cdoSMTPConnectionTimeout) = "10"
	.Item(cdoSMTPAuthenticate)      = "cdoBasic"
	.Item(cdoSendUserName)          = "<Myusername>"
	.Item(cdoSendPassword)          = "<Mypassword>"
	
	.Update
	
End With

Set objMessage.Configuration = objConfig

With objMessage
	.To			= "pworsnop@wickersley.net"
	.From		= "Sender's Email"
	.Subject	= "Absence Request"
	
	.TextBody	= "This is the message"
        'or
	'.HTMLBody	= "<This is the message in HTML>"
	
	On Error Resume Next
	
	.Send
	
	If err.number = 0 Then
		flgEmailSent = True
	Else
		m_strErrors = err.Description
	End If 
	
	On Error GoTo 0
End With

Set objMessage = Nothing
Set objConfig = Nothing		

%>
I get the following error message when using the above code:

Code:
ADODB.Fields error '800a0ea5' 

Fields update failed. For further information, examine the Status property of individual field objects. 

/AbsenceForm/RecordAdded.asp, line 86
woody22 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Access databases and emails
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11105 seconds with 12 queries