hi first of all i want to say an using gmail sender To send mails on a button click in my app where i got Solution From Here
now in the above code i cant attach files .but later i have seen a solution from Stack over flow to solve this in that there was some modification done in the "GMailSender.java" file the modified link is Here
how ever there is Addition portion to attach file now my problem is that i don't understand the modified portion. here is the old portion
public synchronized void sendMail(String subject, String body, String sender, String recipients)
the modified portion is
public synchronized void sendMail(String subject, String body, String sender, String recipients, File attachment)
this is not a duplicated question i just want to know What this "File attachment" portion is and what type or method should i implement to attach a file if you have any doubt please go through these Two links and please find the solution thanks in advance