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
Problem on sensing Email using smtp, c# - urgent,pls help
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
mallikarjun prasad17 pointsPosted Jul 13, 2006, 4:23 AM EDT
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#" %>
uz_jaswal5 pointsPosted Jul 21, 2006, 4:57 AM EDT