How to Send an Email from Android Application without opening Gmail App?

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 105

  • @andrewbrower4158
    @andrewbrower4158 3 роки тому +1

    This tutorial is excellent and helped me with a big part of my program. Thank you

  • @tomaspena9511
    @tomaspena9511 3 роки тому +1

    Awesome tutorial! Thank you very much!

  • @rishabhk5821
    @rishabhk5821 2 роки тому +1

    Thanks a lot. Was really helpful.

  • @livymarilyn509
    @livymarilyn509 2 роки тому

    very functional bro to send campaign emails.

  • @glr2130
    @glr2130 3 роки тому +3

    Great tutorial friend, mine just has an error that I can't fix, when you click send the application closes and doesn't send anything, can you help me?

    • @RunCodes
      @RunCodes  3 роки тому +1

      Look the stack trace for error!

    • @Prasadcreation759
      @Prasadcreation759 5 місяців тому

      ​@@RunCodes ye jo I'd enter kroge uspe send hoga na

  • @bonfaceosuka
    @bonfaceosuka Рік тому

    Thank you so much for this tutorial

  • @pazulasma6306
    @pazulasma6306 2 роки тому

    Awesome, thanks!!
    a question, Is a security solution?

  • @gta-servicesgta-services7396
    @gta-servicesgta-services7396 3 роки тому

    It is very Good to explain 👍🏼
    And my friend how can i add attachment ?

  • @noorullah5946
    @noorullah5946 3 роки тому

    Thanks dear...it helps

  • @marcooo3d
    @marcooo3d 3 роки тому

    Excelente, Gracias!

  • @Ashesh_Kumar
    @Ashesh_Kumar 3 роки тому

    Thanks a lot!

  • @lubuntumleto5052
    @lubuntumleto5052 2 роки тому

    Thank you good sir, very ditailed explanation, and code work properly. But anyone mention after 30th may 2022 google will remove less secure access for apps, and seems like it's the last 15th days from now...

    • @theunwrittenquote
      @theunwrittenquote Рік тому

      google has trun of this setting . how can get access now?

    • @lubuntumleto5052
      @lubuntumleto5052 Рік тому

      @@theunwrittenquote I suppose it's possible, but google like make more less accessible api with high security requirements

    • @theunwrittenquote
      @theunwrittenquote Рік тому

      yeah now it's working with app password

    • @lubuntumleto5052
      @lubuntumleto5052 Рік тому

      @@theunwrittenquote That interesting, must try it by myself, thanks

  • @faibukanfay
    @faibukanfay 3 роки тому +3

    can you do it in kotlin?

  • @theunwrittenquote
    @theunwrittenquote Рік тому +2

    To make this feature work on 2023, you need to do some changes in your gradle(app)
    1st change:
    android {
    packagingOptions {
    exclude 'META-INF/NOTICE.md'
    exclude 'META-INF/LICENSE.md'}
    }
    2nd change:
    implementation 'com.sun.mail:android-mail:1.6.6'
    implementation 'com.sun.mail:android-activation:1.6.7'

  • @moryf3969
    @moryf3969 2 роки тому

    Appreciate it!

  • @janphillipjuntado
    @janphillipjuntado 3 роки тому

    Thanks it worked! shout out uwuuuuu

  • @espectactorteatro4028
    @espectactorteatro4028 Рік тому

    Hello,
    I want to make an activity that allows:
    (sender)Fetch the user that is logged in.
    Have two fields to fill in (subject, message) send button.
    Fixed email (receiver).
    Can you help me)

  • @Becoder15604
    @Becoder15604 Рік тому

    Dear sir hope you have a good start to the day, sir, I just follow your whole method it doesn't give any error but i press on send it close the app and in Gmail the option is not there it say this feature is now unavalible so i want ask it produce any problem if it produce so how the email is send when we doesn't week our security ...sir please help

  • @differentgaming8378
    @differentgaming8378 3 роки тому +1

    i did not understand the build gradle,in which implementation filetree ,jar files???,please help me

    • @RunCodes
      @RunCodes  3 роки тому

      Watch video carefully!

  • @eqa3ati
    @eqa3ati Рік тому

    Today, I tried it, but unfortunately I did not receive any message in the mail! Does this indicate that Google has stopped unsafe applications? Please tell us what is the alternative

  • @zoruao.508
    @zoruao.508 2 роки тому

    stops working at Session toast cant make it past that line app crashes
    i have checked the code a number of times its identical

  • @Ikkin267
    @Ikkin267 3 роки тому +1

    Hello sir, what is the password string? where could I find it

    • @RunCodes
      @RunCodes  3 роки тому

      your email password!

  • @FFA_DE
    @FFA_DE 2 роки тому

    Cannot resolve method 'getInstance' in 'Session' any help?

  • @programacionyalgoritmos6299
    @programacionyalgoritmos6299 3 роки тому

    Hi nice tutorial, do you need to pay for the license to use in you ap or is free. Thank you 👍

  • @liftoffbeats4132
    @liftoffbeats4132 3 роки тому

    do you have an idea if we can do authentification activity before sending an e mail

  • @w203mercedes-benz3
    @w203mercedes-benz3 3 роки тому

    can I add multiple txt pads to my message?
    for example a plain text for name and a multiple line text for the message?
    how to do that?
    thank you for the video

    • @RunCodes
      @RunCodes  3 роки тому

      sure, you can!

    • @w203mercedes-benz3
      @w203mercedes-benz3 3 роки тому

      @@RunCodes so far al good but when i hit the send button i don't recieve any e-mail. i have made a contart form on a second activity but when i hit send the app just goed back to the main activity. Do you have ant ideas what could be wrong?

    • @w203mercedes-benz3
      @w203mercedes-benz3 3 роки тому

      After checking with catlog i have got 1 fault code: E/libc: Access denied finding property "ro.serialno". Could this be the reason? How do i solve it

    • @RunCodes
      @RunCodes  3 роки тому

      Import all library and watch complete video!

    • @w203mercedes-benz3
      @w203mercedes-benz3 3 роки тому

      @@RunCodes i will look in to that. Thank you for your reply

  • @ogibinedi
    @ogibinedi 2 роки тому

    i think it's not save, put username and password inside the code, because someone can decompile your application

  • @IntegShop9197
    @IntegShop9197 Рік тому

    Does it safe to put your email and password in the code?

    • @RunCodes
      @RunCodes  Рік тому

      If you use for personal test!

    • @IntegShop9197
      @IntegShop9197 Рік тому

      Thankyouuu but the less secure app was already disabled by Google in May 30

    • @IntegShop9197
      @IntegShop9197 Рік тому

      I still manage to run it. You can make another tutorial by using 2 authenticator and make a default password for the application and use it in the code instead using your google account password.

  • @rohitpani9638
    @rohitpani9638 2 роки тому

    Are the dependencies compatible with android 11...because its working in another phone with android version 6 but not working with android 11

    • @RunCodes
      @RunCodes  2 роки тому

      Dont know, test yourself!

  • @subhambikashbehera6793
    @subhambikashbehera6793 3 роки тому

    Best tutorial i ever found

  • @RunCodes
    @RunCodes  3 роки тому +6

    do you like our work?
    does this tutorial help you?
    if so, you can support us at www.patreon.com/RunCodes

    • @brohigirlvlogs4302
      @brohigirlvlogs4302 2 роки тому

      Can U please Answer Ny question please ????? It works on emulator but it gives Error On my phone ?? Why it is happening ??

  • @abdulhamidrpn
    @abdulhamidrpn 2 роки тому

    Hello I'm unable to find this setting now. Google removed this setting. What should I do now?

    • @RunCodes
      @RunCodes  2 роки тому

      May be they provide another ways!

  • @zeynepc
    @zeynepc 2 роки тому

    I am getting error in this line: Transport.send(message);
    the error is: android.os.NetworkOnMainThreadException
    I can't fix it

    • @RunCodes
      @RunCodes  2 роки тому

      Watch complete video we showed how to fix that error!

    • @abdullahsuliman9013
      @abdullahsuliman9013 2 роки тому

      did u solve it ?
      if u do how because i have the same problem

    • @zeynepc
      @zeynepc 2 роки тому

      ​@@abdullahsuliman9013 I just saw your comment sorry. I use AsyncTask to solve it and My Android Studio was not updated i updated it. I don't know which one worked actually

  • @abhishekranjan1094
    @abhishekranjan1094 4 роки тому

    Bro my Android app is not connecting with phpmyadmin plz suggested me 🤒🤒🤒🤕

  • @guevannybuco4861
    @guevannybuco4861 2 роки тому

    Sir what Gradle you use

    • @RunCodes
      @RunCodes  2 роки тому

      Use latest gradle!

  • @wwoda
    @wwoda 2 роки тому

    Is it a security risk putting my own email password in at 8:16?

  • @bonfaceosuka
    @bonfaceosuka Рік тому

    Hey can you please send us the source codes for this aapp?

  • @subhambikashbehera6793
    @subhambikashbehera6793 3 роки тому

    I have some doubt , for my project can i contact you?
    Please sir please help me

  • @harshsoni7450
    @harshsoni7450 3 роки тому +1

    Source code?

  • @achalmehra8014
    @achalmehra8014 3 роки тому

    I have tried the same. there is no error however when i press send button it closes the app and comes to the home screen

    • @RunCodes
      @RunCodes  3 роки тому

      May be you have not add library and you should have internet connection!

    • @achalmehra8014
      @achalmehra8014 3 роки тому

      @@RunCodes Thank you. I got the issue. By mistake there was an typo while writing SMTP. I am able to send the emails now. However facing another issue when I am installing the app to another device , its not allowing to send email and app is crashing. However from my device I am able to send the email. I read in another article that google doesn't allow to send emails from multiple devices using custom built apps. Is there any way to avoid this

    • @mattiacaldognetto8110
      @mattiacaldognetto8110 2 роки тому

      ​ @achal mehra hi, I'm having the same error, can I please contact you to fix it?

    • @NguyenPhuTan-lv8we
      @NguyenPhuTan-lv8we Рік тому

      Hi sir, i have a same issue, can you tell me how to fix it

  • @cleitonalves2875
    @cleitonalves2875 2 роки тому

    Is it possible to attach any attached file?

  • @hannahjung6954
    @hannahjung6954 3 роки тому

    How can i send attachment also?

  • @dailybrunch1239
    @dailybrunch1239 3 роки тому

    Can anyone please tell me how to do this using flutter ?

  • @MDALAMIN-pj3no
    @MDALAMIN-pj3no 2 роки тому

    Where is source code? Pls share source code with us...thanks

  • @sahanadp123d3
    @sahanadp123d3 2 роки тому

    Hii.. I'm getting an authentication failure exception can u help me?

    • @RunCodes
      @RunCodes  2 роки тому

      Enter your gmail correct username and password

  • @ETNewVideo
    @ETNewVideo 3 роки тому

    Brother please provide Source Code

  • @googleadmobaccount1759
    @googleadmobaccount1759 3 роки тому

    bro app crash ho raha hai send btn per click karne per

    • @RunCodes
      @RunCodes  3 роки тому

      You may forget to initialize the button!

  • @chandrashekharreddy6759
    @chandrashekharreddy6759 2 роки тому

    can i attach file with this email

  • @differentgaming8378
    @differentgaming8378 3 роки тому

    get instance is not defining ..how?

    • @RunCodes
      @RunCodes  3 роки тому

      Define it!

    • @differentgaming8378
      @differentgaming8378 3 роки тому

      @@RunCodes how

    • @differentgaming8378
      @differentgaming8378 3 роки тому

      @@RunCodes please solve the problem

    • @RunCodes
      @RunCodes  3 роки тому

      Android studio intellisence have to told you where it should define! See error message and watch the complete tutorial!

    • @differentgaming8378
      @differentgaming8378 3 роки тому

      @@RunCodes please tell me in detail, I cannot able to understand

  • @ramjiyadav3923
    @ramjiyadav3923 2 роки тому

    not working! Very Mad

  • @tariqmahmood3120
    @tariqmahmood3120 3 роки тому

    How can i use my own email and password? If i change username and passwords it do not send email.

    • @RunCodes
      @RunCodes  3 роки тому

      Thats what we are showing!

  • @GliderJPA
    @GliderJPA 2 роки тому

    Session session = Session.getInstance() - Android studio cant find such a method please addvice