User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 397,814 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,563 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser:
Views: 3843 | Replies: 3
Reply
Join Date: Feb 2007
Location: Sydney, Australia
Posts: 2
Reputation: mrwatson54 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mrwatson54's Avatar
mrwatson54 mrwatson54 is offline Offline
Newbie Poster

Email direct from MS Access

  #1  
Feb 14th, 2007
I need to be able to have users click on a form field that is an email address to contact the "contact" - it is proving more complicated than I thought. ANY Suggestions will be welcome.:eek:
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2006
Posts: 86
Reputation: Jhon100 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Jhon100 Jhon100 is offline Offline
Junior Poster in Training

Re: Email direct from MS Access

  #2  
Mar 19th, 2007
Originally Posted by mrwatson54 View Post
I need to be able to have users click on a form field that is an email address to contact the "contact" - it is proving more complicated than I thought. ANY Suggestions will be welcome.:eek:

I think that you dont' need Ms Access for send mail via form. You can use for example CDONTS. Your server need to have suppot for CDONTS.
Reply With Quote  
Join Date: Jan 2004
Location: Quebec, Canada
Posts: 2
Reputation: JohnMc64 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
JohnMc64's Avatar
JohnMc64 JohnMc64 is offline Offline
Newbie Poster

Re: Email direct from MS Access

  #3  
Mar 24th, 2007
Go to this MS knowledge base #: 209955

http://support.microsoft.com/kb/209955
Reply With Quote  
Join Date: Feb 2007
Location: London
Posts: 114
Reputation: davidcairns is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 8
davidcairns davidcairns is offline Offline
Junior Poster

Solution Re: Email direct from MS Access

  #4  
Mar 28th, 2007
These days the CDO.Message object is more up to date. I had to switch over from CDONTS a while back.

This function was written for VBScript, you will have to set your SMTP server and obviously the BCC is optional


Public Sub emfSendEmail(byval pstrMailTo, _
byval pstrSubject, _
byval pstrMsg, _
byval pstrFromMail)

Dim objMsg, strSMTP, blnReturn

blnReturn = false

Const cdoSendUsingPort = 2

strSMTP = "someservername.domain.com"

Set objMsg = CreateObject("CDO.Message")

'Apply the settings to the message object
With objMsg

.From = pstrFromMail
.To = pstrMailTo
.BCC = "your email for testing"
.Subject = pstrSubject
.TextBody = pstrMsg

.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
'Name or IP of remote SMTP server
.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSMTP
'Server port
'.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Configuration.Fields.Update

On Error Resume Next

.Send

If Err.Number = 0 Then
blnReturn = True
Else
response.write "(" & Hex(Err.Number) & ") " & Err.Description
End If

On Error Goto 0

End With

Set objMsg = Nothing

End Sub
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb MS Access and FileMaker Pro Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MS Access and FileMaker Pro Forum

All times are GMT -4. The time now is 6:32 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC