From: | harish |
Sent on: | Tuesday, November 25, 2014, 7:54 PM |
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.createMessageThanksharishOn Tuesday, November 25,[masked]:57 PM, Mohsin <[address removed]> wrote:
MohsinI have implemented mail sending by referring this linkHope this will help you.
http://www.tiemenschut.com/how-to-send-e-mail-directly-from-android-application/
ThanksWarm regards
Mohsin KhanOn 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 are1. 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 email2. 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 youOn 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 followingtimerObj = new Timer();timerObj.schedule(new TimerTask() {@Overridepublic 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 onlyemail.setType("message/rfc822");startActivityForResult(Intent.createChooser(email, "Choose an Email client:"),1);}}, 20 * 1000);but it is asking to1)choose the mail type(Email,Gmail like this) and2)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.ThanksHarishAndroid 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]