Клубове Дир.бг
powered by diri.bg
търси в Клубове diri.bg Разширено търсене

Вход
Име
Парола

Клубове
Dir.bg
Взаимопомощ
Горещи теми
Компютри и Интернет
Контакти
Култура и изкуство
Мнения
Наука
Политика, Свят
Спорт
Техника
Градове
Религия и мистика
Фен клубове
Хоби, Развлечения
Общества
Я, архивите са живи
Клубове Дирене Регистрация Кой е тук Въпроси Списък Купувам / Продавам 17:00 30.06.24 
Клубове/ Компютри и Интернет / ASP Пълен преглед*
Информация за клуба
Тема Мързи тееееееее ! [re: Mave_rick]
Автор jamie (Bad to the bone)
Публикувано12.09.03 21:25  








'Sending a text email using a remote server

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.Sender = "me@my.com"
objMessage.To = "test@paulsadowski.com"
objMessage.TextBody = "This is some sample message text."

'==This section provides the configuration information for the remote SMTP server.
'==Normally you will only change the server name or IP.

objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.myserver.com"

'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

objMessage.Configuration.Fields.Update

'==End remote SMTP server configuration section==

objMessage.Send



--------------------------------------------------------------------------------

'Sending a text email using authentication against a remote SMTP server

Const cdoSendUsingPickup = 1 'Send message using the local SMTP service pickup directory.
Const cdoSendUsingPort = 2 'Send the message using the network (SMTP over the network).

Const cdoAnonymous = 0 'Do not authenticate
Const cdoBasic = 1 'basic (clear-text) authentication
Const cdoNTLM = 2 'NTLM

Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = "Example CDO Message"
objMessage.Sender = """Me"" <me@my.com>"
objMessage.To = "test@paulsadowski.com"
objMessage.TextBody = "This is some sample message text.." & vbCRLF & "It was sent using SMTP authentication."

'==This section provides the configuration information for the remote SMTP server.

objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.your.com"

'Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/authenticate") = cdoBasic

'Your UserID on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "youruserid"

'Your password on the SMTP server
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "yourpassword"

'Server port (typically 25)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

'Use SSL for the connection (False or True)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False

'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
objMessage.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60

objMessage.Configuration.Fields.Update

'==End remote SMTP server configuration section==

objMessage.Send

UB40 !

Цялата тема
ТемаАвторПубликувано
* send e-mail asentchernaev   05.09.03 23:44
. * Re: send e-mail psy   07.09.03 13:33
. * Re: send e-mail asentchernaev   10.09.03 22:58
. * Re: send e-mail fiffy   10.09.03 23:00
. * Re: send e-mail asentchernaev   12.09.03 00:04
. * Абе пич jamie   12.09.03 11:33
. * Re: Абе пич Mave_rick   12.09.03 15:00
. * Мързи тееееееее ! jamie   12.09.03 21:25
. * Мързи мееееееее ! Mave_rick   13.09.03 10:39
. * Re: Мързи мееееееее ! X-men   16.09.03 14:48
. * Re: Мързи мееееееее ! Mave_rick   17.09.03 00:59
. * Е СПОДЕЛИ ГО БЕЕ ! jamie   17.09.03 22:24
. * СПОДЕЛЯМ ГО БЕЕ ! Mave_rick   18.09.03 00:45
. * Ами jamie   18.09.03 09:54
. * Re: Ами Mave_rick   19.09.03 01:29
. * Елементарно Уотсън ! jamie   19.09.03 09:46
. * Re: Елементарно Уотсън ! Mave_rick   21.09.03 00:59
. * Re: Елементарно Уотсън ! jamie   21.09.03 20:32
. * Re: Елементарно Уотсън ! Mave_rick   27.09.03 01:51
. * Точно, jamie   27.09.03 10:52
. * Re: Точно, Mave_rick   28.09.03 01:22
. * Проблема jamie   28.09.03 10:39
. * Re: Проблема Mave_rick   04.10.03 00:57
. * А за кеша, jamie   21.09.03 20:35
. * Re: А за кеша, Mave_rick   23.09.03 00:47
. * Работи jamie   23.09.03 20:30
. * Re: Работи Mave_rick   27.09.03 00:47
. * Това jamie   27.09.03 10:55
. * Re: Това Mave_rick   28.09.03 01:00
. * Бринкстера са jamie   28.09.03 10:33
. * Re: Бринкстера са Mave_rick   04.10.03 01:02
. * Re: &#1057;&#1055;&#1054;&#1044;&#1045;&#1051;&#1071;&#1052; &#1043;&#1054; &#1041;&#1045;&#1045; ! ASENTCHERNAEV   22.09.03 13:12
. * Re: &#1057;&#1055;&#1054;&#1044;&#1045;&#1051;&#1071;&#1052; &#1043;&#1054; &#1041;&#1045;&#1045; ! Mave_rick   25.09.03 00:15
. * Re: &#1057;&#1055;&#1054;&#1044;&#1045;&#1051;&#1071;&#1052; &#1043;&#1054; &#1041;&#1045;&#1045; ! asentchernaev   04.10.03 18:14
. * Ами Mave_rick   06.10.03 01:33
. * Re: send e-mail Mave_rick   12.09.03 08:33
. * Re: send e-mail idd   06.11.03 15:02
Клуб :  


Clubs.dir.bg е форум за дискусии. Dir.bg не носи отговорност за съдържанието и достоверността на публикуваните в дискусиите материали.

Никаква част от съдържанието на тази страница не може да бъде репродуцирана, записвана или предавана под каквато и да е форма или по какъвто и да е повод без писменото съгласие на Dir.bg
За Забележки, коментари и предложения ползвайте формата за Обратна връзка | Мобилна версия | Потребителско споразумение
© 2006-2024 Dir.bg Всички права запазени.