Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Feedback Form in android

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.

like image 591
AmmY Avatar asked Nov 13 '22 05:11

AmmY


1 Answers

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);
}
like image 174
Colin Avatar answered Nov 14 '22 23:11

Colin