attachment pomoci smtp

Vraník Petr Petr.Vranik na kro.br.ds.mfcr.cz
Středa Srpen 2 15:21:54 CEST 2000


Ne, dokonce by tam mely byt 2 radky ... tak me napada - cim se vynechavaji radky? CR, LF nebo CR/LF?

takhle to tam posilam (se smtp nemam zadne zkusenosti a nemuzu nikde najit popis, 
takze jestli je to uplne strrrrrasny, tak me prosim nekamenujte!!):

msg = 'Subject: image\n'
msg = msg + 'MIME-Version: 1.0\n'
msg = msg + 'Content-Type: multipart/mixed; boundary="-------------- NEXT PART ----------------"\n\n\n'
msg = msg + 'This message is in MIME format. Since your mail reader does not understand\n'
msg = msg + 'this format, some or all of this message may not be legible.\n\n'
msg = msg + '-------------- NEXT PART ----------------\n'
msg = msg + 'Content-Type: text/plain; charset="iso-8859-2"\n'
msg = msg + 'Content-Transfer-Encoding: QUOTED-PRINTABLE\n\n\n'
for each in form.list:
  msg = msg + each.name + ": " + each.value + '\n'
msg = msg + '\n\n\n'
msg = msg + '-------------- NEXT PART ----------------\n'
msg = msg + 'Content-Type: ' + mimetype + '; name="' + filename + '"\n'
msg = msg + 'Content-Transfer-Encoding: BASE64\n'
msg = msg + 'Content-Disposition: attachment; filename="' + filename + '"\n\n\n'
msg = msg + attachment 
msg = msg + '\n\n-------------- NEXT PART ----------------\n'
msg = msg + '.\n'


> -----Original Message-----
> From: Petr Novotny [mailto:Petr.Novotny na antek.cz]
> Sent: Wednesday, August 02, 2000 3:18 PM
> To: sendmail na linux.cz
> Subject: Re: attachment pomoci smtp
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 2 Aug 00, at 15:15, Vraník Petr wrote:
> 
> > Poradi mi prosimvas nekdo, jak by mela vypadat hlavicka
> > multipart/mixed mailu. Potrebuji k emailu pripojit obrazek 
> a nejak se
> > mi to nedari - cely mail i s attachmentem se tvari jako hlavicka.
> 
> Nezapominate pod hlavickou (pred MIME hlavickou prvni casti)
> vynechat prazdnou radku?
> 
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 6.0.2 -- QDPGP 2.60
> Comment: http://community.wow.net/grt/qdpgp.html
> 
> iQA/AwUBOYgRh1MwP8g7qbw/EQIqSgCg15sdUQ84nflEGx/O1ZKC0ZgqdR0AmwfN
> PrKadaR0O4qTu7JGn1z3mhfD
> =FGLY
> -----END PGP SIGNATURE-----
> 


Další informace o konferenci Sendmail