Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #4572

Re: Rewriting CEmail, CSmtp & CMessage to email inserted image

From "Jamal" <vodotnet_nospam@yahoo.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Rewriting CEmail, CSmtp & CMessage to email inserted image
Date 2013-01-09 18:26 -0500
Organization A noiseless patient Spider
Message-ID <kckubc$mjg$1@dont-email.me> (permalink)
References <4616078a-e0c4-4d1b-9909-e88f4bf58fde@googlegroups.com>

Show all headers | View raw


Phil,

You can probably use an activex DLL like Chillkat or MailBee.

For example with MailBee, you can embed your images with something like:

Email HTML source:

<img border="0" src="cid:yourpic">

In your code:
// init  smtp object first, then

oSMTP:BodyFormat := 1    // HTML

oSmtp:AddAttachment(cLogoFile, NIL, "yourpic")  // this embeds image

// then send


Jamal

"Phil bayard"  wrote in message 
news:4616078a-e0c4-4d1b-9909-e88f4bf58fde@googlegroups.com...

Hi everyone,

i'm working for a long time on the rewriting of the Internet SDK classes. 
(Still working with the SP3)
Indeed, we have a need of sending email from VO which are made of :

- Text
- HTML with image
- Other files along with the email

What i have seen in VO is that it's possible to do everything except
- HTML with image

Indeed, the creation of the email doesnt take care of boundary like 
multipart/related.

An email is supposed to be like this in my case :

Mixed boundary
---Related boundary -> Not existing in VO
------Alternative boundary
---------Text part
------Alternative boundary
---------HTML part
---Related boundary -> Not existing in VO
------Images part -> Not existing in VO
Mixed boundary
---Files which are not in the html
Mixed boundary


I did try to simply define the email as a related part. But my pdf files 
wasnt visible in all outlook version and some other clients.
So i came back to the multipart/mixed version.

Did someone ever rewrite those classes?
I'm looking where exactly in the CEmail and CSMTP classes the content is 
listed in order to create another array with my image and handle a new type 
of boundary (related) in the steamout function

But if you have advises for me on a good way to do it i would be really 
happy ;)

Thank you for reading me!
JPB 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Rewriting CEmail, CSmtp & CMessage to email inserted image Phil bayard <philbayard@gmail.com> - 2013-01-09 04:03 -0800
  Re: Rewriting CEmail, CSmtp & CMessage to email inserted image "Willie Moore" <williem@wmconsulting.com> - 2013-01-09 07:54 -0600
  Re: Rewriting CEmail, CSmtp & CMessage to email inserted image Phil bayard <philbayard@gmail.com> - 2013-01-09 06:09 -0800
    Re: Rewriting CEmail, CSmtp & CMessage to email inserted image "Ginny Caughey" <gcaughey@online.hotmail.com> - 2013-01-09 10:53 -0500
  Re: Rewriting CEmail, CSmtp & CMessage to email inserted image "Jamal" <vodotnet_nospam@yahoo.com> - 2013-01-09 18:26 -0500
  Re: Rewriting CEmail, CSmtp & CMessage to email inserted image Phil bayard <philbayard@gmail.com> - 2013-01-10 02:34 -0800
  Re: Rewriting CEmail, CSmtp & CMessage to email inserted image Phil bayard <philbayard@gmail.com> - 2013-01-16 02:12 -0800
    Re: Rewriting CEmail, CSmtp & CMessage to email inserted image "Willie Moore" <williem@wmconsulting.com> - 2013-01-16 05:28 -0600

csiph-web