PC Review


Reply
Thread Tools Rate Thread

Auto Send Message at start up

 
 
=?Utf-8?B?TWVycnk=?=
Guest
Posts: n/a
 
      30th May 2007
I have Outlook automatically start when I switch on my computer, what I would
like is have Outlook send a mail message (the same message to the same person
as a promt) automatically when it starts up each day.
 
Reply With Quote
 
 
 
 
PaulD
Guest
Posts: n/a
 
      30th May 2007
Add the following code to the ThisOutlookSession (use Alt-F11) in the visual
basic editor

Private Sub Application_Startup()
Dim olApp As Outlook.Application
Dim objNewMail As Outlook.MailItem

Set olApp = Outlook.Application
Set objNewMail = olApp.CreateItem(0)
objNewMail.To = "(E-Mail Removed)"
objNewMail.Subject = "Your subject here"
objNewMail.Body = "Body text here"
objNewMail.Send

End Sub


"Merry" <(E-Mail Removed)> wrote in message
news:99CE9BB7-ED41-4362-9F45-(E-Mail Removed)...
:I have Outlook automatically start when I switch on my computer, what I
would
: like is have Outlook send a mail message (the same message to the same
person
: as a promt) automatically when it starts up each day.


 
Reply With Quote
 
=?Utf-8?B?TWVycnk=?=
Guest
Posts: n/a
 
      30th May 2007
This worked wonderfully is there any way I could make that so it only worked
once per day and wouln't repeat on reboot?


"PaulD" wrote:

> Add the following code to the ThisOutlookSession (use Alt-F11) in the visual
> basic editor
>
> Private Sub Application_Startup()
> Dim olApp As Outlook.Application
> Dim objNewMail As Outlook.MailItem
>
> Set olApp = Outlook.Application
> Set objNewMail = olApp.CreateItem(0)
> objNewMail.To = "(E-Mail Removed)"
> objNewMail.Subject = "Your subject here"
> objNewMail.Body = "Body text here"
> objNewMail.Send
>
> End Sub
>
>
> "Merry" <(E-Mail Removed)> wrote in message
> news:99CE9BB7-ED41-4362-9F45-(E-Mail Removed)...
> :I have Outlook automatically start when I switch on my computer, what I
> would
> : like is have Outlook send a mail message (the same message to the same
> person
> : as a promt) automatically when it starts up each day.
>
>
>

 
Reply With Quote
 
PaulD
Guest
Posts: n/a
 
      1st Jun 2007
Off the top of my head I can think of 3 ways to tell if you sent the
message.

1) Create a temp file that stores the date the last time the routine was run
2) Use the registry to store the date.
3) Use a cookie to store the date

Paul D

"Merry" <(E-Mail Removed)> wrote in message
news:123EB2DB-F90B-44C8-ABB8-(E-Mail Removed)...
: This worked wonderfully is there any way I could make that so it only
worked
: once per day and wouln't repeat on reboot?
:
:
: "PaulD" wrote:
:
: > Add the following code to the ThisOutlookSession (use Alt-F11) in the
visual
: > basic editor
: >
: > Private Sub Application_Startup()
: > Dim olApp As Outlook.Application
: > Dim objNewMail As Outlook.MailItem
: >
: > Set olApp = Outlook.Application
: > Set objNewMail = olApp.CreateItem(0)
: > objNewMail.To = "(E-Mail Removed)"
: > objNewMail.Subject = "Your subject here"
: > objNewMail.Body = "Body text here"
: > objNewMail.Send
: >
: > End Sub
: >
: >
: > "Merry" <(E-Mail Removed)> wrote in message
: > news:99CE9BB7-ED41-4362-9F45-(E-Mail Removed)...
: > :I have Outlook automatically start when I switch on my computer, what I
: > would
: > : like is have Outlook send a mail message (the same message to the same
: > person
: > : as a promt) automatically when it starts up each day.
: >
: >
: >


 
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
how do you turn on auto send recieve e-mail at start up ? =?Utf-8?B?bGV3aWU0Mg==?= Microsoft Outlook Discussion 4 6th Jan 2006 11:39 PM
option to auto send an away message =?Utf-8?B?cGdvb2Rt?= Microsoft Outlook Discussion 4 4th Dec 2005 02:20 PM
How do you auto send a message you want to send once a week. =?Utf-8?B?RGF2aWQ=?= Microsoft Outlook Discussion 0 6th Jan 2005 07:51 PM
Outlook 2002 - No auto. send/receive on start-up Doug Microsoft Outlook Discussion 1 30th Jul 2004 04:02 AM
IE won't start -- get based Send or Don't Send MS message bcrose@cox.net Windows XP Internet Explorer 0 30th Jan 2004 05:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:19 PM.