.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

Need help with mailing in asp.net c#

Posted By:      Posted Date: September 19, 2010    Points: 0   Category :ASP.Net


i m using the code :

public void single_mail()
        SmtpClient client = new SmtpClient();
        System.Net.NetworkCredential credentials = new System.Net.NetworkCredential("bhushanpratap@gmail.com", "password");
        client.UseDefaultCredentials = false;
        client.EnableSsl = true;
        client.Host = "smtp.gmail.com";

        client.Port = 587;

        client.Credentials = credentials;
        MailMessage msg = new MailMessage();

        msg.From = new MailAddress("bhushanpratap@gmail.com");
        msg.To.Add(new MailAddress("bhushan@nimtweb.org"));
        msg.Subject = "Hi This is a test mail";
        msg.IsBodyHtml = true;

        msg.Body = string.Format(&quo

View Complete Post

More Related Resource Links

mail not received frm asp.net mailing module

i am sending mail thr' asp.net using System.Net.Mail i am not getting any error msg but nor am i getting the mailsi hae sent it to yahoo, gmail & rediff ids but mail is not recivedhow do i check out if there is any prblm on my end code or why its not been sent   i have used Catch smtpExc As System.Net.Mail.SmtpException for checking out any exeption

E-Mailing Attachments from the Document Center

Good Morning, All. We have implemented a Document Center Site in MOSS 2007.  We have created 5 custom columns of metadata, and as seems to be recommended by many, many experts, we are not creating any folders within the document library.  We've migrated about 1,500 documents to the Document Center so far, and our goal is that eventually, any document that is shared between multiple teams will wind up here. The column filters and views work great for narrowing the list to manageable sets of documents, and the Search Center Site is fantastic for quickly locating documents that we can't seem to find via filters and views.  ...all good so far, right? The major challenge occurs when we are attempting to supply customers with one or more documents from the Document Center via an e-mail attachment.  The filters, views, and search feature are obviously unavailable within the "Insert File" dialog box in Microsoft Outlook, so we are forced to search manually through 1,500 documents to find what we are looking for. An alternative is to locate the desired document via the filters/views/search in SharePoint, right-click and "Copy Shortcut" and paste the path into the "Insert File" dialog box.  However, this method becomes unreasonable as soon as we need to attach more than one document to an e-mail message (especially

Is it possible to stop a subscription from mailing if there is no data contained?


I have got a report that mails everyday a set of raw data, I only have to mail the report if there is data in the report, is it possible to have a check inside the subscription to only email if the report has data?


I am running a SSRS 2005 Reporting Enviroment.\

Thanks in Advance


mailing labels in SQL Server Reporting Services


I am creating a report to be used to print mailing labels.  Size 1" x 2 5/8" (3 columns of 10 labels).  I seem to have everything but the vertical spacing working properly. I have used a rectangle set to the size of the labels which contains a list box containing text boxes containing expressions to pull in the fields.   Some of the street addresses are two lines with the majority being only one line. 


I have joined the two fields containing the street addresses and inserted a new line command so each field will print on its own line but yet be contained within the same text box.   Everything except the text box containing the street addresses are set to not increase or decrease.  My problem is that on the pages of the report where labels vary between the one and two line street addresses the labels tend to creep down which in some cases causes data to be printed over two labels.  Any ideas on what I can do to format these to print properly?



SharePoint Mailing Queue


Is there any way to manage or see at least outcoming sharepoint letters?

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend