473,395 Members | 1,931 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,395 software developers and data experts.

Sending mails to ids stored in a table

47
Hi there,

Its me again with my silly questions. But this thing has been bogging my head for quite some time. I have a form and when it loads a mail is sent with a report to email ids listed in a table. I am able to send it to only the email id in the first field of the table. The code i used is :
Expand|Select|Wrap|Line Numbers
  1. data = DLookup("[Email_Address]", "TableName", "[Email_Address] <> ' '")
  2. DoCmd.SendObject acSendReport, , acFormatXLS, data, , , "report", "Pls find Report", False
  3.  
Pls let me know what is wrong...
Jun 26 '08 #1
3 1472
NeoPa
32,556 Expert Mod 16PB
NeoSam, you give very little away :S

What format is your data held in?

What do you expect this code to do for you?

I see nothing in the code that indicates there is anything more than a single address being used. In this case it seems obvious that only one recipient would receive the email.
Jun 27 '08 #2
neosam
47
NeoSam, you give very little away :S

What format is your data held in?

What do you expect this code to do for you?

I see nothing in the code that indicates there is anything more than a single address being used. In this case it seems obvious that only one recipient would receive the email.

Well NeoPa... there is a table where email ids of people are stored. there is the name in the first column and the email id in the next. and there are some 8 names and ids in the table. What is required is that on form load an email must be sent to everyone whose ids are there in the table. Is it possible to send mails to everyone is my question....
Jun 27 '08 #3
NeoPa
32,556 Expert Mod 16PB
In that case, to answer your first question, what is wrong is that your code only attempts to access one address to use to send the e-mail.

As far as your most recent question goes, I believe (from checking the help system) that multiple addresses can be used in each of the To, CC & BCC fields simply by separating the values with semi-colons (;) which would be similar to how it is done in your e-mail client.

I have little experience in this area so I cannot confirm this works as claimed, but coincidentally, I myself may have to find out sooner rather than later as I expect to be working in this area shortly.

With all the security restrictions in place nowadays that complicate automatic sending of e-mails, I expect that should be loads of fun (NOT!).
Jun 30 '08 #4

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

Similar topics

1
by: Jayakumar | last post by:
HI, I am using System.web.mail class in my application to send mails. I am using SMTP server for the same. I can send mail to the intranet addresses, But when i send mails to Hotmail or other...
7
by: Lau | last post by:
I need to send 1000 emails from an asp.net website. Normally I would use System.Web.Mail.MailMessage() to send thru an SMTP server. But the large amount of emails results in a timeout. My server...
6
by: Eduardo Rosa | last post by:
Somebody knows how I queue email using .Net? thanks a lot
8
by: Philippe Lang | last post by:
Hello, I need to send emails from Postgresql triggers. I was able to do it with a 'plperlu' function, that calls the 'system' perl function, that itself calls the 'mail' shell function. Is...
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...
8
by: Michel Posseth [MCP] | last post by:
Hi does someone has experience with this ?? i have made a lot of apps in the past that were capable of sending e-mails the server i then talked to was a Linux SMTP server and it worked great ...
2
by: sandeepk84 | last post by:
hi all... does anyone know how v can send mails using c#.net??? i have used d classes like SmtpMail and MailMessage... i have specified d server as SmtpMail.SmtpServer=localhost... and also...
15
by: praveena mani | last post by:
I have a table where i enter the students details. Whenever we insert a row in this table, a mail should be sent to the student for the student to verify the details entered. The email id is...
7
by: bleachie | last post by:
Hey, I just need some help, my form seems to not send me all of the 'guestNames' and 'guestEmails' forms. i use this function to add more guestnames and guestemail fields based on the number of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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
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,...

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.