Discussion:
-T -F smtps
(too old to reply)
p***@gmx.com
2018-08-29 13:45:11 UTC
Permalink
Is the fix for this so obvious or so simple that it is being ignored here?

Begin forwarded message:

Date: Thu, 23 Aug 2018 12:42:07 -0600
From: ***@gmx.com
To: curl-***@cool.haxx.se
Subject: -T -F smtps


Hi

# good headers
curl -v -k --ssl-reqd smtps://"user:password"@server.net --mail-from ***@server.net --mail-rcpt ***@server.net -T ./email1.txt

# no headers but good attachment
curl -v -k --ssl-reqd smtps://"user:password"@server.net --mail-from ***@server.net --mail-rcpt ***@server.net -T ./email1.txt -F '=@./a.mp3;encoder=base64'

i followed the rfc5322 and it gives good headers without the attachment?

Could someone tell me what is wrong with this coding?

Thanks
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Daniel Stenberg
2018-08-29 21:32:36 UTC
Permalink
Post by p***@gmx.com
Is the fix for this so obvious or so simple that it is being ignored here?
Personally I think it is because not that many people use curl to do SMTP so
this is a bit of an edge case.

However, -T and -F doesn't really mix in the HTTP case so I'm pretty sure
that's why the second command line doesn't work...
--
/ daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette
p***@gmx.com
2018-08-29 23:19:17 UTC
Permalink
Thanks for replying

would it work if i built the attachement into the emai1.txt then? and not used -F - just used the -T

(just asking cause it looks like doing it would take a bit of learning how mime works - it looks interesting but not to clear either)



On Wed, 29 Aug 2018 23:32:36 +0200 (CEST)
Post by Daniel Stenberg
Post by p***@gmx.com
Is the fix for this so obvious or so simple that it is being ignored here?
Personally I think it is because not that many people use curl to do SMTP so
this is a bit of an edge case.
However, -T and -F doesn't really mix in the HTTP case so I'm pretty sure
that's why the second command line doesn't work...
--
/ daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.ha
p***@gmx.com
2018-08-29 23:26:02 UTC
Permalink
aren't YOU using curl for smtps?

you have quite a few unique interesting email headers :)


On Wed, 29 Aug 2018 23:32:36 +0200 (CEST)
Post by Daniel Stenberg
Post by p***@gmx.com
Is the fix for this so obvious or so simple that it is being ignored here?
Personally I think it is because not that many people use curl to do SMTP so
this is a bit of an edge case.
However, -T and -F doesn't really mix in the HTTP case so I'm pretty sure
that's why the second command line doesn't work...
--
/ daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.
p***@gmx.com
2018-08-31 16:56:31 UTC
Permalink
don't bother your time here Daniel

I was able to use the freepascal/synapse library to do it completely and since i was using fpc to exec the curl cli code this way is almost 3-4x faster




Date: Wed, 29 Aug 2018 17:26:02 -0600
From: ***@gmx.com
To: curl-***@cool.haxx.se
Subject: Re: Fw: -T -F smtps


aren't YOU using curl for smtps?

you have quite a few unique interesting email headers :)


On Wed, 29 Aug 2018 23:32:36 +0200 (CEST)
Post by Daniel Stenberg
Post by p***@gmx.com
Is the fix for this so obvious or so simple that it is being ignored here?
Personally I think it is because not that many people use curl to do SMTP so
this is a bit of an edge case.
However, -T and -F doesn't really mix in the HTTP case so I'm pretty sure
that's why the second command line doesn't work...
--
/ daniel.haxx.se
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html

Loading...