paulmcdonnell
Ready to Help
- Local time
- Today, 05:23
- Joined
- Apr 11, 2001
- Messages
- 167
Outlook AUtomated email with the "Program sending email on your behlaf " warning
Hi Guys,
I have recently installed a later version of Outlook and yes I have the intervention message everytime my database automates and email - and it does a lot of this , much of the time in the background.
I have read a few threads on how to solve the problem but still am no closer to a solution. If anyone can give any pointers that would be ACE.
All I want outlook to do (as previous versions will allow) is send the email with no warning (AUTOMATED!). I have much code scattered around the database which creates email so I don't want ot have to change the coding of each routine unless i really have to.
I have tried the Outlook Redemption method and download this on to my machine but not sure how it works from here. Does it run when outlook runs (if so I still get the message warning) or am i supposed to do something to it or set something in outlook first?
I've also looked at other posts which use CDO in the code. This would mean me understanding how the CDO works and changing a LOT of my code.
My current coding is shown below:
'DEFINED VARIABLE EARLIER
Public MailboxID As Variant
Public Emailto As Variant
Public who As String
Public onmapi As NameSpace
Public ofcPersonalFolders As Folders
Public offolder As MAPIFolder
Public iFor As Integer
Public ol As Outlook.Application
Public olns As NameSpace
Public outobj As Outlook.Application
Public outappt As Outlook.AppointmentItem
Public ttime As Outlook.AppointmentItem
'EMAIL CODE :
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("Query_Summary_Offers_Placed_old_details")
rst.MoveFirst
Do While Not rst.EOF
With rst
Subject = "[PM]->OFFER WARNING: The Offer for " & ![Number/Name] & " " & ![Address_1] & " is now " & ![Age] & " days old, and has not been update"
body = "The Offer for " & ![Number/Name] & " " & ![Address_1] & " for £" & ![offer] & "(Market Value as £" & ![Market Value] & ") is now " & ![Age] & " days old." & vbCrLf & vbCrLf & "You should ba able to update this offer with feedback now." & vbCrLf & vbCrLf & "Contact the vendor to findout what has happened." & vbCrLf & ![Vendor Name] & vbCrLf & ![Telephone] & vbCrLf & ![dear] & vbCrLf & ! & vbCrLf & ![Website] & vbCrLf & vbCrLf & "This message will now keep appearing until you update the offer."
DoCmd.SendObject , , , Emailto, , , Subject, body & vbCrLf & vbCrLf & "" & vbCrLf & vbCrLf & "Regards" & vbCrLf & "Regards", False
rst.MoveNext
End With
Loop
****************************************
ANY IDEAS WOULD BE APPRECIATED
CHEERS
PAUL
Hi Guys,
I have recently installed a later version of Outlook and yes I have the intervention message everytime my database automates and email - and it does a lot of this , much of the time in the background.
I have read a few threads on how to solve the problem but still am no closer to a solution. If anyone can give any pointers that would be ACE.
All I want outlook to do (as previous versions will allow) is send the email with no warning (AUTOMATED!). I have much code scattered around the database which creates email so I don't want ot have to change the coding of each routine unless i really have to.
I have tried the Outlook Redemption method and download this on to my machine but not sure how it works from here. Does it run when outlook runs (if so I still get the message warning) or am i supposed to do something to it or set something in outlook first?
I've also looked at other posts which use CDO in the code. This would mean me understanding how the CDO works and changing a LOT of my code.
My current coding is shown below:
'DEFINED VARIABLE EARLIER
Public MailboxID As Variant
Public Emailto As Variant
Public who As String
Public onmapi As NameSpace
Public ofcPersonalFolders As Folders
Public offolder As MAPIFolder
Public iFor As Integer
Public ol As Outlook.Application
Public olns As NameSpace
Public outobj As Outlook.Application
Public outappt As Outlook.AppointmentItem
Public ttime As Outlook.AppointmentItem
'EMAIL CODE :
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("Query_Summary_Offers_Placed_old_details")
rst.MoveFirst
Do While Not rst.EOF
With rst
Subject = "[PM]->OFFER WARNING: The Offer for " & ![Number/Name] & " " & ![Address_1] & " is now " & ![Age] & " days old, and has not been update"
body = "The Offer for " & ![Number/Name] & " " & ![Address_1] & " for £" & ![offer] & "(Market Value as £" & ![Market Value] & ") is now " & ![Age] & " days old." & vbCrLf & vbCrLf & "You should ba able to update this offer with feedback now." & vbCrLf & vbCrLf & "Contact the vendor to findout what has happened." & vbCrLf & ![Vendor Name] & vbCrLf & ![Telephone] & vbCrLf & ![dear] & vbCrLf & ! & vbCrLf & ![Website] & vbCrLf & vbCrLf & "This message will now keep appearing until you update the offer."
DoCmd.SendObject , , , Emailto, , , Subject, body & vbCrLf & vbCrLf & "" & vbCrLf & vbCrLf & "Regards" & vbCrLf & "Regards", False
rst.MoveNext
End With
Loop
****************************************
ANY IDEAS WOULD BE APPRECIATED
CHEERS
PAUL