Skip to content

Problem on sensing Email using smtp, c# - urgent,pls help

Poli Timisoara

Asked Jul 13, 2006, 3:31 AM EDT2 answers
Share
LinkedInX
Hi,

I am a newby in c#. I want to send an email using smtp. I got the error "type or namespace name smtp could not be found". I wanted then to add the line: using System.Web.Mail but thisnamespace is not recognized (the part with .Mail is not known). Should I add some reference or what should I do in order for my tool to be able to send an email?

Thank you very much!
Serban

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    This is a sample example. U need admin rights to send the mail.

    <%@ Page Language="C#" %>
    <%@ Import Namespace="System.Web.Mail" %>



    Email Sent!




    <%@ Page Language="C#" %>

    0
  • 0
    this might be of some help http://www.c-sharpcorner.com/1/send_mail.asp
    0