Skip to content

Commit

Permalink
Update EmailTokenSender.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
alihemmatnia authored Jan 27, 2021
1 parent 0520cf3 commit cc9fc8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions News.Services/Services/EmailTokenSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; ایمیل خودتون رو بنویسید
Expand Down

0 comments on commit cc9fc8a

Please sign in to comment.