473,507 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

send email to multiple people from access

7 New Member
Hi everyone.

Is it possible that send same email to multiple people in table/form anyone with the same draft.

1.Private Sub Command20_Click()

2.Dim body As String

3.body="hello all"
4.If Me.ePosta <> "" Then
5.DoCmd.SendObject acSendNoObject, , , Me.ePosta, , , "hi", body, True
6.End If
7.Exit Sub
8.email_error:
9. MsgBox "An error was encountered." & vbCrLf & "The error message 10. is: " & Err.Description
11. Resume Error_out
12. Error_out:
13. End Sub

this code sends mail only one person. i want to send same mail to whole people.
i mean that it must be shown that to: bla@bla.com;bla2@bla.com;bla3@bla.com ......

like that

thanks
Feb 8 '07 #1
3 2968
MMcCarthy
14,534 Recognized Expert Moderator MVP
Hi everyone.

Is it possible that send same email to multiple people in table/form anyone with the same draft.

1.Private Sub Command20_Click()

2.Dim body As String

3.body="hello all"
4.If Me.ePosta <> "" Then
5.DoCmd.SendObject acSendNoObject, , , Me.ePosta, , , "hi", body, True
6.End If
7.Exit Sub
8.email_error:
9. MsgBox "An error was encountered." & vbCrLf & "The error message 10. is: " & Err.Description
11. Resume Error_out
12. Error_out:
13. End Sub

this code sends mail only one person. i want to send same mail to whole people.
i mean that it must be shown that to: bla@bla.com;bla2@bla.com;bla3@bla.com ......

like that

thanks
Assuming Me.ePosta is where the email address is stored do you want to send it to everyone in here or just some of them.
Feb 8 '07 #2
okan
7 New Member
ePosta is a field which stores email addresses of people. code is trying to get mail address from this field and connect to outlook and send body to the receiver. this code is ok for sending mail only choosen email, but i have for example 50 user and i want to send the sample email to all of them. Is there a way to make it?
Feb 9 '07 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
ePosta is a field which stores email addresses of people. code is trying to get mail address from this field and connect to outlook and send body to the receiver. this code is ok for sending mail only choosen email, but i have for example 50 user and i want to send the sample email to all of them. Is there a way to make it?
You say you have an example of 50 users but is this all the users in the table or is there some query to decide which users will be receiving the email?
Feb 9 '07 #4

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

Similar topics

15
11038
by: news.microsoft.com | last post by:
HI, ASPEmail to send to multiple recipients? I tried to use comma and semicolon but all the time give this message error: Error: 6 - 501 Bad address syntax nor :...
1
5321
by: Jay McGrath | last post by:
Help - trying to send a simple text email with with as little user intervention. I am trying to create a button in my Access application that will automatically send a simple text email. It...
7
5399
by: Daven Thrice | last post by:
I know how to send email out of Access, and that's no problem. What I need to figure out is how to receive email into access. Say that I give access an email address, such as access@daven.com. I...
7
12570
by: Mega1 | last post by:
is this possable to send more than 1 report in one email
3
4536
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a...
3
4668
by: sentiboy | last post by:
I am using the following code for sending email through mapi in VS 2005 environment: Public objSession As New MSMAPI.MAPISession Public objMessage As New MSMAPI.MAPIMessages ...
2
8957
by: diwadube2003 | last post by:
I get a Warning message while automatically sending email through MS Access, using Outlook. Can anybody help me out with this.
4
4053
by: sam12 | last post by:
Hi I wana send Email with attached pdf files from my ms access 2000 ,os win 2000 via outlook express without confirmation . I googled a lot Tried so many codes but that didn't work Thank in...
0
7223
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
7111
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
7319
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,...
0
7376
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...
1
7031
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
7485
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
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 ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.