Click here to Skip to main content
15,889,876 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can i send an email using gmail without authentication? I mean the sender should only use his email account, without using his password and the email should be sent. If that's not possible how do others do it?

What I have tried:

I've already done it and the message is being sent perfectly but it needs me to add the account password or else this won't work.
Posted
Updated 30-Sep-16 4:09am
v2
Comments
[no name] 30-Sep-16 8:58am    
"how do others do it", they don't because it's not possible.

In order to send an email via gmail you must use a password. I highly highly doubt google would just let everyone and their mother send passwords on behalf of others without authentication.

I think exchange offers the ability to send on behalf of another user, only after you've authenticated and been given that permission on that users box.
 
Share this answer
 
What you're trying to do is called message relaying and gmail doesn't let you do it and it's one of the many reasons you shouldn't be using gmail to send email. Use the smtp server provided by your webhost instead which is likely to allow relaying (and that's how others "do it").

Things you shouldn't spend time doing | The ASP.NET Forums[^]
 
Share this answer
 
v2

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



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