Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 13th, 2007, 03:35 AM
Registered User
 
Join Date: Aug 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Bashu Send a message via MSN to Bashu
Default How to Sending an email in asp.net 2.0 using C#

Hi to All,

Here I am working on asp.net 2.0 using C#, I need a help for to sending emails with attachments and CC & BCC also.
can any body help me in this regards.. My maild ID: chanbashask@yahoo.com

Thanks in Advance
Basha...
 
Old August 13th, 2007, 05:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

Google is your friend...

http://www.aspnettutorials.com/tutor...t2-csharp.aspx

 
Old August 13th, 2007, 05:59 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

http://www.systemnetmail.com/

-Peter
 
Old August 13th, 2007, 09:49 PM
Registered User
 
Join Date: Aug 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Bashu Send a message via MSN to Bashu
Default

Quote:
quote:Originally posted by Jonax
 Google is your friend...

http://www.aspnettutorials.com/tutor...t2-csharp.aspx

Hi Thanks for ur reply and I gone throgh as u given link, I am inserted following fields such:

            MailAddress SendFrom = new MailAddress(txtFrom.Text); //name@yahoo.com
            MailAddress SendTo = new MailAddress(txtTo.Text); mail@yahoo.com
            MailAddress SendCC = new MailAddress(txtcc.Text); cc@yahoo.com
            MailAddress SendBcc = new MailAddress(txtBcc.Text); bcc@yahoo.com


            MailMessage MyMessage = new MailMessage(SendFrom, SendTo);

            MyMessage.CC.Add(SendCC);
            MyMessage.Bcc.Add(SendBcc);

            MyMessage.Subject = txtSubject.Text;
            MyMessage.Body = txtBody.Text;

            SmtpClient emailClient = new SmtpClient(txtsmtpServer.Text); systemIDAddress(10.1.11.144)
            emailClient.Send(MyMessage);
            lblMessage.Text = "Message has been sent";


Here message is displaying as meseeage sent successfully. But mail is not goin to TOMAIL ID.
pls help me inthis regard. can I change any things in that...


Thanks,
Basha...



 
Old August 14th, 2007, 03:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 184
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Jonax
Default

Hi again...
Try logging the SMTP-session:
http://www.systemnetmail.com/faq/4.10.aspx






Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending email in VB.net lowell .NET Framework 2.0 3 November 30th, 2008 11:51 AM
sending email from asp.net/sqlserver on a particul hepsy.i ASP.NET 1.0 and 1.1 Professional 1 July 11th, 2008 08:09 AM
Sending Email with ASP.NET stu9820 ASP.NET 1.0 and 1.1 Basics 19 February 9th, 2007 03:50 AM
sending email through asp.net amol.mahajan85@gmail.com .NET Framework 1.x 2 October 19th, 2006 12:13 PM
Error in sending email from asp.net asif_sharif ASP.NET 1.0 and 1.1 Professional 4 January 7th, 2006 05:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.