[Zope] attaching an image to an email
Kate Legere
klegere at kfpl.ca
Thu Jun 29 09:34:48 EDT 2006
I get a result like :
Cv/Y/+AAEEpGSUYAAQEBAEgASAAA/9sAQwAHBAQEBQQHBQUHCgcFBwoMCQcHCQwNCwsMCwsNEQ0N
DQ0NDRENDxAREA8NFBQWFhQUHh0dHR4iIiIiIiIiIiIi/9sAQwEIBwcNDA0YEBAYGhURFRogICAg
ICAgICAgICAgISAgICAgICEhISAgICEhISEhISEhIiIiIiIiIiIiIiIiIiIi/8AAEQgGggXsAwER
AAIRAQMRAf/EABwAAAMBAQEBAQEAAAAAAAAAAAABAgMEBQYHCP/EAD8QAAICAgEDAwMDAwMDBAEA
CwABAhEDITEEEkEFUWETInEGMoEUQpEVobEHI1IzYsHRFuHxJDRyFyVDgvCS/8QAGwEBAQEBAQEB
AQAAAAAAAAAAAQIAAwQFBgf/xAAmEQEBAQEAAwEBAQEAAgMBAQEAARECEiExA0EEE1FhFCIyQgVx
/9oADAMBAAIRAxEAPwDcrUANTIToYo6fIxg2gaQnoRTS+2w1NNcDqp8F+QtEinXv/Bt00d3KDGh9
y7fk2e04Nsel4EESHvYkl3XZg1jmlEkto541tCS7YSdozMc0EjajqM1Ois1pVLKQ6ah5P8lSJp4m
Zl2ONafdRsCO9sLG1dU9GI+4cbQrMxXT4MTUv8mwYrXkNaG6H+mnYW+xaYX22l5HGJOXDGBbQ4yd
0Ta2ntCQ/kGCUTWsONBp6p1E2Jg4M0+jRRPlEYDVUUqlHgYLRFhcjG3oolbS0DWm+QiaezMSsMOG
noWGgow0xjYTZoo6sqAqJY3wMmjB4sabDRIgQnAFbQjUGkbGIY2m6s2qGgtTgAhsrG1VLySaRX8T
h34omGk03+CgS5GqPkIxpsbQf/JNY+NmlYas0OEmr2UIewgI1UafkGlCEAW0GY7XsZh4J1tFeSrT
gdoxweTYB/cDaO73MKfd7CcLkax+CAEJH1ci/BsGj+qjwwxpSeaNa5EpUm2ONYuKfINFXQtTsAX4
GNqqsKxPRoQYWn8oohvRFgBQPYqFEsH8mBxoxLjYwDnbMSMDS9zaSto0B2mT8po2uB6ZX1J0iQpZ
... it's longer but you get the picture.
Katie
-----Original Message-----
From: Berthold Stöger [mailto:bs at bdf-net.com]
Sent: Thursday, June 29, 2006 1:07 AM
To: zope at zope.org
Cc: Kate Legere
Subject: Re: [Zope] attaching an image to an email
Hi,
On Wednesday 28 June 2006 22:05, Kate Legere wrote:
> <dtml-sendmail smtphost="mail.host.ca">
> To: art critic
> From: patron
> Subject: Art
>
> Hi, please take a look at my art and post it if you think it's good
enough.
>
> <dtml-mime type=image/jpeg encode=base64 name=resume><dtml-var pic.jpg >
> </dtml-mime>
>
> </dtml-sendmail>
>
Try:
<dtml-sendmail smtphost="host">
To: to
From: from
Subject: Art
<dtml-mime type=text/plain encode=7bit>
Hi, please take a look at my art and post it if you think it's good enough.
<dtml-boundary type=image/jpeg encode=base64 name=resume><dtml-var
"REQUEST['pic.jpg'].read()" ></dtml-mime>
</dtml-sendmail>
Of course this doesn't work if the user uploads a non-jpeg picture therefore
some more elaborated code will be needed.
HTH
More information about the Zope
mailing list