Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 13th, 2007, 03:35 AM
Registered User
 
Join Date: Aug 2007
Location: , , .
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...
  #2 (permalink)  
Old August 13th, 2007, 05:52 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , Denmark.
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

  #3 (permalink)  
Old August 13th, 2007, 05:59 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

http://www.systemnetmail.com/

-Peter
  #4 (permalink)  
Old August 13th, 2007, 09:49 PM
Registered User
 
Join Date: Aug 2007
Location: , , .
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...



  #5 (permalink)  
Old August 14th, 2007, 03:29 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , Denmark.
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

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:28 PM.


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