Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

ASP_SmartMail + pictures as attachments - Whoops sorry

2 posts in Objects Last posting was on 2002-09-13 05:07:25.0Z
Dennis B Posted on 2002-09-12 06:24:04.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Dennis B" <Dennis@bilinfo.dk>
Subject: ASP_SmartMail + pictures as attachments - Whoops sorry
Date: Thu, 12 Sep 2002 08:24:04 +0200
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: gw-thisted.bilinfo.dk 80.63.50.162
Message-ID: <364_u5A90biWCHA.300@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:932
Article PK: 713497

HI

I try to send mail with 1-4 attached pictures..
The mail is send ok, and the are are included.. but as binay text ?

<code snip>
MailObj.ContentType = "text/plain"
//MailObj.ContentType = "image/bmp"
MailObj.Charset = "ISO-8859-1"
MailObj.Server = post.tele.dk
MailObj.SenderName = "Bilinfo"
MailObj.SenderAddress = "Forhandler@bilinfo.dk"
MailObj.Subject = Another_Text
MailObj.body = Text
MailObj.Recipients.Add(a@b.dk,a@b.dk)
MailObj.Attachments.Add(ls_file)
<snip>

The ls_file contains the absolute path... c:\425456.jpg
The recieved mail then looks like this...

<snip>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="--------------BoundaryAF2BE8CD"

----------------BoundaryAF2BE8CD
Content-Type: image/bmp; charset=ISO-8859-1

Bil-information: Honda Accord 2,2 EXRi aut. 4d
----------------BoundaryAF2BE8CD
Content-Type: application/octet-stream; name="616168.jpg"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="616168.jpg"

/9j/4AAQSkZJRgABAAEBLAEsAAD/2wCEABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9
PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2MBERISGBUYLhoaL2NCOEJCY2Nj
Y2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY//AABEIAG4C
vAMBIQACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMD
AgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZ
<snip>

Doesn't look much like a picture.. ?? What do I do wrong

KR Dennis


Bruce Armstrong [TeamSybase] Posted on 2002-09-13 05:07:25.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Organization: TeamSybase [66.214.149.29]
X-Newsreader: AspNNTP 1.50 (C I Host)
Subject: Re: ASP_SmartMail + pictures as attachments - Whoops sorry
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Fri, 13 Sep 2002 01:07:25 -0400
Lines: 56
NNTP-Posting-Host: 66.221.40.1
Message-ID: <364_6mCMzNuWCHA.74@forums.sybase.com>
References: <364_u5A90biWCHA.300@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:930
Article PK: 713492

I responded to this in another section.

On Thu, 12 Sep 2002 08:24:04 +0200,
in powersoft.public.powerbuilder.objects

Dennis B <Dennis@bilinfo.dk> wrote:
>HI
>
>I try to send mail with 1-4 attached pictures..
>The mail is send ok, and the are are included.. but as binay text ?
>
><code snip>
>MailObj.ContentType = "text/plain"
>//MailObj.ContentType = "image/bmp"
>MailObj.Charset = "ISO-8859-1"
>MailObj.Server = post.tele.dk
>MailObj.SenderName = "Bilinfo"
>MailObj.SenderAddress = "Forhandler@bilinfo.dk"
>MailObj.Subject = Another_Text
>MailObj.body = Text
>MailObj.Recipients.Add(a@b.dk,a@b.dk)
>MailObj.Attachments.Add(ls_file)
><snip>
>
>The ls_file contains the absolute path... c:\425456.jpg
>The recieved mail then looks like this...
>
><snip>
>MIME-Version: 1.0
>Content-Type: multipart/mixed; boundary="--------------BoundaryAF2BE8CD"
>
>----------------BoundaryAF2BE8CD
>Content-Type: image/bmp; charset=ISO-8859-1
>
>Bil-information: Honda Accord 2,2 EXRi aut. 4d
>----------------BoundaryAF2BE8CD
>Content-Type: application/octet-stream; name="616168.jpg"
>Content-Transfer-Encoding: base64
>Content-Disposition: attachment; filename="616168.jpg"
>
>/9j/4AAQSkZJRgABAAEBLAEsAAD/2wCEABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9
>PDkzODdASFxOQERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2MBERISGBUYLhoaL2NCOEJCY2Nj
>Y2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY2NjY//AABEIAG4C
>vAMBIQACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMD
>AgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZ
><snip>
>
>Doesn't look much like a picture.. ?? What do I do wrong
>
>KR Dennis
>
>

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Not 1 - but 2 new books on developing with PowerBuilder
http://www.pb9books.com

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org

NOTE: Please do NOT attempt to post to these newsgroups through news services
such as Google, as your messages will NOT appear on the server. Google is great
for searching, but if you want to use a web based newsreader to post, use the
one at my.sybase.com or
www.pfcguide.com.