diff --git a/News.Services/Services/EmailTokenSender.cs b/News.Services/Services/EmailTokenSender.cs index b28e206..7eb68bf 100644 --- a/News.Services/Services/EmailTokenSender.cs +++ b/News.Services/Services/EmailTokenSender.cs @@ -23,9 +23,9 @@ public Task Sendsms(string email, string subjet, string message, bool ishtml = f }; client.Credentials = cr; client.Host = "gmail.com"; - client.Port = 468; + client.Port = 465; client.EnableSsl = true; - using(MailMessage emailMessage = new MailMessage()) + using MailMessage emailMessage = new MailMessage() { To = { new MailAddress(email) }, From = new MailAddress(""), // Enter Your Mail Addres; ایمیل خودتون رو بنویسید