How can i send image file ? via using email service ?

0 votes

I want send mail to my friends. Normal text message is sent succesfully. However here i want send image file to my fiiend.
asked Aug 22, 2014 in App42 Cloud API-BaaS by marine.modi (62 points)

1 Answer

0 votes

Hello Marine,

Thanks for writing to us. 

You can send file along with email by appending its URL in the mail body. Please find below the code snippet for the same.

String sendTo = "";

String sendSubject  = "Feedback";

String senderEmailId = "";

App42Log.SetDebug(true);                //Print output in your editor console                                      

emailService.SendMail(sendTo, sendSubject, sendMsg, senderEmailId, EmailMIME.HTML_TEXT_MIME_TYPE, new UnityCallBack()); 

public class UnityCallBack : App42CallBack


            public void OnSuccess(object response)


                        App42Log.Console("Success : " + response);



            public void OnException(Exception e)


                        App42Log.Console("Exception : " + e);




Let us know if it helps.



answered Aug 22, 2014 by hs00105 (2,005 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on