Hallo;
wenn ich ein mail mit den beispiel programm simple.pb verschicke dann
ist der inhalt b.zw die anlage-datei in form von zeichen hinzugefügt (rot) aber nicht als attachment.
ich habe mir die advanced beispiel angeguckt ...
aber mir ist nicht klar wie die procedure getbase64size,windowcallback, SetStringManipulationBufferSize verwendet werden.
eine idea?
Danke
JPD
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="e20050217221958SMTP"
Return-Path: test@training.xxxxx.de
Message-ID: <2KSRVDb1M4SD6Lt8qPc0000000f@2ksrv.training.xxxxx.de>
X-OriginalArrivalTime: 17 Feb 2005 21:19:11.0734 (UTC) FILETIME=[5325F160:01C51536]
--e20050217221958SMTP
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
--e20050217221958SMTP
Content-Type: application/octet-stream; name="jpd0217-159.zip"
Content-Transfer-Encoding: base64
Content-Disposition: Attachment; filename="jpd0217-159.zip"
UmFyIRoHAM+QcwAADQAAAAAAAABolnQkhDEAYEkAAAAKAQACbKHeslcjPDId........
esmtp mit attachment!
Hallo,
erstmal vielen Dank für die schnelle antwort!
ich glaube das die gesamte Datei im Body enthalten ist!
interessant ist das ich die gleiche mail an ein yahoo account verschicke und da kommt die Datei richtig an.
auf ein Exchange Server 2000 kommt wiederrun die gesamte mail
body und attachment, als body an!
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="e20050217221958SMTP"
Return-Path: test@training.xxxxx.de
Message-ID: <2KSRVDb1M4SD6Lt8qPc0000000f@2ksrv.training.xxxxx.de>
X-OriginalArrivalTime: 17 Feb 2005 21:19:11.0734 (UTC) FILETIME=[5325F160:01C51536]
--e20050217221958SMTP
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
--e20050217221958SMTP
Content-Type: application/octet-stream; name="jpd0217-159.zip"
Content-Transfer-Encoding: base64
Content-Disposition: Attachment; filename="jpd0217-159.zip"
UmFyIRoHAM+QcwAADQAAAAAAAABolnQkhDEAYEkAAAAKAQACbKHeslcjPDId
MwkAIAAAAGFueWRsLmRsbO4exYI2Wb18vSc8kjwZ6OdLoXIEJm/MNnylZg6P........
........
CGjeukK4IBP3Dq/4RBCtRDpTrPI7ttJVu12iwrpTd9Onauw6dPN2F2YsXcJ6
7biXtEr5wGn1utu545wpXNcOL96O/sB/0fsz2rr29IAp6XhWMBfDp2s7K8Q9
ewBABwA=
--e20050217221958SMTP--
erstmal vielen Dank für die schnelle antwort!
ich glaube das die gesamte Datei im Body enthalten ist!
interessant ist das ich die gleiche mail an ein yahoo account verschicke und da kommt die Datei richtig an.
auf ein Exchange Server 2000 kommt wiederrun die gesamte mail
body und attachment, als body an!
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="e20050217221958SMTP"
Return-Path: test@training.xxxxx.de
Message-ID: <2KSRVDb1M4SD6Lt8qPc0000000f@2ksrv.training.xxxxx.de>
X-OriginalArrivalTime: 17 Feb 2005 21:19:11.0734 (UTC) FILETIME=[5325F160:01C51536]
--e20050217221958SMTP
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
--e20050217221958SMTP
Content-Type: application/octet-stream; name="jpd0217-159.zip"
Content-Transfer-Encoding: base64
Content-Disposition: Attachment; filename="jpd0217-159.zip"
UmFyIRoHAM+QcwAADQAAAAAAAABolnQkhDEAYEkAAAAKAQACbKHeslcjPDId
MwkAIAAAAGFueWRsLmRsbO4exYI2Wb18vSc8kjwZ6OdLoXIEJm/MNnylZg6P........
........
CGjeukK4IBP3Dq/4RBCtRDpTrPI7ttJVu12iwrpTd9Onauw6dPN2F2YsXcJ6
7biXtEr5wGn1utu545wpXNcOL96O/sB/0fsz2rr29IAp6XhWMBfDp2s7K8Q9
ewBABwA=
--e20050217221958SMTP--
esmtp log
anbei auch die generierte esmtp logs
OK
< 220 2ksrv.training.xxxxx.de Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 ready at Thu, 17 Feb 2005 22:16:17 +0100
> EHLO JPD
< 250- 2ksrv.training.xxxxx.de Hello [172.16.2.247]
< 250- TURN
< 250- ATRN
< 250- SIZE
< 250- ETRN
< 250- PIPELINING
< 250- DSN
< 250- ENHANCEDSTATUSCODES
< 250- 8bitmime
< 250- BINARYMIME
< 250- CHUNKING
< 250- VRFY
< 250- X-EXPS GSSAPI NTLM LOGIN
< 250- X-EXPS=LOGIN
< 250- AUTH GSSAPI NTLM LOGIN
< 250- AUTH=LOGIN
< 250- X-LINK2STATE
< 250- XEXCH50
< 250 OK
> AUTH LOGIN
< 334 VXNlcm5hbWU6
> anBk
> cGFzc3dvcmQ=
< 334 UGFzc3dvcmQ6
< 235 2.7.0 Authentication successful.
> MAIL FROM: <jpdigaetano@training.xxxxx.de>
< 250 2.1.0 jpdigaetano@training.xxxxx.de....Sender OK
> RCPT TO: <jpd@training.xxxxx.de>
< 250 2.1.5 jpd@training.xxxxx.de
> RCPT TO: <jpd@training.xxxxx.de>
< 250 2.1.5 jpd@training.xxxxx.de
> DATA
< 354 Start mail input; end with <CRLF>.<CRLF>
> X-Mailer: eSMTP 1.0
> To: <jpd@training.xxxxxx.de>
> From: JPD <jpd@training.xxxxx.de>
> Reply-To: jpd@training.xxxxx.de
> Cc: jpd@training.xxxxx.de
> Date: Thu, 17 Feb 2005 22:17:07 +0200
> Subject: Testmail
> Organization: variopinto> MIME-Version: 1.0
> Content-Type: multipart/mixed; boundary="e20050217221706SMTP"
>
> --e20050217221706SMTP
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
>
> Send Body: 0 Bytes
>
> --e20050217221706SMTP
> Content-Type: application/octet-stream; name="jpd0217-159.zip"
> Content-Transfer-Encoding: base64
> Content-Disposition: Attachment; filename="jpd0217-159.zip"
>
> Send file: C:\Code\N-Query\jpd0217-159.zip 25147 Bytes
> --e20050217221706SMTP--
> .
< 250 2.6.0 <2KSRVP56OdV7HbLwIHF0000000e@2ksrv.training.xxxxx.de> Queued mail for delivery
> QUIT
< 221 2.0.0 2ksrv.training.xxxxx.de Service closing transmission channel
OK
< 220 2ksrv.training.xxxxx.de Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 ready at Thu, 17 Feb 2005 22:16:17 +0100
> EHLO JPD
< 250- 2ksrv.training.xxxxx.de Hello [172.16.2.247]
< 250- TURN
< 250- ATRN
< 250- SIZE
< 250- ETRN
< 250- PIPELINING
< 250- DSN
< 250- ENHANCEDSTATUSCODES
< 250- 8bitmime
< 250- BINARYMIME
< 250- CHUNKING
< 250- VRFY
< 250- X-EXPS GSSAPI NTLM LOGIN
< 250- X-EXPS=LOGIN
< 250- AUTH GSSAPI NTLM LOGIN
< 250- AUTH=LOGIN
< 250- X-LINK2STATE
< 250- XEXCH50
< 250 OK
> AUTH LOGIN
< 334 VXNlcm5hbWU6
> anBk
> cGFzc3dvcmQ=
< 334 UGFzc3dvcmQ6
< 235 2.7.0 Authentication successful.
> MAIL FROM: <jpdigaetano@training.xxxxx.de>
< 250 2.1.0 jpdigaetano@training.xxxxx.de....Sender OK
> RCPT TO: <jpd@training.xxxxx.de>
< 250 2.1.5 jpd@training.xxxxx.de
> RCPT TO: <jpd@training.xxxxx.de>
< 250 2.1.5 jpd@training.xxxxx.de
> DATA
< 354 Start mail input; end with <CRLF>.<CRLF>
> X-Mailer: eSMTP 1.0
> To: <jpd@training.xxxxxx.de>
> From: JPD <jpd@training.xxxxx.de>
> Reply-To: jpd@training.xxxxx.de
> Cc: jpd@training.xxxxx.de
> Date: Thu, 17 Feb 2005 22:17:07 +0200
> Subject: Testmail
> Organization: variopinto> MIME-Version: 1.0
> Content-Type: multipart/mixed; boundary="e20050217221706SMTP"
>
> --e20050217221706SMTP
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
>
> Send Body: 0 Bytes
>
> --e20050217221706SMTP
> Content-Type: application/octet-stream; name="jpd0217-159.zip"
> Content-Transfer-Encoding: base64
> Content-Disposition: Attachment; filename="jpd0217-159.zip"
>
> Send file: C:\Code\N-Query\jpd0217-159.zip 25147 Bytes
> --e20050217221706SMTP--
> .
< 250 2.6.0 <2KSRVP56OdV7HbLwIHF0000000e@2ksrv.training.xxxxx.de> Queued mail for delivery
> QUIT
< 221 2.0.0 2ksrv.training.xxxxx.de Service closing transmission channel
Headerline to the Mailheader
in meinen beispiel habe ich folgende funktion verwendet.
Adds a Headerline to the Mailheader
Example:
eSMTP_AddHeader("Organization: MyCompany")
Ohne "headerline" funktioniert alles einwandfrei!
Adds a Headerline to the Mailheader
Example:
eSMTP_AddHeader("Organization: MyCompany")
Ohne "headerline" funktioniert alles einwandfrei!