ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

ASP.NET.in.a.Nutshell.Second.Edition [Electronic resources] - نسخه متنی

G. andrew Duthie; matthew Macdonald

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید







SmtpMail

System.Web.Mail (system.web.dll)class

The SmtpMail class represents the SMTP Server. It
includes a static Send( ) method that you can use
to send email programmatically. There are two versions of the
Send( ) method: one accepts a
MailMessage object, and the other provides a quick
and simple way to send an email message without creating a
MailMessage instance (by specifying the
sender''s email address, the recipient, the subject,
and the body text as string parameters). Before sending a message,
set the static SmtpServer with the name of IP
address of the mail server (use
"localhost" for the current
computer).

public class 

SmtpMail {
// Public Static Properties
public static string

SmtpServer {set; get; }
// Public Static Methods
public static void

Send (MailMessage

message );
public static void

Send (string

from , string

to , string

subject , string

messageText );
}




/ 873