By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,124 Members | 1,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,124 IT Pros & Developers. It's quick & easy.

Send HTML Mail

P: n/a
Hi,

Can it's possible to send a local Web page (HTML) (with pictures) by
Outlook, OE, MAPI or Jmail, simply by pass a Html path files ?

I try many many tips like replace "cid:" before image in HTML but the
picture was never embeded in the message.

Simply like this : SendHTMLMail("C:\MyDoc.html")
Thank in advance

Bob


Nov 17 '06 #1
Share this Question
Share on Google+
10 Replies


P: n/a

Logipro wrote:
Hi,

Can it's possible to send a local Web page (HTML) (with pictures) by
Outlook, OE, MAPI or Jmail, simply by pass a Html path files ?

I try many many tips like replace "cid:" before image in HTML but the
picture was never embeded in the message.

Simply like this : SendHTMLMail("C:\MyDoc.html")
Thank in advance

Bob
I've got an application that sends HTML from MS Access.
I don't currently have support for, I should say, I have not tested for
inline pictures.
If your interested I'll check and see how it goes with inline pictures.
http://balance-infosystems.com/products/mail.assistant/

Regards

Keith

Nov 17 '06 #2

P: n/a
Thank for reply Keith,

I have install your app. but i d'ont know how it work ? (by shell or by
ref.)
Best regards

Bob

"Keith Hutchison" <ke******************@gmail.coma écrit dans le message
de news: 11**********************@f16g2000cwb.googlegroups. com...
>
Logipro wrote:
>Hi,

Can it's possible to send a local Web page (HTML) (with pictures) by
Outlook, OE, MAPI or Jmail, simply by pass a Html path files ?

I try many many tips like replace "cid:" before image in HTML but the
picture was never embeded in the message.

Simply like this : SendHTMLMail("C:\MyDoc.html")
Thank in advance

Bob

I've got an application that sends HTML from MS Access.
I don't currently have support for, I should say, I have not tested for
inline pictures.
If your interested I'll check and see how it goes with inline pictures.
http://balance-infosystems.com/products/mail.assistant/

Regards

Keith

Nov 17 '06 #3

P: n/a
Just to get html you need the following:

Set o = CreateObject("Outlook.Application")
Set m = o.CreateItem(0)
m.To = Forms![HiddenKey]![HManagerEmail]
' m.cc = for copies

' m.bcc = for blind copies

m.Subject = "Defect Analysis for " & Forms![fieldname]

' m.body = "now is the time" if html not
desired

==================================
m.bodyformat = 2 ' this makes it html and you
load
' htmlbody with
html code

m.htmlbody = Chr(13) & Chr(13) & _
"<body><Table><tr><td><bDate: </b></td><td>" & Date &
"</td></tr>" & _
"<tr><td><b>Manager: </b></td><td>" &
Forms![HiddenKey]![HManager] & "</td></tr>" & _
"<tr><td><b>Name: </b></td><td>" &
Forms![HiddenKey]![HCompany] & "</td></tr>" & _

"<tr><td></td><td></td></tr>" & _
"</Table></body>"
===================================

' m.send ' to send it instead of displaying it.
m.Display

==================================
Have never tried inline pictures.

Ron

Nov 17 '06 #4

P: n/a
Hi Ron,

Thank for reply,

It's work perfecly "but" if i try to add picture like: "<IMG
src=cid:Mypicture.jpg>" and i add an attachment with this path picture, the
picture not apeare in mail body ?
Bob


"Ron2006" <ro******@hotmail.coma écrit dans le message de news:
11*********************@e3g2000cwe.googlegroups.co m...
Just to get html you need the following:

Set o = CreateObject("Outlook.Application")
Set m = o.CreateItem(0)
m.To = Forms![HiddenKey]![HManagerEmail]
' m.cc = for copies

' m.bcc = for blind copies

m.Subject = "Defect Analysis for " & Forms![fieldname]

' m.body = "now is the time" if html not
desired

==================================
m.bodyformat = 2 ' this makes it html and you
load
' htmlbody with
html code

m.htmlbody = Chr(13) & Chr(13) & _
"<body><Table><tr><td><bDate: </b></td><td>" & Date &
"</td></tr>" & _
"<tr><td><b>Manager: </b></td><td>" &
Forms![HiddenKey]![HManager] & "</td></tr>" & _
"<tr><td><b>Name: </b></td><td>" &
Forms![HiddenKey]![HCompany] & "</td></tr>" & _

"<tr><td></td><td></td></tr>" & _
"</Table></body>"
===================================

' m.send ' to send it instead of displaying it.
m.Display

==================================
Have never tried inline pictures.

Ron

Nov 17 '06 #5

P: n/a
Logipro wrote:
Hi Ron,

Thank for reply,

It's work perfecly "but" if i try to add picture like: "<IMG
src=cid:Mypicture.jpg>" and i add an attachment with this path
picture, the picture not apeare in mail body ?
HTML mail messages don't have images "in" them. They refer back to images
published on web servers. If there's a way to actually embed them I don't
know what it is.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Nov 17 '06 #6

P: n/a
HI Bob

Logipro wrote:
Thank for reply Keith,

I have install your app. but i d'ont know how it work ? (by shell or by
ref.)
Via DDE.

A custom class to that wraps the DDE commands to communication with
Mail Assistant is here
http://balance-infosystems.com/produ...istant.cls.zip

I'll post up an example mdb file shortly

Mail Assistant does not require outlook or an exchange server and can
make email messages appear that it comes from the person in your
organisation that you want the replies to go back to.

Mail Assistant also enables you to store templates of HTML files with
which you can send out data merged HTML messages.

Example code is

With MailAssistant
.connect
If Not .connected Then
' try launching
.launch
.connect
End If
If .connected Then
'.verboseOff
.serverName "default"
.serverAddress "your.smtp.server.ip.or.address"
.serverPort "25"
.preferencesSave
'.verboseOn
.templateName ("approval to proceed")
.newHTMLMessage
.addressedFrom "fr**********@your.domain"
.addressedTo "to********@clients.domain" ' multiple
addresses separated by commas
.copiedTo "interested.parties@domains" ' multiple
addresses separated by commas
.blindCopiedTo "au*************@your.dormain" ' multiple
addresses separated by commas
.messageSubject "Artwork Approval And Order Confirmation
for Job Number [JOB NUMBER]"
.messageData "[JOB NUMBER=G52636],[DATE=26th, July
2007],[SENDER NAME=Mary Joseph],[RECEIVER NAME=Joseph Mary],[APPROVAL
NUMBER=25635],[JOB DESCRIPTION=Some sort of job description],[JOB
QUANTITY=3000],[DATE TO BE DELIVERED=28th of July, 2006],[TOTAL
COST=5489.00], [PAYMENT TERMS=50% on Approval, 50% on Delivery],[SENDER
EM*******************@balance-infosystems.com]"
.messageAttachments "rproxy.pdf" ' full path is normally
required, multiple attachments by separating by commas, attachment
dialog by pass an empty string
.messagesSend
'.verboseOff
Else
MsgBox "Unable to connect to Mail Assistant"
End If
.disconnect
End With

Regards

Keith

Nov 17 '06 #7

P: n/a
Many Thank Keith

It's work perfecly !

Bob

"Keith Hutchison" <ke******************@gmail.coma écrit dans le message
de news: 11*********************@j44g2000cwa.googlegroups.c om...
HI Bob

Logipro wrote:
>Thank for reply Keith,

I have install your app. but i d'ont know how it work ? (by shell or by
ref.)

Via DDE.

A custom class to that wraps the DDE commands to communication with
Mail Assistant is here
http://balance-infosystems.com/produ...istant.cls.zip

I'll post up an example mdb file shortly

Mail Assistant does not require outlook or an exchange server and can
make email messages appear that it comes from the person in your
organisation that you want the replies to go back to.

Mail Assistant also enables you to store templates of HTML files with
which you can send out data merged HTML messages.

Example code is

With MailAssistant
.connect
If Not .connected Then
' try launching
.launch
.connect
End If
If .connected Then
'.verboseOff
.serverName "default"
.serverAddress "your.smtp.server.ip.or.address"
.serverPort "25"
.preferencesSave
'.verboseOn
.templateName ("approval to proceed")
.newHTMLMessage
.addressedFrom "fr**********@your.domain"
.addressedTo "to********@clients.domain" ' multiple
addresses separated by commas
.copiedTo "interested.parties@domains" ' multiple
addresses separated by commas
.blindCopiedTo "au*************@your.dormain" ' multiple
addresses separated by commas
.messageSubject "Artwork Approval And Order Confirmation
for Job Number [JOB NUMBER]"
.messageData "[JOB NUMBER=G52636],[DATE=26th, July
2007],[SENDER NAME=Mary Joseph],[RECEIVER NAME=Joseph Mary],[APPROVAL
NUMBER=25635],[JOB DESCRIPTION=Some sort of job description],[JOB
QUANTITY=3000],[DATE TO BE DELIVERED=28th of July, 2006],[TOTAL
COST=5489.00], [PAYMENT TERMS=50% on Approval, 50% on Delivery],[SENDER
EM*******************@balance-infosystems.com]"
.messageAttachments "rproxy.pdf" ' full path is normally
required, multiple attachments by separating by commas, attachment
dialog by pass an empty string
.messagesSend
'.verboseOff
Else
MsgBox "Unable to connect to Mail Assistant"
End If
.disconnect
End With

Regards

Keith

Nov 17 '06 #8

P: n/a
MLH
I'm not familiar with Mail Assistant, but found this:
http://www.xrayapp.com/xray/

Is the xray product what you were referencing?
Nov 18 '06 #9

P: n/a
MLH
SORRY
My reader caught only the tail end of the thread. Now
that I've found the complete thread, I understand the
Mail Assistant reference. My apologies.
Nov 18 '06 #10

P: n/a
Hi Bob

Logipro wrote:
Many Thank Keith

It's work perfecly !
Neat :-)

Keith

Nov 19 '06 #11

This discussion thread is closed

Replies have been disabled for this discussion.