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

Jonax August 13th, 2007 05:52 AM

Google is your friend...


planoie August 13th, 2007 05:59 AM



Bashu August 13th, 2007 09:49 PM


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


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.Subject = txtSubject.Text;
            MyMessage.Body = txtBody.Text;

            SmtpClient emailClient = new SmtpClient(txtsmtpServer.Text); systemIDAddress(
            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...


Jonax August 14th, 2007 03:29 AM

Hi again...
Try logging the SMTP-session:

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.