Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good day,

Currently I am using Gmail to send emails directly from an android app that I am working on. This app logs into my gmail account and sends the email. However, I do not want to use gmail to send emails from the app. I want to use another email from my own domain. How do I do this? All tutorials online only use gmail to send emails from an android app? How can I implement my own SMTP details in my code for the emails to be sent from my domain?

Just changing the SMTP details in the code from gmail to my domain's details is not working. Any ideas or links that point to something similiar?

Regards,
Chris
Posted

1 solution

http://www.mkyong.com/android/how-to-send-email-in-android/[^]

This will allow you to access your mail client before sending the mail. Meaning you can use your account as well ;)

-KR
 
Share this answer
 
Comments
Christopher Smit 6-Oct-15 1:02am    
My app is sending the email without a mail client and should not use a mail client. But I am using a gmail email and account to send the email where I want to use an email address from my own domain for example address@mydomain.com instead of address@gmail.com. I do not want user input so this solution won't work for the current task, but thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900