A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

access and email



 
 
Thread Tools Display Modes
  #1  
Old August 3rd, 2005, 08:57 PM
Zoki
external usenet poster
 
Posts: n/a
Default access and email

Can anyone know how do I send email from access2000 without outlook or
outlook express?


  #2  
Old August 3rd, 2005, 09:15 PM
Rick B
external usenet poster
 
Posts: n/a
Default

I doubt you can. How do you normally send an email?


--
Rick B



"Zoki" wrote in message
...
Can anyone know how do I send email from access2000 without outlook or
outlook express?




  #3  
Old August 4th, 2005, 03:44 AM
Ron Weiner
external usenet poster
 
Posts: n/a
Default

If you clients have Win 2K or Higher OS then you can use CDO (Microsoft
Collaboration Data Objects) to sent the mail.

Public Sub testCDO()
' Purpose Send an Email with or without an attachment without using
Outlook or other MAPI client
' Uses Late Binding - Does not need a reference to the Microsoft
CDO For Windows library

Const cdoSendUsingPort = 2
Const cdoBasic = 1
Dim objCDOConfig As Object, objCDOMessage As Object
Dim strSch As String

strSch = "http://schemas.microsoft.com/cdo/configuration/"
Set objCDOConfig = CreateObject("CDO.Configuration")
With objCDOConfig.Fields
.Item(strSch & "sendusing") = cdoSendUsingPort
.Item(strSch & "smtpserver") = "YourMailServer.com"
'Only used if SMTP server requires Authentication
'.Item(strSch & "smtpauthenticate") = cdoBasic
'.Item(strSch & "sendusername") = "
'.Item(strSch & "sendpassword") = "YourPassword"
.Update
End With

Set objCDOMessage = CreateObject("CDO.Message")
With objCDOMessage
Set .Configuration = objCDOConfig
.FROM = "Ron"
.sender = "
.To = "
.Subject = "Sample CDO Message"
'.TextBody = "This is a test for CDO.message"
.HTMLBody = "this is not Bold But BThis is!/B"
'.AddAttachment "c:\Inv83595.pdf"
'.AddAttachment "c:\Inv83596.pdf"
'.MDNRequested = True
.Send

End With
Set objCDOMessage = Nothing
Set objCDOConfig = Nothing
End Sub

Otherwise you have to install an ActiveX control and use that. You can find
a bunch of em he
http://www.freedownloadscenter.com/B...-smtp-ocx.html

Ron W
www.WorksRite.com
"Zoki" wrote in message
...
Can anyone know how do I send email from access2000 without outlook or
outlook express?




  #4  
Old September 14th, 2005, 10:10 PM
Samantha
external usenet poster
 
Posts: n/a
Default

Ron,
I'm not exactly sure how your code works but it works!
My only question is how the following two lines of code works:
.FROM = "Ron"
.sender = "
Does it add the FROM and the SENDER together, i.e. in this case the receiver
would see the email as coming from ?

I put the my name as the FROM and tested. It seems to take the info at the
FROM string and add it to the the domain name.
thanks so much!

"Ron Weiner" wrote:

If you clients have Win 2K or Higher OS then you can use CDO (Microsoft
Collaboration Data Objects) to sent the mail.

Public Sub testCDO()
' Purpose Send an Email with or without an attachment without using
Outlook or other MAPI client
' Uses Late Binding - Does not need a reference to the Microsoft
CDO For Windows library

Const cdoSendUsingPort = 2
Const cdoBasic = 1
Dim objCDOConfig As Object, objCDOMessage As Object
Dim strSch As String

strSch = "http://schemas.microsoft.com/cdo/configuration/"
Set objCDOConfig = CreateObject("CDO.Configuration")
With objCDOConfig.Fields
.Item(strSch & "sendusing") = cdoSendUsingPort
.Item(strSch & "smtpserver") = "YourMailServer.com"
'Only used if SMTP server requires Authentication
'.Item(strSch & "smtpauthenticate") = cdoBasic
'.Item(strSch & "sendusername") = "
'.Item(strSch & "sendpassword") = "YourPassword"
.Update
End With

Set objCDOMessage = CreateObject("CDO.Message")
With objCDOMessage
Set .Configuration = objCDOConfig
.FROM = "Ron"
.sender = "
.To = "
.Subject = "Sample CDO Message"
'.TextBody = "This is a test for CDO.message"
.HTMLBody = "this is not Bold But BThis is!/B"
'.AddAttachment "c:\Inv83595.pdf"
'.AddAttachment "c:\Inv83596.pdf"
'.MDNRequested = True
.Send

End With
Set objCDOMessage = Nothing
Set objCDOConfig = Nothing
End Sub

Otherwise you have to install an ActiveX control and use that. You can find
a bunch of em he
http://www.freedownloadscenter.com/B...-smtp-ocx.html

Ron W
www.WorksRite.com
"Zoki" wrote in message
...
Can anyone know how do I send email from access2000 without outlook or
outlook express?





  #5  
Old September 15th, 2005, 12:53 AM
Ron Weiner
external usenet poster
 
Posts: n/a
Default

You can think of objCDOMessage.from as the Pretty name the reciepient will
see on the from line in the email, and objCDOMessage.sender as the mail
address that the reciepient will reply to should they choose to reply to the
email.

--
Ron W
www.WorksRite.com
"Samantha" wrote in message
...
Ron,
I'm not exactly sure how your code works but it works!
My only question is how the following two lines of code works:
.FROM = "Ron"
.sender = "
Does it add the FROM and the SENDER together, i.e. in this case the

receiver
would see the email as coming from ?

I put the my name as the FROM and tested. It seems to take the info at the
FROM string and add it to the the domain name.
thanks so much!

"Ron Weiner" wrote:

If you clients have Win 2K or Higher OS then you can use CDO (Microsoft
Collaboration Data Objects) to sent the mail.

Public Sub testCDO()
' Purpose Send an Email with or without an attachment without using
Outlook or other MAPI client
' Uses Late Binding - Does not need a reference to the

Microsoft
CDO For Windows library

Const cdoSendUsingPort = 2
Const cdoBasic = 1
Dim objCDOConfig As Object, objCDOMessage As Object
Dim strSch As String

strSch = "http://schemas.microsoft.com/cdo/configuration/"
Set objCDOConfig = CreateObject("CDO.Configuration")
With objCDOConfig.Fields
.Item(strSch & "sendusing") = cdoSendUsingPort
.Item(strSch & "smtpserver") = "YourMailServer.com"
'Only used if SMTP server requires Authentication
'.Item(strSch & "smtpauthenticate") = cdoBasic
'.Item(strSch & "sendusername") = "
'.Item(strSch & "sendpassword") = "YourPassword"
.Update
End With

Set objCDOMessage = CreateObject("CDO.Message")
With objCDOMessage
Set .Configuration = objCDOConfig
.FROM = "Ron"
.sender = "
.To = "
.Subject = "Sample CDO Message"
'.TextBody = "This is a test for CDO.message"
.HTMLBody = "this is not Bold But BThis is!/B"
'.AddAttachment "c:\Inv83595.pdf"
'.AddAttachment "c:\Inv83596.pdf"
'.MDNRequested = True
.Send

End With
Set objCDOMessage = Nothing
Set objCDOConfig = Nothing
End Sub

Otherwise you have to install an ActiveX control and use that. You can

find
a bunch of em he
http://www.freedownloadscenter.com/B...-smtp-ocx.html

Ron W
www.WorksRite.com
"Zoki" wrote in message
...
Can anyone know how do I send email from access2000 without outlook or
outlook express?







 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FROM field in email is not filled when sending from ACCESS 2003 self-learner General Discussion 3 May 27th, 2005 05:31 PM
The "Right" web hosting for data access pages?? Ron Ehrlich General Discussion 9 May 6th, 2005 05:49 AM
"Allowing" Access to email report Kelly General Discussion 2 June 24th, 2004 09:25 PM
Send email contacts to access db TLMM General Discussion 3 June 21st, 2004 12:57 PM
Email In Access 97 Help please [email protected] Using Forms 5 June 4th, 2004 06:35 PM


All times are GMT +1. The time now is 07:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.