Skip to content

Commit

Permalink
Merge pull request #443 from kavicastelo/backend
Browse files Browse the repository at this point in the history
Fixed
  • Loading branch information
kavicastelo authored Apr 27, 2024
2 parents 9f79c2b + f6e5d60 commit 254fddb
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 29 deletions.
53 changes: 30 additions & 23 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public class ContactController {
public ResponseEntity<ApiResponse> sendMail(@RequestBody ContactModel contactModel){
emailService.sendSimpleEmail("[email protected]","Urban air quality platform - contact","" +
"Dear Administration,"+"\n" +
"You got an contact email from: "+contactModel.getSender()+"\n" +
"Email Address: "+contactModel.getSenderEmail()+"\n\n" +
"You got an contact email from: "+contactModel.getName()+"\n" +
"Email Address: "+contactModel.getEmail()+"\n\n" +
""+contactModel.getMessage()+"\n\n" +
"Client is waiting for your response. Reply ASAP\n\n\n" +
"System Automated Email - Urban Air Quality Platform");

emailService.sendSimpleEmail(contactModel.getSenderEmail(),"Urban air quality platform - contact","" +
"Dear "+contactModel.getSender()+","+"\n" +
emailService.sendSimpleEmail(contactModel.getEmail(),"Urban air quality platform - contact","" +
"Dear "+contactModel.getName()+","+"\n" +
"We got your contact message. Our agent will be contact you ASAP. Thank you for contacting with us! \n\n" +
"Sincerely,\n" +
"Urban Air Quality Platform.\n\n" +
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/api/air_quality/model/ContactModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public class ContactModel {
@Id
private String id;
private String sender;
private String senderEmail;
private String name;
private String email;
private String message;
}

0 comments on commit 254fddb

Please sign in to comment.