Sending an email from vb code

J

Jim Bunton

I wish to generate and send an email from with vb code.
Windows XP media center version
Access 2000
I have outlook express installed but NOT outlook
I don't want to install Outlook
I don't want to 'disturb' (or use) my OutlookExpress installation

I currently envisage the following:-
1. Install CDO Libraries from http://support.microsoft.com/kb/171440/
2. 'include' this/these in the vb code modules
3. create an imap session in code
[providing isp mail server and user login info]
4. pass information to the session
eg to who
from who
msg title
msg content
path of file to attache
5. send the message
6. kill the imap session

?????????????
Does this look sensible or am I barking up the wrong tree?
If it look sensible
a list of out line hints for each stage would be appreciated
or some web links where such information is available
otherwise - barking up the wrong tree!
an alternative general approach
???????????????
 
M

Mark Andrews

I would use a simple smtp dll instead of CDO. I have used Ostrosoft in the
past. Lots of them out there (usually one dll that needs to sit in the same
directory or gets registered).

Then you supply it with name of your smtp server and authorization info and
a few lines can create an email.

I use Ostrosoft it in this product:
http://www.donationmanagementsoftware.com

I guess similar concept to CDO, haven't used that except on web server when
it's already there.

HTH,
Mark
RPT Software
http://www.rptsoftware.com
 
J

James Ford

HI Jim Bunton Does this look sensible or am I barking up the wrong tree?
If it look sensible
a list of out line hints for each stage would be appreciated
or some web links where such information is available

Jim Bunton said:
Any one fancy suggesting alternative to using smtp server?

Jim Bunton said:
I wish to generate and send an email from with vb code.
Windows XP media center version
Access 2000
I have outlook express installed but NOT outlook
I don't want to install Outlook
I don't want to 'disturb' (or use) my OutlookExpress installation

I currently envisage the following:-
1. Install CDO Libraries from http://support.microsoft.com/kb/171440/
2. 'include' this/these in the vb code modules
3. create an imap session in code
[providing isp mail server and user login info]
4. pass information to the session
eg to who
from who
msg title
msg content
path of file to attache
5. send the message
6. kill the imap session

?????????????
Does this look sensible or am I barking up the wrong tree?
If it look sensible
a list of out line hints for each stage would be appreciated
or some web links where such information is available
otherwise - barking up the wrong tree!
an alternative general approach
???????????????
 
J

Jim Bunton

Dear James Ford,
I have looked down your posting - I can't see any suggestions.
Am I being incredibly stupid or have you forgotten to add something.

Jim Bunton



James Ford said:
HI Jim Bunton Does this look sensible or am I barking up the wrong tree?
If it look sensible
a list of out line hints for each stage would be appreciated
or some web links where such information is available

Jim Bunton said:
Any one fancy suggesting alternative to using smtp server?

Jim Bunton said:
I wish to generate and send an email from with vb code.
Windows XP media center version
Access 2000
I have outlook express installed but NOT outlook
I don't want to install Outlook
I don't want to 'disturb' (or use) my OutlookExpress installation

I currently envisage the following:-
1. Install CDO Libraries from http://support.microsoft.com/kb/171440/
2. 'include' this/these in the vb code modules
3. create an imap session in code
[providing isp mail server and user login info]
4. pass information to the session
eg to who
from who
msg title
msg content
path of file to attache
5. send the message
6. kill the imap session

?????????????
Does this look sensible or am I barking up the wrong tree?
If it look sensible
a list of out line hints for each stage would be appreciated
or some web links where such information is available
otherwise - barking up the wrong tree!
an alternative general approach
???????????????
 
J

jhall2microsoft.com

Jim Bunton said:
Anyone with the same problem might find the web link below helpful.
http://www.freeaccess.de/downloaddetails.asp?id=19



Jim Bunton said:
I wish to generate and send an email from with vb code.
Windows XP media center version
Access 2000
I have outlook express installed but NOT outlook
I don't want to install Outlook
I don't want to 'disturb' (or use) my OutlookExpress installation

I currently envisage the following:-
1. Install CDO Libraries from http://support.microsoft.com/kb/171440/
2. 'include' this/these in the vb code modules
3. create an imap session in code
[providing isp mail server and user login info]
4. pass information to the session
eg to who
from who
msg title
msg content
path of file to attache
5. send the message
6. kill the imap session

?????????????
Does this look sensible or am I barking up the wrong tree?
If it look sensible
a list of out line hints for each stage would be appreciated
or some web links where such information is available
otherwise - barking up the wrong tree!
an alternative general approach
???????????????
 
J

jhall2microsoft.com

Jim Bunton said:
Anyone with the same problem might find the web link below helpful.
http://www.freeaccess.de/downloaddetails.asp?id=19



Jim Bunton said:
I wish to generate and send an email from with vb code.
Windows XP media center version
Access 2000
I have outlook express installed but NOT outlook
I don't want to install Outlook
I don't want to 'disturb' (or use) my OutlookExpress installation

I currently envisage the following:-
1. Install CDO Libraries from http://support.microsoft.com/kb/171440/
2. 'include' this/these in the vb code modules
3. create an imap session in code
[providing isp mail server and user login info]
4. pass information to the session
eg to who
from who
msg title
msg content
path of file to attache
5. send the message
6. kill the imap session

?????????????
Does this look sensible or am I barking up the wrong tree?
If it look sensible
a list of out line hints for each stage would be appreciated
or some web links where such information is available
otherwise - barking up the wrong tree!
an alternative general approach
???????????????
 
J

jhall2microsoft.com

Jim Bunton said:
Anyone with the same problem might find the web link below helpful.
http://www.freeaccess.de/downloaddetails.asp?id=19



Jim Bunton said:
I wish to generate and send an email from with vb code.
Windows XP media center version
Access 2000
I have outlook express installed but NOT outlook
I don't want to install Outlook
I don't want to 'disturb' (or use) my OutlookExpress installation

I currently envisage the following:-
1. Install CDO Libraries from http://support.microsoft.com/kb/171440/
2. 'include' this/these in the vb code modules
3. create an imap session in code
[providing isp mail server and user login info]
4. pass information to the session
eg to who
from who
msg title
msg content
path of file to attache
5. send the message
6. kill the imap session

?????????????
Does this look sensible or am I barking up the wrong tree?
If it look sensible
a list of out line hints for each stage would be appreciated
or some web links where such information is available
otherwise - barking up the wrong tree!
an alternative general approach
???????????????
 
J

jhall2microsoft.com

Jim Bunton said:
Anyone with the same problem might find the web link below helpful.
http://www.freeaccess.de/downloaddetails.asp?id=19



Jim Bunton said:
I wish to generate and send an email from with vb code.
Windows XP media center version
Access 2000
I have outlook express installed but NOT outlook
I don't want to install Outlook
I don't want to 'disturb' (or use) my OutlookExpress installation

I currently envisage the following:-
1. Install CDO Libraries from http://support.microsoft.com/kb/171440/
2. 'include' this/these in the vb code modules
3. create an imap session in code
[providing isp mail server and user login info]
4. pass information to the session
eg to who
from who
msg title
msg content
path of file to attache
5. send the message
6. kill the imap session

?????????????
Does this look sensible or am I barking up the wrong tree?
If it look sensible
a list of out line hints for each stage would be appreciated
or some web links where such information is available
otherwise - barking up the wrong tree!
an alternative general approach
???????????????
 
J

jhall2microsoft.com

Jim Bunton said:
Anyone with the same problem might find the web link below helpful.
http://www.freeaccess.de/downloaddetails.asp?id=19



Jim Bunton said:
I wish to generate and send an email from with vb code.
Windows XP media center version
Access 2000
I have outlook express installed but NOT outlook
I don't want to install Outlook
I don't want to 'disturb' (or use) my OutlookExpress installation

I currently envisage the following:-
1. Install CDO Libraries from http://support.microsoft.com/kb/171440/
2. 'include' this/these in the vb code modules
3. create an imap session in code
[providing isp mail server and user login info]
4. pass information to the session
eg to who
from who
msg title
msg content
path of file to attache
5. send the message
6. kill the imap session

?????????????
Does this look sensible or am I barking up the wrong tree?
If it look sensible
a list of out line hints for each stage would be appreciated
or some web links where such information is available
otherwise - barking up the wrong tree!
an alternative general approach
???????????????
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top