473,404 Members | 2,137 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,404 software developers and data experts.

Coding for closing down an automatic email

AllusiveKitten
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 1744
nico5038
3,080 Expert 2GB
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
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 Expert 2GB
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
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 Expert 2GB
By turning the .mdb into a .mde the code will be "precompiled" 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
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...
4
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...
23
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...
144
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...
102
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...
5
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...
22
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...
78
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...
6
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...
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: 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
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...
0
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,...
0
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...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.