Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email from access 2

Status
Not open for further replies.

mikeba1

Programmer
Jan 2, 2005
235
GB
I am writing a small access aplication with email output via Outlook.
I have written and tested the following which works

Set objOutlook = CreateObject("Outlook.application")
Set objEmail = objOutlook.CreateItem(olMailItem)
With objEmail
.To = ema
.subject = noteb
.body = notec & Chr$(13) & notea & noted
.Send
End With

However I have now been told that som clients use Outlook Express as opposed to Outlook.
What are the differences if any and if so how can I identify which client
Thanks
 
As an alternative, there is CDO and SendObject.
 
You only really need to use the full outlook thing if you are adding attachments or need more complex manipulation - use the simpler SendObject otherwise...
 
If you still wish to find out the email client, this may help:

Code:
Set ws = CreateObject("WScript.Shell")
MsgBox ws.RegRead("HKLM\SOFTWARE\Clients\Mail\")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top