This is an Android application developed using Java and Android Studio that allows users to send emails from their Gmail accounts. It uses the JavaMail API to send emails through the SMTP server.
- ⚙️ Java Development Kit (JDK)
- 📱 Android Studio
- 📧 Gmail account
- 🔀 Clone the repository:
git clone https://github.com/iamaditya/Email-Client-Android-Application.git
-
📂 Open the project in Android Studio.
-
🚀 Update the Gmail account credentials:
- Open the
MainActivity.java
file. - Replace
your-username
with your Gmail username in thesendMail
method. - Replace
your-password
with your Gmail password in thesendMail
method.
- Open the
-
▶️ Build and run the application on an Android device or emulator.
- 🔛 Launch the application on your Android device.
- ✉️ Enter the email address of the recipient in the "To" field.
- 📩 Enter your Gmail address in the "From" field.
- 📜 Enter the subject and body of the email in the respective fields.
- 💌 Tap the "Send" button to send the email.
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.host", "smtp.gmail.com");
props.put("mail.smtp.port", "587");
🤝 Contributions are welcome! If you find any issues or want to enhance the functionality, feel free to submit a pull request.
This project is licensed under the MIT License.