Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am trying to send email through gmail for verification purpose using asp.net mvc but its not working .My code is correct but i don't know what setting do i need to change in gmail to allow sending emails.

What I have tried:

i am trying to send email through gmail for verification purpose using asp.net mvc but its not working .My code is correct but i don't know what setting do i need to change in gmail to allow  sending emails.
Posted
Updated 6-Nov-18 7:57am
Comments
Bryian Tan 6-Nov-18 13:30pm    
any error message?
vivek gupta 6-Nov-18 13:33pm    
No error sir
#realJSOP 6-Nov-18 13:40pm    
If your code was correct, you wouldn't be having a problem.
vivek gupta 6-Nov-18 13:48pm    
i have made the rough gmail account for testing and made changes roughly that i forget ,using that gmail its working but when i made new one for proper basis ,its not working

1 solution

i have made the rough gmail account for testing and made changes roughly that i forget ,using that gmail its working but when i made new one for proper basis ,its not working
This leads me to believe that this is not a code issue:
1- It works with an account in testing.
2- It does not work with a brand new account

I would hypothesize that this is an account setting; and most likely that the new account is not setup to allow the usage of Less Secure Apps
Easy Fix: Let less secure apps access your account - Google Account Help[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900