Article: 179821 of microsoft.public.fox.programmer.exchange
Thread-Topic: Grabbing an email Address from a Form
thread-index: AcUuKiaOu+RN7UA4QZqoIsSDLTnOZw==
X-WBNR-Posting-Host: 206.29.98.226
From: =?Utf-8?B?VG9t?= <Tom@discussions.microsoft.com>
References: <F3C056F1-CCF4-4639-874F-568BC1DBAE15@microsoft.com> <64012719-9E6A-410C-981F-9B584CC20FC4@microsoft.com> <eHhxRQdLFHA.3184@TK2MSFTNGP09.phx.gbl> <e0H8ifdLFHA.1396@TK2MSFTNGP10.phx.gbl>
Subject: Re: Grabbing an email Address from a Form
Date: Mon, 21 Mar 2005 07:25:02 -0800
Lines: 64
Message-ID: <9D44133E-26DA-49CD-A56D-2C399F3346DC@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.fox.programmer.exchange
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: news.btopenworld.com!btnet-feed3!news-peer0-test!btnet!newshosting.com!nx02.iad01.newshosting.com!news.alt.net!msrtrans!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: news.btopenworld.com microsoft.public.fox.programmer.exchange:179821
using the .send() will send it right away, However it continues to send
messages while you are typing in the Body.
so i have to use the .display, and the user clicks on send, if outlook is
closed the message goes to the outbox and waits until they open it. thats the
problem.
what about this, if Outlook is closed should i open it and leave it open?
right now if its open, i create anothe instance of it then close it when im
done. is there no way to set some of the advanced e-mail props from code?
thanks again
Tom
"Fred Taylor" wrote:
> I don't think you have to press "Send", but you do have to click "OK", that
> someother program is trying to send mail. You can't do it undetected behind
> the scenes anymore, at least not since Office 2K/Sp2?
>
> --
> Fred
> Microsoft Visual FoxPro MVP
>
>
> "Paul Pedersen" <no-reply@swen.com> wrote in message
> news:eHhxRQdLFHA.3184@TK2MSFTNGP09.phx.gbl...
> >I think with the newer versions of Outlook, it's no longer possible to tell
> >it to Send, even if Outlook is running. You have to get the user to click
> >the Send button on Outlook. Someone tell me if I'm wrong.
> >
> > I think this was done for security reasons - there were too many viruses &
> > such hijacking Outlook and sending emails without the users consent.
> >
> >
> >
> >
> > "Tom" <Tom@discussions.microsoft.com> wrote in message
> > news:64012719-9E6A-410C-981F-9B584CC20FC4@microsoft.com...
> >> aOk i answered my own question with the Following Code.
> >>
> >> oOutlook = createobject("Outlook.Application")
> >> #define olMailItem 0
> >> oMailitem = oOutlook.createitem(olMailitem)
> >> WITH oMailitem
> >> .to = lagstat.pemail
> >> endwith
> >> oMailitem.display
> >>
> >> However it raised another. when a person sends in the above code, and
> >> outlook is not open, it waits to actually send the item untill they open
> >> up
> >> outlook. i need the mails to send when the user hits the send button,
> >> even if
> >> Outllok is Closed.
> >>
> >> Thanks again.
> >
> >
>
>
>