PC Review


Reply
Thread Tools Rate Thread

automate "sending" email via MAPI

 
 
=?Utf-8?B?d29ya3NmaXJlMQ==?=
Guest
Posts: n/a
 
      27th Jul 2007
I am trying to send a customized report to each of 650 field users that is
generated by Access. The code creates the custom report and generates the
outlook item just fine. But, I have one step left to automate. The pushing
of the "Send" button 650 times was not fun today! How can I automate the
"sending" of the 650 emails that my looping and mail code already generate?

Here is my current relevant code:
Dim EmailApp, NameSpace, EmailSend As Object

Set EmailApp = CreateObject("Outlook.Application")
Set NameSpace = EmailApp.GetNamespace("MAPI")
Set EmailSend = EmailApp.CreateItem(0)
EmailSend.To = rscriteria![login id]
EmailSend.CC = ""
EmailSend.Subject = "Proposed Forced Pickups (w/e 08/06/07)"
EmailSend.Body = ""
EmailSend.Attachments.Add "\\Zion\Databases\FPU\Proposed
Forced Pickups.xls"
EmailSend.Display



 
Reply With Quote
 
 
 
 
Gina Whipp
Guest
Posts: n/a
 
      27th Jul 2007
I think what you want may be found here:
http://www.granite.ab.ca/access/email.htm

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

"worksfire1" <(E-Mail Removed)> wrote in message
news:C10B6418-4590-4CEF-9E31-(E-Mail Removed)...
>I am trying to send a customized report to each of 650 field users that is
> generated by Access. The code creates the custom report and generates the
> outlook item just fine. But, I have one step left to automate. The
> pushing
> of the "Send" button 650 times was not fun today! How can I automate the
> "sending" of the 650 emails that my looping and mail code already
> generate?
>
> Here is my current relevant code:
> Dim EmailApp, NameSpace, EmailSend As Object
>
> Set EmailApp = CreateObject("Outlook.Application")
> Set NameSpace = EmailApp.GetNamespace("MAPI")
> Set EmailSend = EmailApp.CreateItem(0)
> EmailSend.To = rscriteria![login id]
> EmailSend.CC = ""
> EmailSend.Subject = "Proposed Forced Pickups (w/e
> 08/06/07)"
> EmailSend.Body = ""
> EmailSend.Attachments.Add "\\Zion\Databases\FPU\Proposed
> Forced Pickups.xls"
> EmailSend.Display
>
>
>



 
Reply With Quote
 
=?Utf-8?B?d29ya3NmaXJlMQ==?=
Guest
Posts: n/a
 
      28th Jul 2007
I looked all over the site. It had a lot of good code, but really didn't
focus on email code. It would always say 'insert some type of email code
here. I just wish I knew the MAPI command. I thought maybe saying
SendMail.Display = FALSE but I don't think that is the propery I need in
order to make it send the emails automatically without me hitting send. It
doesn't work.

"Gina Whipp" wrote:

> I think what you want may be found here:
> http://www.granite.ab.ca/access/email.htm
>
> --
> Gina Whipp
>
> "I feel I have been denied critical, need to know, information!" - Tremors
> II
>
> "worksfire1" <(E-Mail Removed)> wrote in message
> news:C10B6418-4590-4CEF-9E31-(E-Mail Removed)...
> >I am trying to send a customized report to each of 650 field users that is
> > generated by Access. The code creates the custom report and generates the
> > outlook item just fine. But, I have one step left to automate. The
> > pushing
> > of the "Send" button 650 times was not fun today! How can I automate the
> > "sending" of the 650 emails that my looping and mail code already
> > generate?
> >
> > Here is my current relevant code:
> > Dim EmailApp, NameSpace, EmailSend As Object
> >
> > Set EmailApp = CreateObject("Outlook.Application")
> > Set NameSpace = EmailApp.GetNamespace("MAPI")
> > Set EmailSend = EmailApp.CreateItem(0)
> > EmailSend.To = rscriteria![login id]
> > EmailSend.CC = ""
> > EmailSend.Subject = "Proposed Forced Pickups (w/e
> > 08/06/07)"
> > EmailSend.Body = ""
> > EmailSend.Attachments.Add "\\Zion\Databases\FPU\Proposed
> > Forced Pickups.xls"
> > EmailSend.Display
> >
> >
> >

>
>
>

 
Reply With Quote
 
Gina Whipp
Guest
Posts: n/a
 
      28th Jul 2007
I thought EMailSenate does what you asked for. I thought pressing send once
was better then umpteen times.
--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II
"worksfire1" <(E-Mail Removed)> wrote in message
news:0D96CB60-796D-45B3-A75C-(E-Mail Removed)...
>I looked all over the site. It had a lot of good code, but really didn't
> focus on email code. It would always say 'insert some type of email code
> here. I just wish I knew the MAPI command. I thought maybe saying
> SendMail.Display = FALSE but I don't think that is the propery I need in
> order to make it send the emails automatically without me hitting send.
> It
> doesn't work.
>
> "Gina Whipp" wrote:
>
>> I think what you want may be found here:
>> http://www.granite.ab.ca/access/email.htm
>>
>> --
>> Gina Whipp
>>
>> "I feel I have been denied critical, need to know, information!" -
>> Tremors
>> II
>>
>> "worksfire1" <(E-Mail Removed)> wrote in message
>> news:C10B6418-4590-4CEF-9E31-(E-Mail Removed)...
>> >I am trying to send a customized report to each of 650 field users that
>> >is
>> > generated by Access. The code creates the custom report and generates
>> > the
>> > outlook item just fine. But, I have one step left to automate. The
>> > pushing
>> > of the "Send" button 650 times was not fun today! How can I automate
>> > the
>> > "sending" of the 650 emails that my looping and mail code already
>> > generate?
>> >
>> > Here is my current relevant code:
>> > Dim EmailApp, NameSpace, EmailSend As Object
>> >
>> > Set EmailApp = CreateObject("Outlook.Application")
>> > Set NameSpace = EmailApp.GetNamespace("MAPI")
>> > Set EmailSend = EmailApp.CreateItem(0)
>> > EmailSend.To = rscriteria![login id]
>> > EmailSend.CC = ""
>> > EmailSend.Subject = "Proposed Forced Pickups (w/e
>> > 08/06/07)"
>> > EmailSend.Body = ""
>> > EmailSend.Attachments.Add "\\Zion\Databases\FPU\Proposed
>> > Forced Pickups.xls"
>> > EmailSend.Display
>> >
>> >
>> >

>>
>>
>>



 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      28th Jul 2007
worksfire1 <(E-Mail Removed)> wrote:

>I looked all over the site.


See the Outlook Security Patch in Outlook 98, 2000 SP-2 and Outlook
2002 section at http://www.granite.ab.ca/access/email/outlook.htm

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
Reply With Quote
 
Gina Whipp
Guest
Posts: n/a
 
      28th Jul 2007
Tony,

I missed that... I guess I need more coffee....

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II
"Tony Toews [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> worksfire1 <(E-Mail Removed)> wrote:
>
>>I looked all over the site.

>
> See the Outlook Security Patch in Outlook 98, 2000 SP-2 and Outlook
> 2002 section at http://www.granite.ab.ca/access/email/outlook.htm
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm
> Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/



 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      29th Jul 2007
"Gina Whipp" <(E-Mail Removed)> wrote:

>I guess I need more coffee....


Not really. It's certainly not obvious as to what that section is
about.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
Reply With Quote
 
=?Utf-8?B?d29ya3NmaXJlMQ==?=
Guest
Posts: n/a
 
      29th Jul 2007
I may be missing it, but I do not see any MAPI code to send the Outlook
emails that Access generates without manual intervention. I see mention of a
couple of 3rd party programs that will manage security settings so that you
are not prompted when security prompts would normally prompt up.

I am not having any kind of message on a security-level pop up. I am just
looking for a MAPI property that keeps you from having to review/edit/send
the hundreds of custom emails that Access generated for me.

"Tony Toews [MVP]" wrote:

> "Gina Whipp" <(E-Mail Removed)> wrote:
>
> >I guess I need more coffee....

>
> Not really. It's certainly not obvious as to what that section is
> about.
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm
> Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
>

 
Reply With Quote
 
Gina Whipp
Guest
Posts: n/a
 
      29th Jul 2007
I thought this section (http://www.granite.ab.ca/access/email/mapi.htm) of
that page had something but I guess not. Maybe someone else has some ideas.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II
"worksfire1" <(E-Mail Removed)> wrote in message
news:6489746C-E931-42E3-9699-(E-Mail Removed)...
>I may be missing it, but I do not see any MAPI code to send the Outlook
> emails that Access generates without manual intervention. I see mention
> of a
> couple of 3rd party programs that will manage security settings so that
> you
> are not prompted when security prompts would normally prompt up.
>
> I am not having any kind of message on a security-level pop up. I am just
> looking for a MAPI property that keeps you from having to review/edit/send
> the hundreds of custom emails that Access generated for me.
>
> "Tony Toews [MVP]" wrote:
>
>> "Gina Whipp" <(E-Mail Removed)> wrote:
>>
>> >I guess I need more coffee....

>>
>> Not really. It's certainly not obvious as to what that section is
>> about.
>>
>> Tony
>> --
>> Tony Toews, Microsoft Access MVP
>> Please respond only in the newsgroups so that others can
>> read the entire thread of messages.
>> Microsoft Access Links, Hints, Tips & Accounting Systems at
>> http://www.granite.ab.ca/accsmstr.htm
>> Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
>>



 
Reply With Quote
 
Steve
Guest
Posts: n/a
 
      29th Jul 2007
Case in point!!

The OP posted to the newsgroup asking for help. He got six responses but no
help. He is no better off than when he started. You call yourself a
professional consultant but you left the OP high and dry and are moving on
to something else rather than break from the Arno R, John Marshall, Keith
Wilby mentality. You will NEVER convince me that this in accordance with the
principles of newsgroups!

To the OP:
I don't have an answer for you off the top of my head or I would help you
here in this thread. I am willing to research your problem until I come up
with a solution for you for a reasonable fee. If you would like my help,
contact me at my email address below.

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
(E-Mail Removed)




"Gina Whipp" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I thought this section (http://www.granite.ab.ca/access/email/mapi.htm) of
>that page had something but I guess not. Maybe someone else has some
>ideas.
>
> --
> Gina Whipp
>
> "I feel I have been denied critical, need to know, information!" - Tremors
> II
> "worksfire1" <(E-Mail Removed)> wrote in message
> news:6489746C-E931-42E3-9699-(E-Mail Removed)...
>>I may be missing it, but I do not see any MAPI code to send the Outlook
>> emails that Access generates without manual intervention. I see mention
>> of a
>> couple of 3rd party programs that will manage security settings so that
>> you
>> are not prompted when security prompts would normally prompt up.
>>
>> I am not having any kind of message on a security-level pop up. I am
>> just
>> looking for a MAPI property that keeps you from having to
>> review/edit/send
>> the hundreds of custom emails that Access generated for me.
>>
>> "Tony Toews [MVP]" wrote:
>>
>>> "Gina Whipp" <(E-Mail Removed)> wrote:
>>>
>>> >I guess I need more coffee....
>>>
>>> Not really. It's certainly not obvious as to what that section is
>>> about.
>>>
>>> Tony
>>> --
>>> Tony Toews, Microsoft Access MVP
>>> Please respond only in the newsgroups so that others can
>>> read the entire thread of messages.
>>> Microsoft Access Links, Hints, Tips & Accounting Systems at
>>> http://www.granite.ab.ca/accsmstr.htm
>>> Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
>>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Up a "Reply-To" Email Address In MAPI Dennis Tucker Microsoft Excel Programming 4 14th Jul 2009 09:21 PM
Cannot send email which show some error about "MAPI" =?Utf-8?B?QWVo?= Windows Vista Mail 8 15th Jun 2009 02:46 PM
outlook replacing a "." with "=E2" when sending email smtp =?Utf-8?B?U2NvdHQ=?= Microsoft Outlook Discussion 0 10th Apr 2006 05:03 PM
Automate sending of "standard" email, with merged data =?Utf-8?B?QmF6?= Microsoft Outlook VBA Programming 3 20th Oct 2005 06:26 PM
sending "works" email won't open.. needs "word"...can I convert =?Utf-8?B?d2hpdGVrbmlnaHRnb2xmbnV0?= Microsoft Access 1 28th Feb 2005 07:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:22 AM.