trouble with returns in windows cURL
Posted: Thu Nov 30, 2023 4:47 pm
I'm able to send the following field as cURL through an email api and it works from a Mac standalone, and a slightly reformated version below also works from a windows standalone. However, only the first line of [[body]] is sent, and everything after the 1st return is ignored. If I replace my returns with "" in [[body]] then it is sent OK. I've tried replacing returns with CR and CRLF and LF and nothing works. I've even tried textencode()
curl -s --user "api:apikey" https://api.mailgun.net/v3/.../messages -F "from=[[emailfrom]]" -F "to=[[tUserName]]" -F "subject='[[emailSubject]]'" -F "text='[[emailbody]]'"
Any ideas?
curl -s --user "api:apikey" https://api.mailgun.net/v3/.../messages -F "from=[[emailfrom]]" -F "to=[[tUserName]]" -F "subject='[[emailSubject]]'" -F "text='[[emailbody]]'"
Any ideas?