addressalign-toparrow-leftarrow-leftarrow-right-10x10arrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1languagelaunch-new-window--smalllight-bulblightning-boltlinklocation-pinlockm-swarmSearchmailmediummessagesminusmobilemoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstar-shapestartickettrashtriangle-downtriangle-uptwitteruserwarningyahooyoutube

Re: [blrdroid] Reg : Scheduling mail

From: harish
Sent on: Tuesday, November 25, 2014, 7:54 PM
Yeah i added the required jars but still giving the exception.


On Tuesday, November 25,[masked]:52 PM, Mohsin <[address removed]> wrote:


you need add 3 jar files in libs folder,  activation.jar,mail.jar,additional.jar,


download link for the jar file is present in the  site, or even can be downloaded from the github.

Warm regards
Mohsin Khan

On Tue, Nov 25, 2014 at 7:11 PM, harish <[address removed]> wrote:
it is giving the  following exception..
[masked]:10:36.942: E/dalvikvm(20305): Could not find class 'javax.mail.internet.MimeMessage', referenced from method com.example.emailsending.MainActivity.createMessage

Thanks
harish



On Tuesday, November 25,[masked]:57 PM, Mohsin <[address removed]> wrote:


I have implemented mail sending by referring this link

http://www.tiemenschut.com/how-to-send-e-mail-directly-from-android-application/

Hope this will help you.
Thanks
Mohsin

Warm regards
Mohsin Khan

On Tue, Nov 25, 2014 at 6:40 PM, Irfan Raza <[address removed]> wrote:
Sundeep is correct if you want to send mail from user's email client app using intent.
But if you want to shoot mail from background then you might need smtp server detail of your own and then you can use free available libraries to send mail in background. This way app will not ask user to select mail client and everything will be done asynchronously.
On Nov 25,[masked]:51 PM, "sundeep" <[address removed]> wrote:
Hi Harish,

   Possible solutions you can follow are

1. Ask the user to select an email client using which user would like to send emails, store the package name of the email client and use it to send the email

2. If you want the user to make choice always then you have to load all the packages present on the device that can send an email, show the list of apps to the user and let him select it. store the package(email client) that was selected and then send the email using it.

Following urls might help you 




On Tue, Nov 25, 2014 at 5:31 PM, harish <[address removed]> wrote:
Hi Droids,

I want to schedule a mail using timer for that i'm doing the following 

timerObj = new Timer();
timerObj.schedule(new TimerTask() {

@Override
public void run() {
Intent email = new Intent(Intent.ACTION_SEND);
email.putExtra(Intent.EXTRA_EMAIL,
new String[] { "[address removed]" });
// email.putExtra(Intent.EXTRA_CC, new String[]{ to});
// email.putExtra(Intent.EXTRA_BCC, new String[]{to});
email.putExtra(Intent.EXTRA_SUBJECT, "Invitation");
email.putExtra(Intent.EXTRA_TEXT,
"Hi, This is timed mail \n thanks.");

// need this to prompts email client only
email.setType("message/rfc822");

startActivityForResult(
Intent.createChooser(email, "Choose an Email client:"),
1);
}
}, 20 * 1000);


but it is asking to 
1)choose the mail type(Email,Gmail like this) and 
2)also after selecting i need to press send button .....

without doing the above two things how to send email without user interaction.

guide me to do this.

Thanks
Harish
Android developer







--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by harish ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about harish, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]



--
Thanks & Regards,

 Sundeep





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by sundeep ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about sundeep, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]




--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Irfan Raza ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Irfan Raza, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Mohsin ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Mohsin, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]






--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by harish ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about harish, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Mohsin ([address removed]) from The Bangalore Android User Group - [ B.A.U.G ].
To learn more about Mohsin, visit his/her member profile
To report this message or block the sender, please click here
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages

Meetup, POB 4668 #37895 NY NY USA 10163 | [address removed]


People in this
group are also in: