Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12463 > unrolled thread
| Started by | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| First post | 2019-05-02 08:17 +0200 |
| Last post | 2019-05-14 08:05 +0200 |
| Articles | 10 — 4 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
cEmail with HTML Text Franz Rachbauer <office@rachbauer.org> - 2019-05-02 08:17 +0200
Re: cEmail with HTML Text Sherlock <sherlock@sherlock.com.au> - 2019-05-02 04:28 -0700
Re: cEmail with HTML Text Franz Rachbauer <office@rachbauer.org> - 2019-05-02 14:59 +0200
Re: cEmail with HTML Text nk <norbert.k@chello.at> - 2019-05-02 18:14 +0200
Re: cEmail with HTML Text Franz Rachbauer <office@rachbauer.org> - 2019-05-02 19:08 +0200
Re: cEmail with HTML Text Franz Rachbauer <office@rachbauer.org> - 2019-05-05 11:23 +0200
Re: cEmail with HTML Text D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2019-05-10 08:44 +0200
Re: cEmail with HTML Text Franz Rachbauer <office@rachbauer.org> - 2019-05-10 10:30 +0200
Re: cEmail with HTML Text D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2019-05-10 12:26 +0200
Re: cEmail with HTML Text Franz Rachbauer <office@rachbauer.org> - 2019-05-14 08:05 +0200
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2019-05-02 08:17 +0200 |
| Subject | cEmail with HTML Text |
| Message-ID | <qae21a$1hp$1@gioia.aioe.org> |
Hi guys, I tried to send email with html text and embedded image, but text always is shown as plain text: <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> <img src="cid:part1-4711"> </body> </html> Looking at source code of email, content-type is text/plain. How can I set content-type to text/html in header with cEmail? Thanks, Franz
[toc] | [next] | [standalone]
| From | Sherlock <sherlock@sherlock.com.au> |
|---|---|
| Date | 2019-05-02 04:28 -0700 |
| Message-ID | <6df340c5-a9c0-46a1-b964-a62e6d444093@googlegroups.com> |
| In reply to | #12463 |
Looking at source code of email, content-type is text/plain. How can I
set content-type to text/html in header with cEmail?
Thanks, Franz
LOCAL oSmtp AS CSmtp
LOCAL oEmail AS CEmail
cReportMailBody += '</table>'+ ;
'<p><small>Created for You, remember <a href="http://www.sherlocksoftware.com" target="_blank">Sherlock Software Rules</a></small>' + Replicate(" ",26)+ ;
'<span style="background-color: #FF5050"> RED: </span>  License expired or <= 5 days  <span style="background-color: #0AFF0A">' + ;
' GREEN: </span>  expiry next 8 days  <span style="background-color: cyan"> CYAN: </span>  expires next 10 days' + ;
' <span style="background-color: yellow"> YELLOW: </span>  Internal only.. notes/reminders</p>'
oEmail := CEmail{} // SAMPLE REPORT email
oEmail:FromAddress := "me@sherlock.com.au"
oEmail:FromName := "me@sherlock.com.au"
oEmail:Subject := [Skynet: Status test]
oEmail:DestList := aReceiveList // { "you@sherlock.com.au", "" }
oEmail:MailBody := cReportMailBody
oEmail:BodyHtml := oEmail:CreateHtml(oEmail:Body)
//
oSmtp := CSmtp{ oEmail }
oSmtp:RemoteHost := "mail.yourserver.com.au"
oSmtp:Timeout := 6000 // 10 minutes - this can be huge
//
lSent := oSmtp:SendMail()
Phil McGuinness
[toc] | [prev] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2019-05-02 14:59 +0200 |
| Message-ID | <qaepkd$1kh9$3@gioia.aioe.org> |
| In reply to | #12464 |
Hi Phil, thank you for code, BodyHtml is not in cEmail help! Now html code is interpreted well but 2 problems remain: - embedded image (<img src="cid:part1-4711">) is not shown, only not found symbol - attachment should not be shown in attachment list (because it's already embedded) Do you have any ideas to solve these problems? Part of mail sourcecode: --===Part_000_Visual_Objects_BOUNDARY=== Content-Type: multipart/alternative; boundary="===Part_001_Visual_Objects_BOUNDARY===" --===Part_001_Visual_Objects_BOUNDARY=== Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dies ist ein Testmail <br> <img src=3D"cid:part1-4711"> --===Part_001_Visual_Objects_BOUNDARY=== Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML><HEAD><= META content=3D"text/html; charset=3Diso-8859-1 " http-equiv=3DContent-Type><META content=3D"MSHTML 5.00.3103.1000" name=3DGE= NERATOR><STYLE></STYLE></HEAD> <BODY bgColor=3D#ffffff> <DIV>Dies ist ein Testmail <br> <img src=3D"cid:part1-4711"></DIV> </BODY></HTML> --===Part_001_Visual_Objects_BOUNDARY===-- --===Part_000_Visual_Objects_BOUNDARY=== Content-Type: application/octet-stream; name="lagraf.jpg" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="lagraf.jpg" Content-Id: <part1-4711> /9j/4AAQSkZJRgABAQAAAQABAAD ...
[toc] | [prev] | [next] | [standalone]
| From | nk <norbert.k@chello.at> |
|---|---|
| Date | 2019-05-02 18:14 +0200 |
| Message-ID | <qaf51f$fh2$1@gioia.aioe.org> |
| In reply to | #12465 |
Hi Franz, the Content-Type should be image/jpg or png or bmp. AddAttachment(cFullPath, cContentType, dwEncodeType, cContentID, cFilename) <img src=3D"cid:part1-4711"> should be <img src="cid:part1-4711"> Norbert
[toc] | [prev] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2019-05-02 19:08 +0200 |
| Message-ID | <qaf87b$uqc$1@gioia.aioe.org> |
| In reply to | #12466 |
Hi Norbert, image/jpg instead of default application/octet-stream does not show the image! 3D is because of Content-Transfer-Encoding: quoted-printable: All chars above 127 have to be shown additionally in hex because they are not in 7-bit char set. It should be correct as some internet articles say. This translation makes cEmail, my original text is without 3D. Franz Am 02.05.2019 um 18:14 schrieb nk: > Hi Franz, > > the Content-Type should beĀ image/jpg or png or bmp. > > AddAttachment(cFullPath, cContentType, dwEncodeType, cContentID, cFilename) > > <img src=3D"cid:part1-4711"> > should be > <img src="cid:part1-4711"> > > Norbert >
[toc] | [prev] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2019-05-05 11:23 +0200 |
| Message-ID | <qama23$1gcp$1@gioia.aioe.org> |
| In reply to | #12463 |
Hi guys, now I got emails running with embedded images with PHP and BLAT.EXE. The difference to the not running cEmail class ist: 1) With PHP mail in header exists "Content-Transfer-Encoding: 8bit", but "Content-Transfer-Encoding: quoted-printable" does not exist, embedded image is shown with <img src="cid:MyID">. 2) BLAT.EXE sends email with "Content-Transfer-Encoding: quoted-printable", but also translates " at img tag: <img src=3D=22cid:MyID=22>. Both I don't get running with VO cEmail class! Regards Franz Am 02.05.2019 um 08:17 schrieb Franz Rachbauer: > Hi guys, > I tried to send email with html text and embedded image, but text always > is shown as plain text: > > <html> > <head> > <title>Untitled Document</title> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> > </head> > > <body bgcolor="#FFFFFF" text="#000000"> > <img src="cid:part1-4711"> > </body> > </html> > > Looking at source code of email, content-type is text/plain. How can I > set content-type to text/html in header with cEmail? > > Thanks, Franz
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2019-05-10 08:44 +0200 |
| Message-ID | <s87adel8t2lct7qb7f4m2cipkpnf4fv72t@4ax.com> |
| In reply to | #12471 |
Replying on message of Sun, 5 May 2019 11:23:16 +0200 from Franz Rachbauer: Hello Franz, Just to be sure: you are running the latest O version? We've modified this latest VO internet lib considerably to deal with missing features and bugs. If you like I can send you our modified DLL source. I am not sure if it fixes your problem or if it's a coding issue. We've finally moved to Chillkat because the missing secure mail options. But we did solve quite a few other things for VO eventually. Dick
[toc] | [prev] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2019-05-10 10:30 +0200 |
| Message-ID | <qb3cqv$67n$1@gioia.aioe.org> |
| In reply to | #12474 |
Hi Dick, I'm using VO 2.8SP4 and I already solved a secure mail sending in a VO app with Wolfgangs X# mailing class. Now I have to write an app with embedded images, which I want to do with BLAT.EXE cause I didn't get it working with cEmail. But I would be glad if you could send me your internet lib so I could test it with my needs concerning embedded images. Thanks, Franz Am 10.05.2019 um 08:44 schrieb D.J.W. van Kooten: > Replying on message of Sun, 5 May 2019 11:23:16 +0200 from Franz > Rachbauer: > > > Hello Franz, > > Just to be sure: you are running the latest O version? > > We've modified this latest VO internet lib considerably to deal with > missing features and bugs. If you like I can send you our modified DLL > source. > > I am not sure if it fixes your problem or if it's a coding issue. > We've finally moved to Chillkat because the missing secure mail > options. But we did solve quite a few other things for VO eventually. > > Dick >
[toc] | [prev] | [next] | [standalone]
| From | D.J.W. van Kooten <vankooten@removethis.ic2.com> |
|---|---|
| Date | 2019-05-10 12:26 +0200 |
| Message-ID | <1ekade1kdl39b3npjcvo0237faja5ajpq8@4ax.com> |
| In reply to | #12479 |
Replying on message of Fri, 10 May 2019 10:30:15 +0200 from Franz Rachbauer: Hello Franz Rachbauer >But I would be glad if you could send me your internet lib so I could >test it with my needs concerning embedded images. Sent to the address connected with this NG. Dick
[toc] | [prev] | [next] | [standalone]
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Date | 2019-05-14 08:05 +0200 |
| Message-ID | <qbdls3$1nv3$1@gioia.aioe.org> |
| In reply to | #12481 |
Thank you Dick, I'll try it, when I have little more time! Franz Am 10.05.2019 um 12:26 schrieb D.J.W. van Kooten: > Replying on message of Fri, 10 May 2019 10:30:15 +0200 from Franz > Rachbauer: > > > Hello Franz Rachbauer > >> But I would be glad if you could send me your internet lib so I could >> test it with my needs concerning embedded images. > > > Sent to the address connected with this NG. > > Dick >
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web