Send emails with inline images
I want to send an email inside my Unity App with images added inline.
I have no problem sending the email but when I check it the image is gone or it's just on the attachments.
I have tried a bunch of methods, all based on this: http://stackoverflow.com/questions/18358534/send-inline-image-in-email (2nd answer) http://stackoverflow.com/questions/1212838/c-sharp-sending-mails-with-images-inline-using-smtpclient
I have tried gmail and outlook live and still no luck. I can also add the image as a normal attachment, just not inline with the text.
Any ideas?
Answer by phygitalmadhouse · Apr 27, 2018 at 07:45 PM
string filename = "screenshot.png"; mail.Attachments.Add(new Attachment(Application.dataPath + "/" + filename));
I have been messing aroun a little and sure still is a common "2 hours lost" in 2018
Your answer
Follow this Question
Related Questions
.net sockets login server 0 Answers
Finding / Updating the version of .NET being used in Unity 2018.2 ? 0 Answers
Need thinking event, during time it takes to smtpserver.send 0 Answers
Validating a certificate in Hololens 0 Answers
External .dll Nightmare 0 Answers