Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #443

Merged
merged 1 commit into from
Apr 27, 2024
Merged

Fixed #443

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
Loading