Oh dear! E-mail AGAIN!

julietbrown

New member
Local time
Today, 03:18
Joined
Aug 23, 2004
Messages
9
I have searched forums, and MSoft support dbase ... no joy on this one

I have working code that constructs a "mailto" string that looks like (e.g.)

#Mailto:julietbrown@thing.com,fredbloggs@otherthing.com#

(this can be any length ... user picks addresses from a list box and code builds the string (called eString below), and puts it in a text box called EmailAddresses

My VBA says
EMailAddresses = eString
EMailAddresses.Hyperlink.Follow
This ,akes Outlook Exp open Word as my email editor, puts the top-and-tailed string (just the email addresses, minus #Mailto: ... #" into the recipient and lets me type the message and send it.

FINE, AS FAR AS IT GOES, BUT
My client doesn't want all the addresses in the recipient line, because that means they all get to know eachothers' email addresses.

I really want to create a mail alias WITHIN Access... Is there any way this is possible? Or any other way of solving the problem?
 
Thanks for your time and help
But the addresses are in estring fine; the problem is that all the addresses show up in the recipient line of the message so everyone mailed gets everyone else's email address :eek: . Still brooding on it, so if you get any other ideas ... please!! ...
Juliet
 
If you use office automation to create a mailobject you can put the email addresses into the BCC of a mail, thus hidding the email addresses from all who receive the mail.

Regards
 
Ah! :) THAT sounds like the way to do it! Thanks. I have to learn some stuff about Office Aut, as I always prefer to work at the 'code it yourself nitty gritty level' (Poor old DOS body!) But I am now motivated!

Thanks lots
 
Just to help you along:

You need to add the Microsoft Outlook ... Object library to the references.

Also you cannot send a trully automated mail due to security you will get a message saying something like: "An application is trying to send a mail, do you agree?"

You can try to work around that using something called "retention",
I will leave "the rest of the work" to you. There are some samples out here, also you can allways post any questions you have left after looking for the samples ;)

Regards & GL
 
Juliet

Look again at the code I posted in the other thread. The email addresses do appear in the bcc field.
 

Users who are viewing this thread

Back
Top Bottom