Slight Tweak In Emails
This commit is contained in:
@ -43,9 +43,9 @@ public class emailVerify {
|
||||
message.setRecipients(Message.RecipientType.TO,
|
||||
InternetAddress.parse(receiverEmail));
|
||||
message.setSubject("Welcome To Obsidian Core Studios!");
|
||||
message.setText("Seems you've signed up for an account we're happy you're here, and welcome to the Obsidian Core Studios Family! \n \n \n \n \n " +
|
||||
message.setText("Seems you've signed up for an account we're happy you're here, and welcome to the Obsidian Core Studios Family! \n\n\n\n\n" +
|
||||
"This Was Sent On Behalf Of Obsidian Core Studios By Our Super Cool Login Robots." +
|
||||
"\n You'll Only Get This Type Email Once.");
|
||||
"\n You'll Only Get This Email Once.");
|
||||
|
||||
Transport.send(message);
|
||||
System.out.println("Sent Onboarding Email");
|
||||
@ -54,7 +54,7 @@ public class emailVerify {
|
||||
System.err.println("Email ONBOARD Not sent due to an error");
|
||||
}
|
||||
}
|
||||
public static void SendEmailThroughGmail(String receiverEmail, String User) {
|
||||
public static void newLocation (String receiverEmail, String User, String Adr, String OldAdr) {
|
||||
//get date for email
|
||||
Date date = new Date();
|
||||
SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yy");
|
||||
@ -80,8 +80,9 @@ public class emailVerify {
|
||||
message.setRecipients(Message.RecipientType.TO,
|
||||
InternetAddress.parse(receiverEmail));
|
||||
message.setSubject("Obsidian Core Account Login Notice | " + Date);
|
||||
message.setText("We detected a new login on your account " +"(at " + dateFormat.format(dt) + " PDT)" + ". If this was you ignore this email, if it wasn't you, please change your password. \n \n \n \n" +
|
||||
" \n This email (" + receiverEmail + ") is linked to the Obsidian Core Account "+ User + " \n These security emails can't be opted out of. \n \n This was sent on behalf of Obsidian Core Studios by our super cool login robots.");
|
||||
message.setText("Something Seems Fishy, A Login Was Detected At A New Location (" + Adr + " Compared To Your Last Logon " + OldAdr +") "+"(at " + dateFormat.format(dt) + " PST)" + ". If this was you ignore this email, if it wasn't you, please contact us (Respond To This Email).\n\n\n\n" +
|
||||
" \nThis email (" + receiverEmail + ") is linked to the Obsidian Core Account "+ User + " \nThese security emails can't be opted out of. \n\nThis was sent on behalf of Obsidian Core Studios by our super cool login robots.\n\n\n\n" +
|
||||
"The MAC address used has been set as your account's default ("+Adr + ")");
|
||||
|
||||
Transport.send(message);
|
||||
System.out.println("Alert Sent");
|
||||
|
Reference in New Issue
Block a user