curl / Mailing Lists / curl-library / Single Mail

curl-library

Sending an email with an image via libcurl

From: Nicholas Chambers <nchambers_at_spookyinternet.com>
Date: Sat, 25 Feb 2017 22:48:33 -0800

Hello all! I'm writing a little thing which involves emailing an image after $x amount of time. To make sure the code works, I wanted to put it in a separate program and test it. Currently the code I have is attached as mail.c, and the image I am trying to send is purple.jpeg. The email sends, and I get it in my inbox, but the image fails to load. Could someone help me figure out why?

Cheers,

Nicholas Chambers

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html

  • application/octet-stream attachment: mail.c
purple.jpeg
Received on 2017-02-26