HOW TO: Send email using System.Net.Mail

Rate It (22)

Last post 08-01-2007 8:01 AM by Johnny be good. 173 replies.

Sort Posts:

  • Re: HOW TO: Send email using System.Net.Mail

    07-19-2007, 6:34 AM
    Locked
    • Loading...
    • anilperugu
    • Joined on 12-21-2006, 12:50 PM
    • Hyderabad
    • Posts 48

    Nice one,

    but iam getting mail to junk folder what should i do, so that i get mail to inbox

    http://dotnet-firstside.blogspot.com
    http://dotnet-interviews.blogspot.com/

  • Re: HOW TO: Send email using System.Net.Mail

    07-19-2007, 6:34 AM
    Locked
    • Loading...
    • anilperugu
    • Joined on 12-21-2006, 12:50 PM
    • Hyderabad
    • Posts 48

    Nice one,

    but iam getting mail to junk folder what should i do, so that i get mail to inbox?

    http://dotnet-firstside.blogspot.com
    http://dotnet-interviews.blogspot.com/

  • Re: HOW TO: Send email using System.Net.Mail

    07-19-2007, 7:03 AM
    Locked
    • Loading...
    • KBNSarma
    • Joined on 12-23-2005, 9:13 AM
    • Hyderabad, AP, India
    • Posts 67

    Getting mail to your Junk Mail Folder is nothing to do with your programme.  That means it is working perfectly alright.

    Diversion of mails to Junk Folder is the feature of the respective mail servie providers such as Yahoo, Rediffmail, Hotmail etc.  At the receiving end basing mainly on the subject matter and number of mail Addresses you have placed against To / cc / bcc addresses, it will divert to Junk Mail.  

    Change your subject matter and try again with less number of mail addresses.    Remove terms such as code, money, earn etc which are normally used in spam mails.

    All the Best

    K.B.Narayana Sarma

  • Re: HOW TO: Send email using System.Net.Mail

    07-19-2007, 8:47 AM
    Locked
    • Loading...
    • anilperugu
    • Joined on 12-21-2006, 12:50 PM
    • Hyderabad
    • Posts 48

    yes thats correct

    i tried removing date from the subject now mail comes to inbox.

    tanx.

    http://dotnet-firstside.blogspot.com
    http://dotnet-interviews.blogspot.com/

  • Re: HOW TO: Send email using System.Net.Mail

    07-19-2007, 11:48 PM
    Locked
    • Loading...
    • KBNSarma
    • Joined on 12-23-2005, 9:13 AM
    • Hyderabad, AP, India
    • Posts 67

    Dear All,

    I am attaching herewith a file named sendmail.zip.  This is an official release of Microsoft with total mail options including activating Services if Services are not activated in the system.    This is very useful for everybody who wants to send mail through .NET 2.0 Version.   Please download and use happily.

    Regards,

     K.B. Narayana Sarma

    Note:   Since attachment facility is not there please click this link to download.  In case of problem, send a mail to me at kbnsarma@yahoo.com so that I will send by mail.    

  • Re: HOW TO: Send email using System.Net.Mail

    07-20-2007, 10:06 AM
    Locked
    • Loading...
    • ojm37
    • Joined on 07-30-2003, 7:31 PM
    • AZ
    • Posts 523

    KBNSarma:

    Dear All,

    I am attaching herewith a file named sendmail.zip.  This is an official release of Microsoft with total mail options including activating Services if Services are not activated in the system.    This is very useful for everybody who wants to send mail through .NET 2.0 Version.   Please download and use happily.

    Regards,

     K.B. Narayana Sarma

    Note:   Since attachment facility is not there please click this link to download.  In case of problem, send a mail to me at kbnsarma@yahoo.com so that I will send by mail.    

    Didn't work for me. I do not have SMTP Services running on the local box (and I don't want them running there): I want to use my linux mailserver on another box. I keep getting authorization failures. How do I specify the username and login for a linux sendmail mailserver?  The username/password/domain that system.net.mail use seem to be Microsoft specific network credentials.

    Owen
  • Re: HOW TO: Send email using System.Net.Mail

    07-22-2007, 3:23 AM
    Locked
    • Loading...
    • KBNSarma
    • Joined on 12-23-2005, 9:13 AM
    • Hyderabad, AP, India
    • Posts 67

    No Idea.  I am not familiar with Linux and am using this successfully in Windows environment for ASP.NET 2.0 Version.  Sorry.

    K.B. Narayana Sarma

  • Re: HOW TO: Send email using System.Net.Mail

    07-23-2007, 3:36 AM
    Locked
    • Loading...
    • JDMils5
    • Joined on 07-23-2007, 7:33 AM
    • Posts 1

    I've implemented this code into my VB.Net 2005 application. I intend to deploy my app to many workstations on my network so that they may email me by clicking a button on my application. How do I set the From address to be dynamic, ie. to automatically pickup the current user's email address (from Outlook?)?

     

  • Re: HOW TO: Send email using System.Net.Mail

    08-01-2007, 8:01 AM
    Locked

    Hallo all

    I hope that you can help me, cos I have looked everywhere and tried everything I could think of so I got this link from Microsoft South Africa...

    Application background:

    I am righting (in C#) a electronic filing system that works via a windows service and checks a POP3 server every 60 seconds for mail and then by reading the subject line it either stores or retrieves documentation. EG. File policy (1234) or Retrieve Policy (1234)... All works great, but when they retrieve documentation I must wrap the saved email body with its attachments as one attachment   (Content-Type: message/rfc822) to my outgoing email for there can be one or many emails that was saved to that reference number, and when one adds all the bodies and attachments as attachments it is very confusing for the end users..(this is Africa you know...)

    So I want to be able to add children to my parent email and the children must be attachments...

    Even if you have some source code that builds the raw email in mime it will help me because I studied the raw Mime up and know how it works by now but can not get it to work as I only get a empty mail on the other side when I build it up as raw Mime... (I can send you my code if you need to look at it)

    I thank you in advance for taking the time to look at my request!

    Kind regards

Page 12 of 12 (174 items) « First ... < Previous 8 9 10 11 12