C# 클래스 nMail.Smtp

SMTP ���[�����M�N���X
상속: IDisposable
파일 보기 프로젝트 열기: hijirichan/AkaneMail 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_bcc string
_body string
_cc string
_cert_name string
_connect_flag bool
_err int
_filename string
_filename_list string[]
_flag int
_from string
_header string
_host string
_id string
_mode int
_password string
_port int
_socket IntPtr
_ssl int
_subject string
_temp byte[]
_to string

공개 메소드들

메소드 설명
Authenticate ( ) : void

SMTP AUTH �F��

�ꎞ�x�~�@�\��g���ꍇ��Connect�̌�ɌĂяo���܂��B

Authenticate ( string id_str, string pass_str, int mode ) : void

SMTP AUTH �F��

Close ( ) : void

SMTP �T�[�o�Ƃ̐ڑ��I��

Connect ( ) : void

SMTP �T�[�o�ɐڑ����܂��B

SMTP AUTH ����шꎞ�x�~�@�\��g���ꍇ�Ɏg�p���܂��B

Connect ( int port_no ) : void

SMTP �T�[�o�ɐڑ�

SMTP AUTH ����шꎞ�x�~�@�\��g���ꍇ�Ɏg�p���܂��B

Connect ( string host_name ) : void

SMTP �T�[�o�ɐڑ�

SMTP AUTH ����шꎞ�x�~�@�\��g���ꍇ�Ɏg�p���܂��B

Connect ( string host_name, int port_no ) : void

SMTP �T�[�o�ɐڑ�

SMTP AUTH ����шꎞ�x�~�@�\��g���ꍇ�Ɏg�p���܂��B

Dispose ( ) : void

Smtp�ɂ���Ďg�p����Ă��邷�ׂẴ��\�[�X�������܂��B

SendMail ( ) : void

���[���𑗐M���܂��B

�ꎞ�x�~�@�\�̓��ڈȍ~�̌Ăяo���Ŏg�p���܂��B

SendMail ( string to_str, string from_str, string subject_str, string body_str ) : void

���[���𑗐M���܂��B

to_str�p�����[�^�Ń��[���̈����w�肵�܂��B from_str�p�����[�^�ō��o�l��w�肵�܂��B subject_str�p�����[�^�Ō�����w�肵�܂��B body_str�p�����[�^�Ŗ{����w�肵�܂��B

CC ��w�肵�����ꍇ�ACc�Ɏw�肵�Ă����܂��B

BCC ��w�肵�����ꍇ�ABcc�Ɏw�肵�Ă����܂��B

�t�@�C����Y�t�������ꍇ�AFileName�Ɏw�肵�Ă����܂��B

Smtp ( ) : System

Smtp�N���X�̐V�K�C���X�^���X����������܂��B

Smtp ( string host_name ) : System

Smtp�N���X�̐V�K�C���X�^���X����������܂��B

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Smtp�ɂ���Ďg�p����Ă��邷�ׂẴ��\�[�X�������܂��B

Init ( ) : void

�����������ł��B

비공개 메소드들

메소드 설명
SmtpAuthenticate ( IntPtr Socket, string HostName, string Id, string Pass, int Mode ) : int
SmtpClose ( IntPtr Socket ) : int
SmtpConnect ( string Host ) : IntPtr
SmtpConnectPortNo ( string Host, int PortNo ) : IntPtr
SmtpConnectSsl ( string Host, int Port, int Flag, string Name ) : IntPtr
SmtpSendMailEx ( IntPtr Socket, string To, string Cc, string Bcc, string From, string Subject, String Body, String Header, String Path, byte Temp, int Flag ) : int
SmtpSendMailPortNo ( String HostName, String To, String Cc, String Bcc, String From, String Subject, String Body, String Header, String Path, int Flag, int PortNo ) : int
SmtpSendMailSsl ( String HostName, String To, String Cc, String Bcc, String From, String Subject, String Body, String Header, String Path, int Flag, int PortNo, int SslFlag, String Name ) : int

메소드 상세

Authenticate() 공개 메소드

SMTP AUTH �F��
�ꎞ�x�~�@�\��g���ꍇ��Connect�̌�ɌĂяo���܂��B
/// �ڑ���Ԃł͂���܂���B���������Ă��Ȃ����A�Ăяo���Ă��܂���B���̃��\�b�h��Ăяo���ꍇ��(��Ăяo���K�v������܂��B�B /// /// �T�[�o�Ƃ̌�M���ɃG���[���������܂����B /// �ɃG���[���b�Z�[�W�A /// �ɃG���[�R�[�h������܂��B ///
public Authenticate ( ) : void
리턴 void

Authenticate() 공개 메소드

SMTP AUTH �F��
/// �ڑ���Ԃł͂���܂���B���������Ă��Ȃ����A�Ăяo���Ă��܂���B���̃��\�b�h��Ăяo���ꍇ��(��Ăяo���K�v������܂��B�B /// /// �T�[�o�Ƃ̌�M���ɃG���[���������܂����B /// �ɃG���[���b�Z�[�W�A /// �ɃG���[�R�[�h������܂��B ///
public Authenticate ( string id_str, string pass_str, int mode ) : void
id_str string ���[�U�[ ID
pass_str string �p�X���[�h
mode int �F�،`��
리턴 void

Close() 공개 메소드

SMTP �T�[�o�Ƃ̐ڑ��I��
public Close ( ) : void
리턴 void

Connect() 공개 메소드

SMTP �T�[�o�ɐڑ����܂��B
SMTP AUTH ����шꎞ�x�~�@�\��g���ꍇ�Ɏg�p���܂��B
/// �T�[�o���ɕ����񂪓����Ă��܂���B /// /// �|�[�g�ԍ�������������܂���B /// /// �T�[�o�Ƃ̌�M���ɃG���[���������܂����B /// �ɃG���[���b�Z�[�W�A /// �ɃG���[�R�[�h������܂��B ///
public Connect ( ) : void
리턴 void

Connect() 공개 메소드

SMTP �T�[�o�ɐڑ�
SMTP AUTH ����шꎞ�x�~�@�\��g���ꍇ�Ɏg�p���܂��B
/// �T�[�o���ɕ����񂪓����Ă��܂���B /// /// �|�[�g�ԍ�������������܂���B /// /// �T�[�o�Ƃ̌�M���ɃG���[���������܂����B /// �ɃG���[���b�Z�[�W�A /// �ɃG���[�R�[�h������܂��B ///
public Connect ( int port_no ) : void
port_no int �|�[�g�ԍ�
리턴 void

Connect() 공개 메소드

SMTP �T�[�o�ɐڑ�
SMTP AUTH ����шꎞ�x�~�@�\��g���ꍇ�Ɏg�p���܂��B
/// �T�[�o���ɕ����񂪓����Ă��܂���B /// /// �|�[�g�ԍ�������������܂���B /// /// �T�[�o�Ƃ̌�M���ɃG���[���������܂����B /// �ɃG���[���b�Z�[�W�A /// �ɃG���[�R�[�h������܂��B ///
public Connect ( string host_name ) : void
host_name string SMTP �T�[�o��
리턴 void

Connect() 공개 메소드

SMTP �T�[�o�ɐڑ�
SMTP AUTH ����шꎞ�x�~�@�\��g���ꍇ�Ɏg�p���܂��B
/// �T�[�o���ɕ����񂪓����Ă��܂���B /// /// �|�[�g�ԍ�������������܂���B /// /// �T�[�o�Ƃ̌�M���ɃG���[���������܂����B /// �ɃG���[���b�Z�[�W�A /// �ɃG���[�R�[�h������܂��B ///
public Connect ( string host_name, int port_no ) : void
host_name string SMTP �T�[�o��
port_no int �|�[�g�ԍ�
리턴 void

Dispose() 공개 메소드

Smtp�ɂ���Ďg�p����Ă��邷�ׂẴ��\�[�X�������܂��B
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Smtp�ɂ���Ďg�p����Ă��邷�ׂẴ��\�[�X�������܂��B
protected Dispose ( bool disposing ) : void
disposing bool /// �}�l�[�W���\�[�X�ƃA���}�l�[�W���\�[�X�̗�����������ꍇ��true�B /// �A���}�l�[�W���\�[�X������������ꍇ��false�B ///
리턴 void

Init() 보호된 메소드

�����������ł��B
protected Init ( ) : void
리턴 void

SendMail() 공개 메소드

���[���𑗐M���܂��B
�ꎞ�x�~�@�\�̓��ڈȍ~�̌Ăяo���Ŏg�p���܂��B
/// �Őݒ肳��Ă���t�@�C�������݂��܂���B /// /// �T�[�o�Ƃ̌�M���ɃG���[���������܂����B /// �ɃG���[���b�Z�[�W�A /// �ɃG���[�R�[�h������܂��B ///
public SendMail ( ) : void
리턴 void

SendMail() 공개 메소드

���[���𑗐M���܂��B
to_str�p�����[�^�Ń��[���̈����w�肵�܂��B from_str�p�����[�^�ō��o�l��w�肵�܂��B subject_str�p�����[�^�Ō�����w�肵�܂��B body_str�p�����[�^�Ŗ{����w�肵�܂��B

CC ��w�肵�����ꍇ�ACc�Ɏw�肵�Ă����܂��B

BCC ��w�肵�����ꍇ�ABcc�Ɏw�肵�Ă����܂��B

�t�@�C����Y�t�������ꍇ�AFileName�Ɏw�肵�Ă����܂��B

/// �Őݒ肳��Ă���t�@�C�������݂��܂���B /// /// �T�[�o�Ƃ̌�M���ɃG���[���������܂����B /// �ɃG���[���b�Z�[�W�A /// �ɃG���[�R�[�h������܂��B ///
public SendMail ( string to_str, string from_str, string subject_str, string body_str ) : void
to_str string ����
from_str string ���o�l
subject_str string ����
body_str string �{��
리턴 void

Smtp() 공개 메소드

Smtp�N���X�̐V�K�C���X�^���X����������܂��B
public Smtp ( ) : System
리턴 System

Smtp() 공개 메소드

Smtp�N���X�̐V�K�C���X�^���X����������܂��B
public Smtp ( string host_name ) : System
host_name string SMTP �T�[�o��
리턴 System

프로퍼티 상세

_bcc 보호되어 있는 프로퍼티

���[���� BCC �ł��B
protected string _bcc
리턴 string

_body 보호되어 있는 프로퍼티

���[���̖{���ł��B
protected string _body
리턴 string

_cc 보호되어 있는 프로퍼티

���[���� CC �ł��B
protected string _cc
리턴 string

_cert_name 보호되어 있는 프로퍼티

SSL �N���C�A���g�ؖ������ł��B
protected string _cert_name
리턴 string

_connect_flag 보호되어 있는 프로퍼티

Connect() ��g�������ǂ����̃t���O�ł��B
protected bool _connect_flag
리턴 bool

_err 보호되어 있는 프로퍼티

�G���[�ԍ��ł��B
protected int _err
리턴 int

_filename 보호되어 있는 프로퍼티

���[���ɓY�t����t�@�C�����ł��B
protected string _filename
리턴 string

_filename_list 보호되어 있는 프로퍼티

�Y�t�t�@�C�����̃��X�g�ł��B
protected string[] _filename_list
리턴 string[]

_flag 보호되어 있는 프로퍼티

���[�����M�g���@�\�̎w��ł��B
protected int _flag
리턴 int

_from 보호되어 있는 프로퍼티

���[���̍��o�l�ł��B
protected string _from
리턴 string

_header 보호되어 있는 프로퍼티

���[���̒lj��w�b�_�ł��B
protected string _header
리턴 string

_host 보호되어 있는 프로퍼티

SMTP �T�[�o���ł��B
protected string _host
리턴 string

_id 보호되어 있는 프로퍼티

SMTP AUTH ���[�U�[���ł��B
protected string _id
리턴 string

_mode 보호되어 있는 프로퍼티

SMTP AUTH �̔F�ؕ��@�ł��B
protected int _mode
리턴 int

_password 보호되어 있는 프로퍼티

SMTP AUTH �p�X���[�h�ł��B
protected string _password
리턴 string

_port 보호되어 있는 프로퍼티

SMTP �|�[�g�ԍ��ł��B
protected int _port
리턴 int

_socket 보호되어 있는 프로퍼티

�\�P�b�g�n���h���ł��B
protected IntPtr _socket
리턴 IntPtr

_ssl 보호되어 있는 프로퍼티

SSL �ݒ�t���O�ł��B
protected int _ssl
리턴 int

_subject 보호되어 있는 프로퍼티

���[���̌����ł��B
protected string _subject
리턴 string

_temp 보호되어 있는 프로퍼티

�g���@�\�p�o�b�t�@�ł��B
protected byte[] _temp
리턴 byte[]

_to 보호되어 있는 프로퍼티

���[���̈���ł��B
protected string _to
리턴 string