Discover the top 5 tips for understanding .NET Interop
Skip Navigation Links
C# Corner Home
Forum Home
Latest 50
Unanswered
Win Prizes
All Time Leaders
Jump to CategoryExpand Jump to Category
Login 
    Welcome Guest!
 Search Forum For :  
X
 Login
Please login to submit a new post, reply and edit exiting posts, see user profiles, and access more features. If you are not a registered member, Register here.
User Id / Email:
Password:  
Forgot Password | Forgot UserName
   Home » C# Language » Send an email with SMTP
       
Author Reply
Will Green
posted 1 posts
since Aug 31, 2010 
from

Send an email with SMTP

  Posted on: 31 Aug 2010       
I'm making an email spoofer. I am currently using the gmail smtp server with my credentials, but it sends from my gmail email. How can I make it so that it sends from the email the user inputted in the form? Or if anyone knows any tutorials that would be great as well.
I tried to post my source code but it's all on the same line, etc. Hard to read. Download my Form1.cs source here: (.txt file) http://www.mediafire.com/file/88hamalqmeq592o/Form1.txt
Tanmay Sarkar
posted  194 posts
since  May 28, 2010 
from  India

 Re: Send an email with SMTP
  Posted on: 31 Aug 2010        0  
The answer is in your own hand. You can send email from your Gmail account as you mention, & this is possible to use their SMTP port number 587. Is not it?

If you know others' port no then you can send email from that.
Here I say that if you use port no 25 for yahoo, then the mail may be not send. Because, I read from few articles that yahoo support it only for his paid customer.

May be you only send email from your app using Gmail.

I think it will help you!

Thank you!

If it help you, then mark it as answer.


Tanmay Sarkar
Hiren Soni
posted  270 posts
since  Oct 29, 2009 
from 

 Re: Send an email with SMTP
  Posted on: 31 Aug 2010        0  

I think that it's not possible.

 

  MailMessage msgMail  = new MailMessage("sender_email_id@google.com", recer, subject, mail);

 

Here if you write any email id in sender email id, it will take email id of

credintials , which you jave specified

 

        SmtpClient smtp = new SmtpClient("smtp.gmail.com",

        smtp.Credentials = new System.Net.NetworkCredential("hiren", passWord);

 

here if I take username is hiren, then it will send as myemail id , not sender_email_id@google.com

 

 

 

 
       
6 Months Free & No Setup Fees ASP.NET Hosting!
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
Discover the Top 5 .NET Memory Management Fundamentals
To write the best .NET code, you need to know exactly how the .NET framework really manages memory. Ricky Leeks presents the Top 5 fundamental facts of .NET memory management. Learn more.
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
Team Foundation Server Hosting
 Hosted by MaximumASP  |  Found a broken link?  |  Contact Us  |  Terms & conditions  |  Privacy Policy  |  Site Map  |  Advertise with us
Current Version: 5.2011.3.12
 © 1999 - 2012  Mindcracker LLC. All Rights Reserved