473,770 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Coding for closing down an automatic email

AllusiveKitten
43 New Member
Hi all,

I really hope I can explain myself properly, I have set up coding to send multiple automatic emails which is working super! Each email that is being sent I receive the security Pop up box that say someone is trying to send an email on behalf of myser.

My question is, is there a code I can put in for when someone presses the No button because at the moment when it is pressed, I am getting a debug error.

Thank you for you help
AK
Oct 22 '07 #1
5 1763
nico5038
3,080 Recognized Expert Specialist
You should look into the CDO security in this article:
http://support.microsoft.com/kb/290500/

It will allow the emails to be sent without security warning.

Nic;o)
Oct 22 '07 #2
AllusiveKitten
43 New Member
Hi Nico,

I have had a read of the document and I am sorry to say that it has gone completely over my head. Can you please give me just a little hint on how to go about removing the warning?

Thank you for you help
AK
Oct 22 '07 #3
nico5038
3,080 Recognized Expert Specialist
Sorry, that was the "more difficult" link and now I realize that it doesn't hold sample code.
Try the sample code of this link:
http://support.microsoft.com/kb/161833

The commentlines should provide all information, but don't hesitate to ask when you get stuck !

Nic;o)
Oct 23 '07 #4
AllusiveKitten
43 New Member
Sorry, that was the "more difficult" link and now I realize that it doesn't hold sample code.
Try the sample code of this link:
http://support.microsoft.com/kb/161833

The commentlines should provide all information, but don't hesitate to ask when you get stuck !

Nic;o)
Hi Nico,

I have just tried the coding that they provide, I think this is just to show how to send an email.... this coding give 2 security pop ups and 1 coded Msgbox.

Below is the code I have for my emails to send, in my full version I have a loop that goes until all emails are sent.


Expand|Select|Wrap|Line Numbers
  1. Sub ReminderEmails()
  2.  
  3. Dim Email As String
  4. Dim EmailName As String
  5. Dim strNote As String
  6. Dim objOutlook As Outlook.Application
  7. Dim objEmail As Outlook.MailItem
  8.  
  9. EmailName = "email@address.com.au"
  10.  
  11.                 strNote = "Dear " & EmailName & vbCrLf & vbCrLf
  12.                 strNote = strNote & "the rest of the message " 
  13.  
  14.                 Set objOutlook = CreateObject("Outlook.application")
  15.                 Set objEmail = objOutlook.CreateItem(olMailItem)
  16.  
  17.                 With objEmail
  18.  
  19.                     .To = Email
  20.                     .Subject = "Subject Title"
  21.                     .Body = strNote
  22.                     .Send
  23.                 End With
  24.  
  25.                  Set objEmail = Nothing
  26.  
  27. End Sub
I am just worried that another user is going to hit "No" when the Security Box comes up which will then give them the Debug Message box & give them access to the coding which can be dangerous when they dont know anything about it.

I really appreciate all the help you are giving me.

Thank you
AK
Oct 23 '07 #5
nico5038
3,080 Recognized Expert Specialist
By turning the .mdb into a .mde the code will be "precompile d" and invisible for your users.
That's the most secure way to prevent them to see (and edit) your code.

Nic;o)
Oct 23 '07 #6

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

Similar topics

1
1709
by: avinashc | last post by:
If anyone is interested in a /etc/hosts.deny automatic update script (Unix only) based on sshd/vsftpd attacks, here's a python script: http://www.aczoom.com/tools/blockhosts/ This is a beta release, and my first attempt at Python coding. Any comments, suggestions, pointers on using more common Python idioms or example coding snippets, etc, welcome! Thanks!
4
2060
by: bbass | last post by:
thanks to all that replyied to my previous post with the following code in question: <a href="merc.htm" target="_new_merc" onfocusout=window.close class="left_link"> i understand that the people don't like the idea of closing the browser window because it's annoyance to the user
23
2042
by: Bruno R. Dias | last post by:
Perhaps it would be interesting to program a virtual machine simulating an ancient computer (such as the pdp-7). Then, it would be rather interesting to code for it (porting gcc to it maybe?). I think it would be fun to play with the long-forgotten art of coding in machine language. And what about a fictional computer, such as one that works on an entirely different way (such as a non-binary computer)? It wouldn't be very useful, but...
144
6952
by: Natt Serrasalmus | last post by:
After years of operating without any coding standards whatsoever, the company that I recently started working for has decided that it might be a good idea to have some. I'm involved in this initiative. Typically I find that coding standards are written by some guy in the company who has a way of coding that he likes and then tries to force everybody else to write code the way he likes it, not for any rational reason, but simply for the...
102
5716
by: Skybuck Flying | last post by:
Sometime ago on the comp.lang.c, I saw a teacher's post asking why C compilers produce so many error messages as soon as a closing bracket is missing. The response was simply because the compiler can't tell where a bracket is missing.... a few weeks have past, I requested a feature for the delphi ide/editor "automatic identation of code in begin/end statements etc" and today when I woke up I suddenly released a very simple solution for this...
5
3691
by: Carlo | last post by:
Good morning I've not found an event that notify me when drop-down part of a BomboBox is closed. OnDropDown just notify when the drop-down is displayed, not when it is closed. Is there a message in WndProc that can be used to intercept a drop-down closing? Thank you very much.
22
3831
by: JPSutor | last post by:
when I use the AppDomain.UnLoad method (which calls the Thread.Abort method), I get the following error message AppDomain can not be unloaded because the thread 1378 can not be unwound out of it It seems to take time doing this. If I wait for about 30 seconds, it seems to get unloaded. Any ideas?
78
4921
by: Robert Baer | last post by:
The homepage i have had up and seemingly working is: http://oil4lessllc.com/ However, the validator has so many complaints, and being so incompetent, i have no clue as to how to fix it all. Would the use of Dreamweaver be of great help?
6
1603
by: Steven D'Aprano | last post by:
Closing a file can (I believe) raise an exception. Is that documented anywhere? I've spent a lot of frustrating time trying to track this down, with no luck, which suggests that either my google-foo is weak or that it isn't documented. Is IOError the only exception it can raise? The only thing I have found is this: http://mail.python.org/pipermail/python-bugs-list/2004-November/026031.html Out of curiosity, is there a simple way to...
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10259
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.