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

Sendin emails through Microsoft Access

I've been trawling through the internet to find out how to send emails to
selected email addresses in access but cant seem to find anything.ive a
database that im workin on with name address etc etc.there is a tick box
beside each person and im wantin to select a number of people and send
them the same message.i want outlook to open a new email.was wonderin is
this possible and if so how do you do this?

Thanks

Neil

Nov 13 '05 #1
3 1251
Assuming the "Names" are in a database, go into design view, click on
the names field, and under general click Smart Tags. The smart tag you
want is "Person Name".

Save and open table and then next to each name, you'll have an Icon
appear that will give you all the options you need for this.

Nov 13 '05 #2
Sending an email from Access is done easily via the SendObject method, as in
the following example:

DoCmd.SendObject acSendNoObject, , , jo*****@spamthis.com, , , "Message
Subject Here", "Message Body Here"

That will open up a new email message with the above recipient. Now, if you
want to send to a group of people, you need to clarify if you want to get
the list of people directly from a table, or from a form you're looking at.
From a table, you would simply open a recordset, step through each record,
and pass the email to a string like so:

Do while not recsetAddress.Eof
strTo = strTo & "; " & recsetAddress.email
recsetAddress.MoveNext
Loop

strTo = Mid(strTo, 2)

Then, you can pass the strTo variable to the fourth argument of the
SendObject method (e.g: the "TO").

If you're using a form, well, that gets a bit more complicated, and you'll
have to step through records within the form. Let me know if you need to do
this, and I'll pull some code up and post if for you.

Hope that helps some.

JV

"acni" <nb***@artscouncil-ni.org> wrote in message
news:4b******************************@localhost.ta lkaboutdatabases.com...
I've been trawling through the internet to find out how to send emails to
selected email addresses in access but cant seem to find anything.ive a
database that im workin on with name address etc etc.there is a tick box
beside each person and im wantin to select a number of people and send
them the same message.i want outlook to open a new email.was wonderin is
this possible and if so how do you do this?

Thanks

Neil

Nov 13 '05 #3
unfortunately Javster ive to do the more complex one so if you could do
that it would be very much appreciated.thanks man

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: CK | last post by:
Hi all, I know this question is stupid. But i need some advice for this. I am trying to develop a website, which will allow the user send to order form to the admin email. I am planning to use the...
2
by: Bob | last post by:
Hi Everybody A tough one!!! Is there any way that incoming eMails (MailItems) into Ms Outlook can be used to automatically create records in a ms Access table or sub table. Smiley Bob
5
by: Emmett Power | last post by:
Hi, I use Access to send emails through SMTP. I'd like to mirror the process and retrieve emails from my SMTP/Pop3 server without the intermediary of Outlook. I don't want to spend a lot of...
5
by: horsetransport | last post by:
Hello, Below is what I "Know how to do" but it doesn't accomplish what I want I have table called sndmail fields that matter useremail and mailsent
12
by: Dave G | last post by:
Apologies if this has been covered before - I couldn't find it. I currently use ASPEmail to create and send HTML emails from an Access database. The text is personalised and includes embedded...
16
by: Kosmos | last post by:
Good afternoon everyone, just wondering if anyone knew if it's possible to send meetings or appointments through email when you run VBA or SQL code in Access 2003? The following is the code I've been...
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...
4
by: =?Utf-8?B?QWxwYW5h?= | last post by:
I am making a thin email client and want to get emails from a pop3 server...Is there any built in support in C# to get emails from a pop3 server and parse the email to show up on the UI ?
0
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
Like many people, I normally use Yahoo! Mail via the web and like to keep all my emails stored on the Yahoo! server. However sometimes I can’t get access to a PC/the web and I download my emails...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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...
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.