Hi,
I send out emails through MS Access via SendObject. I would like to know if there is a way of getting rid of the Outlook Security Popup that comes up every time an email is about to be sent.
I have tried Advanced Security For Outlook but it does not seem to popup when sending emails, I’ve used it before for synchronization with my mobile, and it seemed to popup then.
Any help would be greatly appreciated
7 9309
with the outlook object add this piece to it
with the outlook object add this piece to it
I use
to send out emails
Where exactly do I place that piece of code?
I know
is used before SQL statements, but where would i use the other one?
Could you post your entire module please. Its not the sql its in the actual outlook object piece.
Hi,
If this is what I think it is, then no amount of VBA coding will stop the popup message from Outlook. Recent versions of Outlook have enhanced security which is meant to stop spam being sent from external apps.
The warning usually says something like "a 3rd party app is trying to send a message ..."
The only way to get rid of the popup warning is to either click the OK button, or run a small app which willl do this for you automatically (there are one or two which are widely available - Google "Outlook security warning")
Hope this is of some assistance
Could you post your entire module please. Its not the sql its in the actual outlook object piece.
-
Dim dbs As DAO.Database
-
Dim rst As DAO.Recordset
-
-
Set dbs = CurrentDb
-
Set rst = dbs.OpenRecordset("Email - Purchase - Incompleted Due Followups")
-
-
Dim intCount As Integer
-
-
intCount = DCount("[FullName]", "[Email - Purchase - Incompleted Due Followups]")
-
-
If intCount = 0 Then
-
MsgBox ("There are no followups to email"), vbInformation
-
Exit Sub
-
Else
-
rst.MoveFirst
-
Do Until rst.EOF
-
-
tempBodyField = mainBodyField
-
tempSubjectField = mainSubjectField
-
strEmailAddress = rst![email]
-
FollowupDate = rst![FollowupDate]
-
FollowupDate = DateAdd("m", 3, todaysDate)
-
-
tempBodyField = Replace(tempBodyField, "<cname>", rst![FullName])
-
tempBodyField = Replace(tempBodyField, "<purchase>", rst![Product])
-
tempBodyField = Replace(tempBodyField, "<date>", todaysDate)
-
tempBodyField = Replace(tempBodyField, "<pdate>", rst![PurchaseDate])
-
-
tempSubjectField = Replace(tempSubjectField, "<cname>", rst![FullName])
-
tempSubjectField = Replace(tempSubjectField, "<purchase>", rst![Product])
-
tempSubjectField = Replace(tempSubjectField, "<date>", todaysDate)
-
tempSubjectField = Replace(tempSubjectField, "<pdate>", rst![PurchaseDate])
-
-
DoCmd.SendObject , , , strEmailAddress, _
-
, , tempSubjectField, tempBodyField, False, False
-
-
DoCmd.SetWarnings False
-
DoCmd.RunSQL "UPDATE Followup " & _
-
" SET Followup.FollowupDate = '" & FollowupDate & "', Followup.EmailSentDate = '" & todaysDate & "', Followup.Completed = 'Yes'" & _
-
" WHERE (((Followup.ID) = " & rst![ID] & "))"
-
-
DoCmd.SetWarnings True
-
-
rst.MoveNext
-
Loop
-
-
rst.Close
-
Set rst = Nothing
-
dbs.Close
-
Set dbs = Nothing
-
-
MsgBox intCount & " followups have been sent out" _
-
+ Chr(13) + Chr(13) + "A new followup date for these purchases" & _
-
Chr(13) + "has been set to " & FollowupDate, vbInformation
-
DoCmd.RunCommand (acCmdCloseWindow)
-
End If
-
It can be turned off in Outlook
can you tell me where in outlook can we trun this off? i have the same problem...
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Neil Ginsberg |
last post by:
A client of mine is using Outlook (2002, I believe), and is getting prompted
for confirmation that another program is sending e-mail in his name. That
confirmation has to go, as it's part of an...
|
by: adrian.williams2 |
last post by:
Hi,
I'm having trouble trying to email a report via access...
I get a Outlook message stating 'a program is trying to automatically
send e-mail on your behalf. Do you want allow this?
This...
|
by: Mr. x |
last post by:
Hello,
I am sending emails with Hebrew contents.
When receiving emails - I cannot see the Hebrew characters (it is not
outlook express configuration, because when receiving emails from friends -...
|
by: Ryan |
last post by:
Outlook problem with encoding characters when sending emails in
asp.net
I'm putting this out here incase someone has the same problem I did..
I had a problem with German characters not showing...
|
by: Dirk Goossens |
last post by:
Hello!
I'm sending E-mails to mailadresses in a table, using the code below.
How can I send more than one attachment?
Access can find the file to be send in this field: MY_EMAILATTACHMENT_FIELD...
|
by: danp |
last post by:
Hi,
I am doing an application that among other functions sends emails with Microsoft Outlook using the MAPISendMail API call.
I have two problems :
First, I would like to change the email...
|
by: Jodye Roebuck |
last post by:
I have a program that's been automatically generating and sending emails
flawlessly. My clients workstation had an automatic Microsoft security
update done on it.. and now it's bombing on this...
|
by: dlblack |
last post by:
I am using the following code to send emails with attachments from Access using Outlook. The code works fine if Outlook is already open and emails are sent as expected via Outlook. When Outlook is...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |