Create Feedback Form in android

AmmY picture AmmY · May 21, 2013 · Viewed 7.9k times · Source

I am creating a feedback form in my app.

This is what I want :

When the user fills the feedback form and then clicks on Submit button, the user information is then sent to my email address without asking the user to log into his/her account i.e. user can send feedback without our email credentials. Is it possible?

If yes then please give some hint.

Answer

Colin picture Colin · Jul 2, 2015

I hit a similar problem and ended up sending emails to myself using AWS SES

public static void sendEmail(String receiver,String title,String message){
    AWSCredentials credentials = getCreds();
    AmazonSimpleEmailServiceClient sesClient = new AmazonSimpleEmailServiceClient( credentials );

    Content subjectContent = new Content(title);
    Body messageBody = new Body(new Content(message));
    Message feedbackMessage = new Message(subjectContent,messageBody);
    Destination destination = new Destination().withToAddresses(receiver);

    SendEmailRequest request = new SendEmailRequest(receiver,destination,feedbackMessage);
    SendEmailResult result =  sesClient.sendEmail(request);
}