473,385 Members | 1,326 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.

Automatic Emails out of Access

I have several databases that send out multiple reports in multiple emails at the click of a button on the main screen as needed.

To avoid the 5 second countdown time that pops up I use a freeware program called "ClickYes" that bypasses this problem and prevents me from having to wait to approve each individual email.

My question: Is there any way to do this within the database without having to use an external program?
Feb 18 '20 #1
6 2169
twinnyfo
3,653 Expert Mod 2GB
JEBritt,

It depends. Outlook allows you to send e-mails directly from Access. However, most companies with Outlook also manage their clients so that such things can't be done directly through VBA. Likewise, such organizations also require you to use the MS Exchange Server, which limits OTS software that might be able to circumvent such security protocols. I have just learned to live with disappointment. Security protocols are there for a reason. I can easily click send on a hundred e-mails, rather than type them up from scratch, so I am still better off.

Just my two cents.

Hope it hepps!
Feb 18 '20 #2
SioSio
272 256MB
If you use Mincrosoft Outlook,
perhaps this code sends an email without security warning.
Add "Microsoft Outlook XX.X Object Library" in tool-> reference.

Expand|Select|Wrap|Line Numbers
  1. Dim objOutlook As Outlook.Application
  2. Dim objMsg As Outlook.MailItem
  3. Set objOutlook = New Outlook.Application
  4. Set objMsg = objOutlook.CreateItem(olMailItem)
  5. objMsg.Body = "Body goes here"
  6. objMsg.Subject = "Subject goes here"
  7. objMsg.Recipients.Add "Email@Address.com"
  8. objMsg.Send
Feb 19 '20 #3
twinnyfo
3,653 Expert Mod 2GB
Sio,

Yes, this will work in an un-managed environment. At our office, the network security experts have disabled that ability.
Feb 19 '20 #4
SioSio
272 256MB
Hi twinnyfo.
How is it control?
How do it know it's vba code?
Please tell me there are interested.
thanks.

If direct mailing is disabled with security, run up to the point where display the mailer.

Expand|Select|Wrap|Line Numbers
  1. Dim objOutlook As Outlook.Application
  2. Dim objMsg As Outlook.MailItem
  3. Set objOutlook = New Outlook.Application
  4. Set objMsg = objOutlook.CreateItem(olMailItem)
  5. objMsg.Body = "Body goes here"
  6. objMsg.subject = "Subject goes here"
  7. objMsg.Recipients.Add "Email@Address.com"
  8. objMsg.Display
Feb 19 '20 #5
twinnyfo
3,653 Expert Mod 2GB
Sio,

1. I am not a network guy.

2. I am not a security guy.

So, I don't know "how" it works, but managed systems are able to know when a software application is trying to send data either out of or into your system through the network "when not prompted by user action."

So, yes, the "solution" in these cases is to get to the .Display statement. If your code is cycling through a series of records with multiple e-mails, your system will generate and display a series of e-mails that you simply have to click "Send" on.

Because our systems use encryption and Smart Card authentication, this generation of multiple e-mails simultaneously can almost cripple our activity, so, I simply add MsgBox "Next" after each .Display statement and the user then clicks "Send", then "Next" and it will hog fewer resources.

Again, these are work-arounds because of the managed systems. VBA/Outlook Automation is designed to be able to send the e-mails directly from your code. But, in the name of network security, this is often disabled at the enterprise level.

Hope that makes sense--I'm only using language that I can comprehend, since it's outside my realm of expertise. I don't know if rollerbladegirl might have more insight on this--I think she's a network security person. I'll send her a note to check out this thread to see if she has any insight.

Hope this hepps!
Feb 20 '20 #6
Rabbit
12,516 Expert Mod 8TB
There's also the option of using the CDO object that avoids having to automate Outlook.
Feb 20 '20 #7

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

Similar topics

1
by: Devonish | last post by:
I am composing an email with Access VB and then sending it from within Access. Everything works correctly (the email actually goes!) but Outlook ask some irritating questions that the user is...
4
by: Tero Partanen | last post by:
Hello! I'm writing about a rather peculiar problem I'm having with Access2000. I have a table in which I have created one hyperlink-type field. I have given the field a default value which is...
3
by: Chris | last post by:
Hello all. I have a database that I use to send email updates to people. Everything is working fine, but one suggestion I keep getting is to add a link to the automatic emails that will open up the...
5
by: Jai | last post by:
Hi, I am in a problem of sending mass emails(newsletter) to my website members. Actually my problem is this: I want to send newsletter to my website members. But I had given a facility for...
1
by: shubhrarustagi | last post by:
hi, I'm a beginner developer and one of my first tasks is to develop automatic emails application in .net. We need to send automatic emails to users whose credit cards are expiring, create email...
2
by: Ben | last post by:
Hi , Is there a function to log out people on a secured DB in access. Let's say after 2 hours of inoperation . Tks...
4
by: margot | last post by:
Hello, I have a question I have a form call Add record. The user needs to fill out several fields and then after pressing the Add button it will add the record to a table. I would like to create a...
5
by: mlevit | last post by:
Hey guys, I don't have an issue right now but I am starting a trading website similar to eBay and I cannot get my head around one thing. How do you code so that emails are sent out automatically...
6
by: mulamootil | last post by:
Hi, I have few tables and i am populating them using respective forms. However on one of the tables, there are 10 fields out of which 2 fields, I would like some other user to fill it. Is there a way...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.