Re: Email with MS Access and CDO: showdialog before sending
- From: lyle fairfield <lylefair@xxxxxxxx>
- Date: Sun, 07 Oct 2007 11:16:41 GMT
"john" <hgf@xxxxxxxxxx> wrote in
news:7705$47088817$5354c91b$19971@xxxxxxxxxxxxxxxxxxxxxxx:
I have the following example code. I'm using CDO as I need to specify
the sender.
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.From = myemailaddress@xxxxxxx
objMessage.To = testaddress@xxxxxxx
objMessage.TextBody = "This is some sample message text."
objMessage.Send
which works, but I have 2 questions:
1. I added the code <<showDialog:=False>> (behind objMessage.Send)
as I want to view the message before I confirm sending. The code is
not accepted.
How can I make this work?
2. I notice that emails that are being send don't end up in my 'sent
box'. Is that possible to achieve?
Thanks in advance,
john
Perhaps, you are trying to use two object models interchangeably.
Typically CDO does not interact directly with Outlook or your default e-
mail program, although it may use values set in Outlook Express.
TTBOMK CDO does not include an object, property or method called
"showDialog"
It would be helpful if you tell us what you are trying to accomplish and/or
show us the whole module, using copy and paste.
--
lyle fairfield
Ceterum censeo Redmond esse delendam
.
- Follow-Ups:
- References:
- Prev by Date: Re: weird tables in the database
- Next by Date: Re: Email with MS Access and CDO: showdialog before sending
- Previous by thread: Email with MS Access and CDO: showdialog before sending
- Next by thread: Re: Email with MS Access and CDO: showdialog before sending
- Index(es):
Relevant Pages
|