[AccessD] HTML Email from Access

Arthur Fuller artful at rogers.com
Wed Jul 30 09:20:48 CDT 2003


I can answer one part of your question (not the email HTML part). A very
simple way to mix static text and variables is to create the text with
markers, such as the following:
 
Dear \\FirstName\\,
Thank you for purchasing a \\ProductName\\. We appreciate your
\\ProductPrice\\.
 
Assign the text to a variable, then execute a series of Replace() function
calls, one for each marker. 
 
As to the other part, how to write the message itself as HTML, I'm eager for
the answer too. What really baffles me is how to include pictures etc.
instead of references to files on a particular hard disk, which may not be
accessible from the outside world.
 
Arthur

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey
Sent: July 30, 2003 7:25 AM
To: Stuart McLachlan; "accessd at databaseadvisors.com"@smithers.nildram.co.uk
Subject: Re: [AccessD] HTML Email from Access


Hi Stuart
Thanks for the reply.
I'm about to visit a potential new client who is looking to replace an
off-the-shelf contact management system withan Access app. Good news for me
I hope. Anyway one of the requirements is to be able to prepare HTML emails
(text and pics and anything else I guess) with, in effect, field placemarks
(e.g. [CustomerName] or whatever). It then has to do an "emailmerge" between
the HTML and the data and send to all on his list. Does that make sense?
What do you think?

I've kept this on-list for now as it better explains (I hope) what I'm
trying to do and there may be others out there who can help or want to see
where the discussion leads.

--
Andy Lacey
http://www.minstersystems.co.uk





--------- Original Message --------
From: "Stuart McLachlan" <stuart at lexacorp.com.pg>
To: "Andy Lacey" <andy at minstersystems.co.uk>, "accessd at databaseadvisors.com"
<accessd at databaseadvisors.com>
Subject: Re: [AccessD] HTML Email from Access
Date: 30/07/03 11:03


On 30 Jul 2003 at 11:37, Andy Lacey wrote:

>
> Morning all
> Any one have any experience of sending out HTML email-shots from
> within Access. I already use automation to drive Outlook but have
> only ever sent text emails. How would I (or more likely the user)
> format HTML emails? In Word or what? And how would I merge data fom
> the Access database with it ("Hi Bill" etc) and send them via
> Outlook? Any ideas? Anyone doing it already? Any guidance would be
> gratefully received.
>

I do it in a number of different ways.

I have a small PB application which interrogates a Contact list and
sends out to everyone with a certain "category" in the the contacts
list. It is designed to compose the html mail in Outlook which is
then saved to a HTML file.

I've also done it by creating a report and using Docmd.SendObject to
each one in turn with a single page report output as HTML.

Email me off-list with more info on exactly what you are trying to do
and I'll fire something through to you.

(I do it under protest for a client , but I personally have an
aversion to html emails <g>)


--
Lexacorp Ltd
http://www.lexacorp.com.pg <http://www.lexacorp.com.pg/> 
Information Technology Consultancy, Software Development,System
Support.



_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com <http://www.databaseadvisors.com/> 







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://databaseadvisors.com/pipermail/accessd/attachments/20030730/5cbfabfe/attachment-0001.html>


More information about the AccessD mailing list