cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Question on using Curl on OpenVMS to send files as email attachments

From: <kakuffo_at_curoonline.com>
Date: Thu, 22 Aug 2013 13:29:37 +0100

Hi

Try the example on the link below

http://community.sendgrid.com/sendgrid/topics/need_an_example_of_sending_a_file_attachment_using_command_line_version_of_curl

Kwame Akuffo
kakuffo_at_curoonline.com
07891268149

On 22 Aug 2013, at 13:11, tom.reid_at_hsbcib.com wrote:

>
> Hi,
>
> I have just downloaded the latest version of curl (Ver. 7.32) for openvms and I'm trying to use it to send an email via SMTP. So far I can send a text file and have its contents appear in the body of the email. However I want to be able to send files as attachments as we will also be sending xls, zips etc...
> Here is the command I used to get the contents of the text file in the body (with dummy passwords etc ... for security reasons)
>
> curl smtp://my.smtp.server -v --mail-from "dummy_at_mymail.com" --mail-rcpt "tom.reid_at_hsbcib.com" --ssl -u dummy_at_mymail.com:dummypass -T "test.txt"
>
> Does anyone know I can use curl to send a file as an attachement
>
> Regards,
>
>
> Tom
>
>
>
>
> ************************************************************
> HSBC Bank plc may be solicited in the course of its placement efforts for a new issue, by investment clients of the firm for whom the Bank as a firm already provides other services. It may equally decide to allocate to its own proprietary book or with an associate of HSBC Group. This represents a potential conflict of interest. HSBC Bank plc has internal arrangements designed to ensure that the firm would give unbiased and full advice to the corporate finance client about the valuation and pricing of the offering as well as internal systems, controls and procedures to identify and manage conflicts of interest.
>
> HSBC Bank plc
> Registered Office: 8 Canada Square, London E14 5HQ, United Kingdom
> Registered in England - Number 14259
> Authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority
> ************************************************************
> ----------------------------------------- SAVE PAPER - THINK BEFORE YOU PRINT! This transmission has been issued by a member of the HSBC Group "HSBC" for the information of the addressee only and should not be reproduced and/or distributed to any other person. Each page attached hereto must be read in conjunction with any disclaimer which forms part of it. Unless otherwise stated, this transmission is neither an offer nor the solicitation of an offer to sell or purchase any investment. Its contents are based on information obtained from sources believed to be reliable but HSBC makes no representation and accepts no responsibility or liability as to its completeness or accuracy.-------------------------------------------------------------------
> 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

-------------------------------------------------------------------
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 2013-08-22