cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 14 Mar 2014 17:36:00 +0100

On Fri, Mar 14, 2014 at 12:45:17PM +0100, ld2nd wrote:
> 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.

curl expects a RFC 5322 formatted e-mail as input, not just the body
part. The application is responsible for creating all the required headers
in the required format itself.

>>> Dan
-------------------------------------------------------------------
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