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

Sending emails to multiple recipients

Hi

Is it possible/anyone know how to send a document (.pdf) to multiple
recipients using POP where the email is not just a matter of throwing 1000
email addresses in the BCC list, but each email is addressed personally..
ie: dear Harry...

I need to generate a subset of people via a query who have authorised to
receive information via email. Get those email addresses into outlook,
attach the document and then (if possible) personalise the email and send it
off.

Point to note: At this point I'm not sure if I will be using Access tables
as back end or SQL express

Any help is much appreciated.

Michelle
Mar 21 '06 #1
4 5586
Wrong group. I can only tell you how to do this in .NET

In a FOR loop of all your people in a list, create an individual mail
message like this:

Dim NewMail As New System.Net.Mail.MailMessage(EmailFrom, EmailTo)
NewMail.Subject = EmailSubject
NewMail.Body = EmailBody
NewMail.IsBodyHtml = True ' unless of course its not.
' ... you get the gist, fill in all the fields you like
' add an attachment
Dim attachMe As New System.Net.Mail.Attachment(AttachmentPath)
NewMail.Attachments.Add(attachMe)
' Now send it
Dim sendmail As New System.Net.Mail.SmtpClient(SMTPServer) ' Get this
from your ISP
sendmail.Send(NewMail)

Mar 22 '06 #2
Michelle wrote:
Hi

Is it possible/anyone know how to send a document (.pdf) to multiple
recipients using POP where the email is not just a matter of throwing 1000
email addresses in the BCC list, but each email is addressed personally..
ie: dear Harry...

I need to generate a subset of people via a query who have authorised to
receive information via email. Get those email addresses into outlook,
attach the document and then (if possible) personalise the email and send it
off.

Point to note: At this point I'm not sure if I will be using Access tables
as back end or SQL express

Any help is much appreciated.

Michelle


Why use outlook? .Net has email classes built into it.

http://www.google.com/search?hl=en&q=vb.net+send+email

Make the email, send it, loop through dataset.

Chris
Mar 22 '06 #3
Michelle,

You can use in my opinion Exchange interop (Mapi)

http://msdn2.microsoft.com/en-us/library/245421h5.aspx

Cor

"Michelle" <no****************@yahoo.com.au> schreef in bericht
news:dv**********@otis.netspace.net.au...
Hi

Is it possible/anyone know how to send a document (.pdf) to multiple
recipients using POP where the email is not just a matter of throwing 1000
email addresses in the BCC list, but each email is addressed personally..
ie: dear Harry...

I need to generate a subset of people via a query who have authorised to
receive information via email. Get those email addresses into outlook,
attach the document and then (if possible) personalise the email and send
it off.

Point to note: At this point I'm not sure if I will be using Access tables
as back end or SQL express

Any help is much appreciated.

Michelle

Mar 22 '06 #4
Thank you both for replying. I will have a look further into what you both
suggest.

Steven I am writing this in .NET. Sorry for posting in the wrong group.
Mar 22 '06 #5

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

Similar topics

2
by: Joe | last post by:
Hi, I am sending an email from an asp page. Besides sending an email to sender, I am sending myself a BCC also. Out of 100 emails sent, about 5 recipients received a blank email (no text in...
2
by: Norman Fritag | last post by:
Hi there are there any issues with sending multiple emails via GroupWise ver. 6??? please comment. Regards Norman
4
by: splicemix | last post by:
Hi all, I have recently set up a Drupal website. I am a beginner. My shared host server does not allow nobody@localhost to send emails, and prevents access to php.ini, so I spent some time...
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
5
by: Kun | last post by:
i have the following code: ---------------------------------- import smtplib from email.MIMEText import MIMEText fp = open('confirmation.txt', 'rb') msg = MIMEText(fp.read()) From =...
0
by: krouxsa | last post by:
Hi There people... Please help me with this query. I want to send 1 email to multiple email addresses stored in a database. Will it be possible? I'm using SQL Server 2005 and already set up...
2
by: Jeff Williams | last post by:
I can send emails using the smtpclient class but I would like to do the following: 1. Send the emails to a bulk lot of clients and use no To address only a BCC address 2. use the To or Cc to...
0
by: damimkader | last post by:
Hi, I'm trying to send emails using a Macro based on an Excel Sheet and the Email Client I'm using is Lotus Notes. OS used - Windows Xp. Language - VB Below is the Code I'm using for doing...
0
by: ramab | last post by:
hi, i'm a bit stuck here in sending emails to multiple users which i need to read from a database. With codes below, i able only to send 2 recipients. any idea how to send to multiple users? thx...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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: 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: 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...
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
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
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...

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.