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


Groups > comp.lang.clipper.visual-objects > #4566 > unrolled thread

Rewriting CEmail, CSmtp & CMessage to email inserted image

Started byPhil bayard <philbayard@gmail.com>
First post2013-01-09 04:03 -0800
Last post2013-01-16 05:28 -0600
Articles 8 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  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

#4566 — Rewriting CEmail, CSmtp & CMessage to email inserted image

FromPhil bayard <philbayard@gmail.com>
Date2013-01-09 04:03 -0800
SubjectRewriting CEmail, CSmtp & CMessage to email inserted image
Message-ID<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
     

[toc] | [next] | [standalone]


#4568

From"Willie Moore" <williem@wmconsulting.com>
Date2013-01-09 07:54 -0600
Message-ID<kcjsq9$lu7$1@speranza.aioe.org>
In reply to#4566
Phil,

This is probably not what you would like to hear but I would really go with 
a dotNet solution that you can call from your VO app. The mail classes in 
dotNet are really easy to work with. Syntactically they are very close to 
the VO classes in the way that they work. But they support all of the 
different network credentials, ssl, etc. You can easily wrap the dotNet dll 
in COM and call it fro VO.

Regards,
Willie
Vulcan VIP

"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 

[toc] | [prev] | [next] | [standalone]


#4569

FromPhil bayard <philbayard@gmail.com>
Date2013-01-09 06:09 -0800
Message-ID<c7f41b8d-cca6-46ad-8a5e-db3384c7811f@googlegroups.com>
In reply to#4566
Hi Willie,

I did look on the newsgroups and i found nothing, so i suppose that everyone who wanted the same thing did the way you said.

But i'm pretty sure that rewriting the one in VO wouldnt be so difficult with one more array of file related to the html part.

Anyway I'll take a look on the dotNet version and i'll try a wrapper.

Thank for the answer !
Regards,
Phil




Le mercredi 9 janvier 2013 13:03:20 UTC+1, Phil bayard a écrit :
> 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

[toc] | [prev] | [next] | [standalone]


#4570

From"Ginny Caughey" <gcaughey@online.hotmail.com>
Date2013-01-09 10:53 -0500
Message-ID<50ed9286$0$5943$c3e8da3$50776f34@news.astraweb.com>
In reply to#4569
Here's PDF that describes how to do the wrapper if you need it:
http://www.elbe-data.se/sv/VOgrafx/visualobjectsandcsharp.pdf

I agree with Willie's advice by the way.

Ginny

"Phil bayard"  wrote in message 
news:c7f41b8d-cca6-46ad-8a5e-db3384c7811f@googlegroups.com...

Hi Willie,

I did look on the newsgroups and i found nothing, so i suppose that everyone 
who wanted the same thing did the way you said.

But i'm pretty sure that rewriting the one in VO wouldnt be so difficult 
with one more array of file related to the html part.

Anyway I'll take a look on the dotNet version and i'll try a wrapper.

Thank for the answer !
Regards,
Phil




Le mercredi 9 janvier 2013 13:03:20 UTC+1, Phil bayard a écrit :
> 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 

[toc] | [prev] | [next] | [standalone]


#4572

From"Jamal" <vodotnet_nospam@yahoo.com>
Date2013-01-09 18:26 -0500
Message-ID<kckubc$mjg$1@dont-email.me>
In reply to#4566
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 

[toc] | [prev] | [next] | [standalone]


#4574

FromPhil bayard <philbayard@gmail.com>
Date2013-01-10 02:34 -0800
Message-ID<8f404110-1276-4e0b-b369-7c6d52804b04@googlegroups.com>
In reply to#4566
@Ginny

Thank for the PDF, you gave it to me once for another post i think, it's really nice and i use it often ;)

@Jamal

I think i'll go for a C# wrapper because i prefer to code it myself(adaptive code and debug) and the c# library seems really simple to use.

Thank you both for help

[toc] | [prev] | [next] | [standalone]


#4591

FromPhil bayard <philbayard@gmail.com>
Date2013-01-16 02:12 -0800
Message-ID<a579a57d-8784-4fd1-b60c-c1d87db66b9c@googlegroups.com>
In reply to#4566
i wrote a small c# class and it works pretty well, just that in VO i was able to have a progress bar of the sending, and not anymore in c# but the error handler is quite beter in c#

c# wrappers are really a nice thing !

[toc] | [prev] | [next] | [standalone]


#4592

From"Willie Moore" <williem@wmconsulting.com>
Date2013-01-16 05:28 -0600
Message-ID<kd62ti$m3b$1@speranza.aioe.org>
In reply to#4591
Phil,

Vulcan.net wrappers are good too. Using dotNet to extend the life of your 
mission critical VO apps is the smart approach. Eventually you will have a 
true dotNet app

Regards,
Willie
Vulcan VIP

"Phil bayard"  wrote in message 
news:a579a57d-8784-4fd1-b60c-c1d87db66b9c@googlegroups.com...

i wrote a small c# class and it works pretty well, just that in VO i was 
able to have a progress bar of the sending, and not anymore in c# but the 
error handler is quite beter in c#

c# wrappers are really a nice thing ! 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web