Skip to content

adding verification logic with email#6

Draft
ZapDos7 wants to merge 1 commit intomainfrom
feature/verification
Draft

adding verification logic with email#6
ZapDos7 wants to merge 1 commit intomainfrom
feature/verification

Conversation

@ZapDos7
Copy link
Copy Markdown
Owner

@ZapDos7 ZapDos7 commented Jun 17, 2025

No description provided.

@ZapDos7 ZapDos7 self-assigned this Jun 17, 2025
@ZapDos7 ZapDos7 force-pushed the feature/verification branch from 9672e9b to bba161d Compare June 17, 2025 11:35
this.javaMailSender = javaMailSender;
}

@Async
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add enable async on application

message.setFrom(fromAddress);
message.setTo(toAddress);
message.setSubject("Email Verification");
String confirmationUrl = "http://yourapp.com/api/auth/verify?token=" + token;
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

url from application.yml

import org.springframework.stereotype.Service;

@Service
public class EmailService {
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

todo: email HTML

@ZapDos7 ZapDos7 force-pushed the feature/verification branch from bba161d to a36c934 Compare June 17, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant