p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   C# 2005 (http://p2p.wrox.com/forumdisplay.php?f=138)
-   -   How to Sending an email in asp.net 2.0 using C# (http://p2p.wrox.com/showthread.php?t=61079)

Bashu August 13th, 2007 03:35 AM

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...

Jonax August 13th, 2007 05:52 AM

Google is your friend...

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


planoie August 13th, 2007 05:59 AM

http://www.systemnetmail.com/

-Peter

Bashu August 13th, 2007 09:49 PM

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...




Jonax August 14th, 2007 03:29 AM

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



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

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