473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Sending emails from Access without Outlook Warnings

30
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
Jun 6 '07 #1
7 9309
maxamis4
295 Expert 100+
with the outlook object add this piece to it

Expand|Select|Wrap|Line Numbers
  1. .DisplayAlerts = False
  2.  
Jun 6 '07 #2
mlevit
30
with the outlook object add this piece to it

Expand|Select|Wrap|Line Numbers
  1. .DisplayAlerts = False
  2.  
I use
Expand|Select|Wrap|Line Numbers
  1. DoCmd.SendObject
to send out emails

Where exactly do I place that piece of code?

I know
Expand|Select|Wrap|Line Numbers
  1. DoCmd.SetWarnings False
is used before SQL statements, but where would i use the other one?
Jun 6 '07 #3
maxamis4
295 Expert 100+
Could you post your entire module please. Its not the sql its in the actual outlook object piece.
Jun 6 '07 #4
cyberdwarf
218 Expert 100+
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
Jun 6 '07 #5
mlevit
30
Could you post your entire module please. Its not the sql its in the actual outlook object piece.
Expand|Select|Wrap|Line Numbers
  1. Dim dbs As DAO.Database
  2.     Dim rst As DAO.Recordset
  3.  
  4.     Set dbs = CurrentDb
  5.     Set rst = dbs.OpenRecordset("Email - Purchase - Incompleted Due Followups")
  6.  
  7.     Dim intCount As Integer
  8.  
  9.     intCount = DCount("[FullName]", "[Email - Purchase - Incompleted Due Followups]")
  10.  
  11.     If intCount = 0 Then
  12.         MsgBox ("There are no followups to email"), vbInformation
  13.         Exit Sub
  14.     Else
  15.         rst.MoveFirst
  16.         Do Until rst.EOF
  17.  
  18.         tempBodyField = mainBodyField
  19.         tempSubjectField = mainSubjectField
  20.         strEmailAddress = rst![email]
  21.         FollowupDate = rst![FollowupDate]
  22.         FollowupDate = DateAdd("m", 3, todaysDate)
  23.  
  24.         tempBodyField = Replace(tempBodyField, "<cname>", rst![FullName])
  25.         tempBodyField = Replace(tempBodyField, "<purchase>", rst![Product])
  26.         tempBodyField = Replace(tempBodyField, "<date>", todaysDate)
  27.         tempBodyField = Replace(tempBodyField, "<pdate>", rst![PurchaseDate])
  28.  
  29.         tempSubjectField = Replace(tempSubjectField, "<cname>", rst![FullName])
  30.         tempSubjectField = Replace(tempSubjectField, "<purchase>", rst![Product])
  31.         tempSubjectField = Replace(tempSubjectField, "<date>", todaysDate)
  32.         tempSubjectField = Replace(tempSubjectField, "<pdate>", rst![PurchaseDate])
  33.  
  34.         DoCmd.SendObject , , , strEmailAddress, _
  35.                           , , tempSubjectField, tempBodyField, False, False
  36.  
  37.         DoCmd.SetWarnings False
  38.         DoCmd.RunSQL "UPDATE Followup " & _
  39.                      " SET Followup.FollowupDate = '" & FollowupDate & "', Followup.EmailSentDate = '" & todaysDate & "', Followup.Completed = 'Yes'" & _
  40.                      " WHERE (((Followup.ID) = " & rst![ID] & "))"
  41.  
  42.         DoCmd.SetWarnings True
  43.  
  44.         rst.MoveNext
  45.         Loop
  46.  
  47.         rst.Close
  48.         Set rst = Nothing
  49.         dbs.Close
  50.         Set dbs = Nothing
  51.  
  52.         MsgBox intCount & " followups have been sent out" _
  53.                + Chr(13) + Chr(13) + "A new followup date for these purchases" & _
  54.                Chr(13) + "has been set to " & FollowupDate, vbInformation
  55.         DoCmd.RunCommand (acCmdCloseWindow)
  56.     End If
  57.  
Jun 7 '07 #6
MMcCarthy
14,534 Expert Mod 8TB
It can be turned off in Outlook
Jun 13 '07 #7
can you tell me where in outlook can we trun this off? i have the same problem...
Aug 29 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

1
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...
5
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...
2
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 -...
0
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...
1
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...
3
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...
2
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...
6
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...
0
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.