cURL / Mailing Lists / curl-users / Single Mail

curl-users

cURL cmd line smtp email: MAIL From / RCPT To / Subject / Body empty

From: ld2nd <ld2nd_at_web.de>
Date: Fri, 14 Mar 2014 12:45:17 +0100

Hello,

I can not figure out, how to compose the command parameters to send a
given ascii file with smtp.

With already a lot reviewing of the archives here and searching with
google I still can not solve my problem.

Here is the cammand line:

C:\Program Files\cURL\bin>curl --ssl-reqd -k --user xxx_at_domain.de:****
--mail-from zzz_at_domain.de --mail-rcpt xxx_at_domain.de --trace-ascii
c:\daten\trace.txt smtps://smtp.domain.de:465/ -T c:\Daten\input.txt

where "input.txt" contains only a single line with an IP-Address.

The email received does not contain anything. No From Address, no To
Address, no Subject, no Body.

I also tried "< c:\Daten\input.txt" instead of "-T c:\Daten\input.txt".
But doing so results in "EHLO input.txt" instead of "EHLO
myhost.domain.de" and other unwanted effects.

I also tried ot place SMTP commands into the input file. But that did
also not work.

Only adding an additional line "Subject: IP-Adress" in "input.txt"
results at least in a valid subject.

Has anybody an idea, how to get this working?

Thanks.
LD

P.S.: If needed, I'll supply the trace file and/or the source of an
received email.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-03-14