Android Email App Using Javamail API in Android Studio

In this post we will create an Android Email App.

We will not use the default Android Email Client to send emails instead we will use Javamail API to create our own email sender. And you can also use this App for Email.

So if you are searching Best Email App for Android then try the app created by yourself 😉

Before going through the tutorial you can check the following video to see exactly what you will be creating in this tutorial.

Android Email App – Video

Download Javamail API for Android

  • For this Android Email App we will use Javamail API, so before starting our android project download Javamail API from link given below

[download id=”1481″]

  • You will get a zip file from the above link. Extract the zip and you will get three .jar files. We will use these .jar files in our android email app project.

Creating Android Email App in Android Studio

  • Open Android Studio and create a new android project.
  • First we will add the downloaded .jar’s to our project.
  • From the left panel click on Android -> Project (see the image below)
android
android
  • Now you will get the libs folder inside projectfolder -> app -> libs . Paste all the three .jar files which you have downloaded above inside the libs folder. (See the image below)
javamail api
javamail api
  • Now go to file -> project structure.
project structure
project structure
  • Now go to dependencies and from the right click on the green + sign and then click on file dependencies.
file dependencies
file dependencies
  • Now go to libs folder and add all the three .jar files (you can see in the image)
adding jar android studio
adding jar android studio
  • Now click on ok, ok and you have added the apis to your project.
  • Now come to activity_main.xml and create the following layout.
android email app
android email app
  • Use the following code for creating the above layout.

  • For this android email app we will use gmail to send emails. So create a new java class named Config.java and write the following code.

  • You have to write your gmail username and password.
  • Now create a new class SendMail.java. It will send our email. Write the following code in this class.

  • Now come to MainActivity.java and write the following code.

  • Finally add internet permission to manifest.

  • Thats it now run your application.
android email app
android email app
  • Bingo! It is working absolutely fine. You can also download the source code of my project from below.

Get source code of Android Email App

So thats all for this Android Email App tutorial. Leave your comments if you are having any queries or trouble for this Android Email App. Thank You 🙂

127 thoughts on “Android Email App Using Javamail API in Android Studio”

  1. Hii thanks for the tutorial its working fine with Gmail but I need to send email using my Yahoo account instead of gmail can you please help me regarding this.

    Reply
  2. It is showing me Message sent in toast but when i check gmail account no mail is received. Please help, i even tried different email accounts.

    Secondly, what to do if we wish to send a doc file also as an attached document to the mail?
    Please help

    Reply
  3. Hi , thanks for this tutorial , but i have question : can i make this app accept any types of emails ( yahoo , hotmail , gmail , ….. ) ?

    Reply
    • Same question! I already tried several different ways but I wasn’t successful.
      I’m trying to send an Email with the Email address the user’s typing in a text field.
      Any help is appreciated!

      Thx in advance!

      Reply
  4. thanks for the code. but i am getting error in MainActivity.java file in Error:(3, 30) error: cannot find symbol class AppCompatActivity and Error:(31, 36) error: cannot find symbol method findViewById(int). i did all the dependencies in the exact way. waiting for your reply.

    Reply
  5. Thank u for your code!! Could you also show how to receive messages using JavaMail API, please? I tried to rework your code, but it wasn’t successful:(

    Reply
  6. Hello , this message is being translated by Google Translate because I do not speak English, I hope you understand .

    Where has :

    //Setting sender address
    mm.setFrom(new InternetAddress(Config.EMAIL));
    //Adding receiver
    mm.addRecipient(Message.RecipientType.TO, new InternetAddress(email));

    Would actually:

    //Setting sender address
    mm.setFrom(new InternetAddress(>>email<>Config.EMAIL<<));

    For in setFrom method will receive the destination email , and addRecipient is the email that will be sent . I did the tests here and in the original code will send me two emails, a stranger with all system information and another with the message but also strange . When did the tests changing these variables functioned normally sending a well-formatted single email .

    Reply
  7. I implement the same as you have done!
    but no message is received in the target email address.
    I changed the config file also.
    here is the logcat :
    01-17 22:19:41.473 12231-12231/polimi.aap.yas.personalhealthrecord E/ViewRootImpl: sendUserActionEvent() mView == null

    Reply
  8. thanks for the tut..but when i have my mail and pass stored in config.java .what i want is when user uses my app and wants to send a mail to me, im not getting the mail to my mail ,instead it shows like u got a mail from sv53@gmail.com(this is in config file) to the mail which i entered in receipient field .
    when a user send a mail using his mail id, i need to get mail to my sv53 mail id, but how to?

    Reply
  9. Cool tut, I wish I understood Android Studio better but I am just now teaching myself and could use help on a couple projects. I can only imagine how busy you must be, but if you would/could help me just a bit, I sure would appreciate it! If you are interested, please contact me via admin@mohtech.ca

    Thank you in advance!
    Mike

    Reply
  10. Hi mate, first of all i want to thanks to you for this tutorial, im having a problem when i click the send buttom, i got the following output:

    03-15 08:40:21.396 3801-4071/ar.com.taxiexpress.taxiexpress E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #3
    Process: ar.com.taxiexpress.taxiexpress, PID: 3801
    java.lang.RuntimeException: An error occured while executing doInBackground()
    at android.os.AsyncTask$3.done(AsyncTask.java:300)
    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
    at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
    at java.util.concurrent.FutureTask.run(FutureTask.java:242)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    at java.lang.Thread.run(Thread.java:841)
    Caused by: java.lang.NoClassDefFoundError: ar.com.taxiexpress.taxiexpress.SendMail$1
    at ar.com.taxiexpress.taxiexpress.SendMail.doInBackground(SendMail.java:74)
    at ar.com.taxiexpress.taxiexpress.SendMail.doInBackground(SendMail.java:21)
    at android.os.AsyncTask$2.call(AsyncTask.java:288)

    Could you please helpme with this?

    Best regards.

    Reply
      • You should check the gradle file
        (App). If you have written duplicate about mail, it would have shown error message like you.
        For example, in your gradle file,
        If there are more than a line,
        compile javax.javamail.5-
        dependencies {
        compile fileTree(dir: ‘libs’, include: [‘*.jar’])
        -> this is two lines about javamail.

        So delete one of them. 🙂 i solved the problem in this way

        Reply
  11. hey how to create new java class as u mentioned like config.java, Mainactivity.java etc on android studio 1.5.1. I am new to android coding.plz help

    Reply
    • i got error at this line in main.xml
      //Creating SendMail object
      SendMail sm = new SendMail(this, email, subject, message);
      sm.execute();
      showing error as cannot resolve symbol,,,,,help me wit this…

      Reply
  12. Hello sir, I put my exact gmail account and password but I don’t still get any mails. Even though it tells me that the mail was sent. Please help me. Thank you

    Reply
    • I also enabled pop to my Gmail from setting enable pop but still i did not get any mail……please help me to solve this problem

      Reply
  13. Awsm tuttorial…its working…
    in addition to this i want to add extra content with mail(like thanks from our team….) which will be sent to the recipient…and this content shows only when recipient receive the mail….how can i add this extra content with the mail???
    please help me to solve this problem

    Reply
  14. It’s working fine .But whenever i was sending mail getting suspicious mail not allow less security apps ,

    how can i achieve that?

    Reply
  15. Thanks for this blog,It’s helpful!
    I want to use a login activity to authentificate the users and after I’ll get a new activity for exemple the inbox and button write new mail!!what can I do for do that idea??thanks in advanced

    Reply
  16. Hi,

    in my app I have an own text as an EditText which I want to send with an email. How can I add my own text instead of typing one in into the “message field” and send this one via email?

    Reply
  17. Hi same problem for me also. Whenever I filled all the fields ( receipent, Subject, Body ), it show message sent but I am not able to receive the message.

    Please help me. Thanks in advance.

    Reply
  18. It is working perfectly fine. Thanks a lot. I created a new ID my POP and IMAP both are disabled in gmail settings but still it works.

    Reply
  19. Cannot resolve symbol SendMail in the main activity. Please help! SendMail and execute go red.

    SendMail sm = new SendMail(this, email, subject, message);

    //Executing sendmail to send email
    sm.execute()

    Reply
  20. I am getting below error please help me.I followed all steps as same in this article.

    FATAL EXCEPTION: AsyncTask #3
    Process: chattm.com, PID: 2280
    java.lang.RuntimeException: An error occured while executing doInBackground()
    at android.os.AsyncTask$3.done(AsyncTask.java:300)
    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
    at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
    at java.util.concurrent.FutureTask.run(FutureTask.java:242)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    at java.lang.Thread.run(Thread.java:841)
    Caused by: java.lang.SecurityException: Permission denied (missing INTERNET permission?)
    at java.net.InetAddress.lookupHostByName(InetAddress.java:418)
    at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
    at java.net.InetAddress.getByName(InetAddress.java:289)
    at javax.mail.URLName.getHostAddress(URLName.java:487)
    at javax.mail.URLName.hashCode(URLName.java:463)
    at java.util.Collections.secondaryHash(Collections.java:3405)
    at java.util.Hashtable.get(Hashtable.java:265)
    at javax.mail.Session.getPasswordAuthentication(Session.java:823)
    at javax.mail.Service.connect(Service.java:271)
    at javax.mail.Service.connect(Service.java:169)
    at javax.mail.Service.connect(Service.java:118)
    at javax.mail.Transport.send0(Transport.java:188)
    at javax.mail.Transport.send(Transport.java:118)
    at chattm.com.SendMail.doInBackground(SendMail.java:95)
    at chattm.com.SendMail.doInBackground(SendMail.java:20)
    at android.os.AsyncTask$2.call(AsyncTask.java:288)
    at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
    at java.lang.Thread.run(Thread.java:841) 
    Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
    at libcore.io.Posix.getaddrinfo(Native Method)
    at libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:61)
    at java.net.InetAddress.lookupHostByName(InetAddress.java:405)
    at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236) 
    at java.net.InetAddress.getByName(InetAddress.java:289) 
    at javax.mail.URLName.getHostAddress(URLName.java:487) 
    at javax.mail.URLName.hashCode(URLName.java:463) 
    at java.util.Collections.secondaryHash(Collections.java:3405) 
    at java.util.Hashtable.get(Hashtable.java:265) 
    at javax.mail.Session.getPasswordAuthentication(Session.java:823) 
    at javax.mail.Service.connect(Service.java:271) 
    at javax.mail.Service.connect(Service.java:169) 
    at javax.mail.Service.connect(Service.java:118) 
    at javax.mail.Transport.send0(Transport.java:188) 
    at javax.mail.Transport.send(Transport.java:118) 
    at chattm.com.SendMail.doInBackground(SendMail.java:95) 
    at chattm.com.SendMail.doInBackground(SendMail.java:20) 
    at android.os.AsyncTask$2.call(AsyncTask.java:288) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
    at java.lang.Thread.run(Thread.java:841) 
    Caused by: libcore.io.ErrnoException: getaddrinfo failed: EACCES (Permission denied)
    at libcore.io.Posix.getaddrinfo(Native Method) 
    at libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:61) 
    at java.net.InetAddress.lookupHostByName(InetAddress.java:405) 
    at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236) 
    at java.net.InetAddress.getByName(InetAddress.java:289) 
    at javax.mail.URLName.getHostAddress(URLName.java:487) 
    at javax.mail.URLName.hashCode(URLName.java:463) 
    at java.util.Collections.secondaryHash(Collections.java:3405) 
    at java.util.Hashtable.get(Hashtable.java:265) 
    at javax.mail.Session.getPasswordAuthentication(Session.java:823) 
    at javax.mail.Service.connect(Service.java:271) 
    at javax.mail.Service.connect(Service.java:169) 
    at javax.mail.Service.connect(Service.java:118) 
    at javax.mail.Transport.send0(Transport.java:188) 
    at javax.mail.Transport.send(Transport.java:118) 
    at chattm.com.SendMail.doInBackground(SendMail.java:95) 
    at chattm.com.SendMail.doInBackground(SendMail.java:20) 
    at android.os.AsyncTask$2.call(AsyncTask.java:288) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
    at java.lang.Thread.run(Thread.java:841) 

    Reply
    • Even i’m facing the same issue. this issue is happening when installing application from app-release.apk or app-debug.apk. but it is getting success when i’m directly installing application from studio. please help thanks in advance.

      Reply
  21. thanks sir ….for the codes but while i am sending the mail is say Message send but no email is received i input the correct receipient and in codes add coreect email and pass also enable allow less secure app but nothing work right

    Reply
  22. Thanx bro for this tutorial. Here My application works properly but there is a problem. Problem is that:-
    Review blocked sign-in attempt….and so On……
    So how can we solved this problem……….
    I’m waiting for your reply………………

    Reply
  23. Already,I solved previous problem using “https://www.google.com/settings/security/lesssecureapps”
    But this is not a permanent solution please gime me a permanent solution of this topic.
    & another problem is………….
    If we enter “abcxyzfhkashfhds@gmail.com” this email address. This is not a valid email address. so how we check this email exists or not??????????

    Reply
  24. Hi every one this code is working fine but still I am not getting any MAIL…….So in this case what should i do?
    Please help me………..

    Reply
  25. Could not send email
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
    nested exception is:
    java.net.ConnectException: failed to connect to smtp.gmail.com/2404:6800:4003:c00::6d (port 465) after 90000ms: isConnected failed: ENETUNREACH (Network is unreachable)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
    at javax.mail.Service.connect(Service.java:288)
    at javax.mail.Service.connect(Service.java:169)
    at info.maildemo.Mail.send(Mail.java:138)
    at info.maildemo.MainActivity$SendMail.doInBackground(MainActivity.java:65)
    at info.maildemo.MainActivity$SendMail.doInBackground(MainActivity.java:45)
    at android.os.AsyncTask$2.call(AsyncTask.java:292)
    at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
    at java.lang.Thread.run(Thread.java:818)
    Caused by: java.net.ConnectException: failed to connect to smtp.gmail.com/2404:6800:4003:c00::6d (port 465) after 90000ms: isConnected failed: ENETUNREACH (Network is unreachable)
    at libcore.io.IoBridge.isConnected(IoBridge.java:267)
    at libcore.io.IoBridge.connectErrno(IoBridge.java:191)
    at libcore.io.IoBridge.connect(IoBridge.java:127)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:188)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:461)
    at java.net.Socket.connect(Socket.java:918)
    at java.net.Socket.connect(Socket.java:844)
    at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:233)
    at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1359)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412) 
    at javax.mail.Service.connect(Service.java:288) 
    at javax.mail.Service.connect(Service.java:169) 
    at info.maildemo.Mail.send(Mail.java:138) 
    at info.maildemo.MainActivity$SendMail.doInBackground(MainActivity.java:65) 
    at info.maildemo.MainActivity$SendMail.doInBackground(MainActivity.java:45) 
    at android.os.AsyncTask$2.call(AsyncTask.java:292) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
    at java.lang.Thread.run(Thread.java:818) 
    Caused by: android.system.ErrnoException: isConnected failed: ENETUNREACH (Network is unreachable)

    i got above error while executing kindly help me.

    Reply
  26. OK. Worked fine.
    I placed inside the application method in the manifest. That was wrong. Should be placed outside the application method. Took me a while to solve that ‘bug’ 😉

    Reply
  27. I dont know when i add it with other fragments it crashes everytimes. But instead i add with no fragment just main activity it works. Will you plz show a tut that show if i can add Send Mail with different fragments not just coding with the main activity ?plz

    Reply
    • Yes i am also getting same, while using activity its works but with fragment its showing error in line “SendMail sm = new SendMail(this, email, subject, message);”
      Could you please help me to resolve this issue ?

      Reply
  28. I followed the procedure as written and all code is same as on site. I am writing recipient email, subject and body for email but the email is not going. My login ID and password is also correct, the account is working and even i am getting progress bar as well as Toast message that “Message Sent”. I don’t understand what is the problem..please help

    Reply
    • I am creating an app to register a customer.When a customer register with the system i want to send a welcome email to customer.When i run the app data is added to the database but app is stopped. logcat says about fatal exception.Any one can help me plz?

      Thank you

      Reply
  29. It’s working well in emulator android. I can receive email. Then I tried to install my app in my android device with Wifi connection, it’s working well. But when I use Data Mobile Connection (not Wifi) email not sent. Can you tell me why?

    Reply
  30. Thanks belal it works perfectly!

    Only we need to remember is that enable “Allow less secure apps” setting of

    gmail account whose username and password we are passing in Config.java file.

    As new to android tutorial like this is like a gift thanks bro!

    Reply
  31. Need to read emails, inbox, draft, custom folder etc so that I can display them on a listview in my app. It needs to read default android email not gmail. I haven’t found anything except sending emails.
    Can you help with this? Willing to PAY $$ for your help. Thanks in advance.

    Reply
  32. Please help me
    Error:
    Error:Execution failed for task ‘:app:preDexDebug’.
    > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Program Files\Java\jdk7\bin\java.exe” finished with non-zero exit value 1

    Reply
  33. Long story in short “this app works fine on emulator but does not work on real device”

    Bro,this app works fine on emualtor,but no email is acctualy sent on when i use real device…I know there is no problem on this code.But i assume something is missing on dependency or something like that,that would make the app work both on emulator and real device.Pls help me brother

    Reply
  34. Unable to download any files, Error (429)
    This account’s links are generating too much traffic and have been temporarily disabled!

    Will you have any alternative links the project can be downloaded from?

    Reply
  35. If you implement emailing from the android app (or any client side app) like this, your account can be compromised. If I get this app, I can easily decompile the jar and get your Gmail Password. So I suggest not to use this for sending emails.

    Reply
  36. This code will work even without downloading the file.
    Just add
    compile ‘com.sun.mail:android-mail:1.5.5’
    compile ‘com.sun.mail:android-activation:1.5.5’
    in build.gradile – dependencies section.
    Thanks for the code!

    Reply
  37. am having a problem
    am able to send and receive the mail on my own wifi network and mobile data

    but when i use the app for sending mail from a different wifi am not receiving any mail
    i tried with 3 of my friends ..they tried to send me mail but it does not work i.e am not receiving emails from their wifi
    can anyone help me ?

    Reply
  38. Hii Sir .. i get this type of error .. how can i solve it please help me.

    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;

    java.net.ConnectException: failed to connect to smtp.gmail.com/74.125.68.108 (port 465): connect failed: ETIMEDOUT (Connection timed out)

    Reply
  39. When i try the API i get the following error and the message ” App stopped working. Any help.
    07-25 14:05:17.123 11187-11270/emailtestapp.myapp1 E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
    Process: emailtestapp.myapp1, PID: 11187
    java.lang.RuntimeException: An error occurred while executing doInBackground()
    at android.os.AsyncTask$3.done(AsyncTask.java:309)
    at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
    at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
    at java.util.concurrent.FutureTask.run(FutureTask.java:242)
    at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)

    Reply
  40. ASWK…

    I try this code but i found one error “javax.mail.AuthenticationFailedException” I enable the Less secure apps permission but still not working again i got same error.
    please help.

    Reply
  41. Hi, I’m using your library in my project and it’s great.

    I have a small inconvenience.

    I want to be able to attach a document to my message, but I do not know how to do it.

    Is your library capable of attaching a document to the mail?

    An apology if my English is not very clear, it is not my native language.

    Reply
  42. Thank you so much!!!
    Very good tutorial! Can you show us how to attach a pdf file and image file ? please please help me.

    Reply
  43. Thank you for your code, I’v attached this but it is not working for me generating exception– javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
    nested exception is:
    java.net.ConnectException: failed to connect to smtp.gmail.com/2404:6800:4003:c03::6d (port 465) after 90000ms: isConnected failed: ENETUNREACH (Network is unreachable)

    please help me.

    Reply
  44. Hi Belal. First of all thanx for the nice tutorial. This is only for sending the email.how to receive the emails?
    I want to develop the app like gmail. Can you guide me how to do this? Please help me.

    Reply
  45. Sending mail working fine only in some mobiles..Its giving error in some phones while trying to send..
    checked internet connection even though it is not sending from some phones..

    Reply
  46. i want to receive email through my app just like contact us field in all other app example flipkart,amazon.etc,i have tried above code but problem with it is I cant receive emails ….I have passed correct details in config file and i have set up email setting then to i cant see emails but i receives toast message saying that message sent….can you please help me with that and help me with receiving mails .
    Thanks in advance.

    Reply
  47. Very interesting code, what I was looking for, thanks so much, but… unfortunately it doesn’t send any mail.. I try with three of my accounts, but nothing…

    Reply

Leave a Comment