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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
access and email
Can anyone know how do I send email from access2000 without outlook or
outlook express? |
#2
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |