China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 22:33
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Batch file for sending emails View 14,191 Replies 37
Floor 16 Posted 2007-03-17 22:46 ·  中国 安徽 马鞍山 电信
中级用户
★★
Credits 493
Posts 228
Joined 2007-02-16 00:38
19-year member
UID 79596
Gender Male
From 安徽
Status Offline
vkill LZ, why didn't my experiment succeed?

F:\>smtp.bat
Checking network
Please enter email username: eHljb29yZGluYXRl
Must ensure it's the same username as before base64 encoding
Please enter email username (non-base64 encoded): xycoordinate
Please enter email password: Base64 encoding
Format is xxx@xxx.xxx For example: test@test.com
Please enter recipient: xycoordinate@126.com
Please enter email subject: test
Please enter email body: abcd
Obtaining IP of smtp.163.com
IP obtained
Sending email
(UNKNOWN) 25 (?): connection refused
sent 0, rcvd 0: NOTSOCK

Email sent, press any key to start sending again


Email username and password are both calculated using the "0401" post!!!
http://www.cn-dos.net/forum/viewthread.php?tid=27203&fpage=1&highlight=

[ Last edited by xycoordinate on 2007-3-17 at 09:59 AM ]
Floor 17 Posted 2007-05-28 10:31
新手上路
Credits 4
Posts 2
Joined 2007-02-10 02:28
19-year member
UID 79104
Gender Male
Status Offline
I don't understand, it's so profound~
Floor 18 Posted 2007-11-06 19:46 ·  中国 香港 腾讯云
初级用户
★★
Credits 172
Posts 63
Joined 2007-11-03 10:37
18-year member
UID 101564
Gender Male
Status Offline
Master vkill, please take a look: I want to implement the function of receiving Yahoo mail. The operation is as follows:

I entered the following command in the command line:
telnet pop.mail.yahoo.com 110
After a while, it displayed:
+OK hello from popgate on pop102.plus.mail.mud.yahoo.com 2.38.1
Later, no matter what I typed, it displayed the following information:
-ERR popgate unknown command
Floor 19 Posted 2007-11-06 19:55 ·  中国 甘肃 兰州 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Originally posted by hello547rf44 at 2007-11-6 19:46:
Master vkill, please see: I want to implement the function of receiving Yahoo emails. The operation is as follows:

I entered the following command in the command line:
telnet pop.mail.yahoo.com 110
After a while, it displayed:
+OK hello from popgate ...

++OK hello from popgate on pop101.plus.mail.mud.yahoo.com 2.38.1
user he200377+OK password required.
pass *****
+OK maildrop ready, 85 messages (627109 octets) (25955179 3758096384)
quit
+OK server signing off.


Lost connection with the host.

C:\>telnet pop.mail.yahoo.com 110
Please make sure your input is correct

[ Last edited by vkill on 2007-11-6 at 08:01 PM ]
Floor 20 Posted 2007-11-06 20:02 ·  中国 香港 腾讯云
初级用户
★★
Credits 172
Posts 63
Joined 2007-11-03 10:37
18-year member
UID 101564
Gender Male
Status Offline
After entering CMD after the command telnet pop.mail.yahoo.com 110, the screen displays +OK hello from popgate on pop103.plus.mail.mud.yahoo.com 2.38.1 and then there is no response. The cursor is still blinking and characters can be entered, but all are -ERR popgate unknown command. The computer seems to slow down suddenly.
Floor 21 Posted 2007-11-06 20:04 ·  中国 香港 腾讯云
初级用户
★★
Credits 172
Posts 63
Joined 2007-11-03 10:37
18-year member
UID 101564
Gender Male
Status Offline
Attachments
1.gif
Floor 22 Posted 2007-11-06 20:06 ·  中国 香港 腾讯云
初级用户
★★
Credits 172
Posts 63
Joined 2007-11-03 10:37
18-year member
UID 101564
Gender Male
Status Offline
Could this is probably related to the fact that I'm using a streamlined version of the system, maybe a certain component has been deleted.
Floor 23 Posted 2007-11-07 09:27 ·  中国 浙江 杭州 阿里云
初级用户
★★
Credits 172
Posts 63
Joined 2007-11-03 10:37
18-year member
UID 101564
Gender Male
Status Offline
Top![ Last edited by hello547rf44 on 2007-11-7 at 09:29 AM ]
Floor 24 Posted 2007-11-07 22:01 ·  中国 甘肃 定西 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
It is estimated that it is a problem with your system. It is best not to simplify the system.
Floor 25 Posted 2007-11-11 03:30 ·  中国 广东 深圳 电信
初级用户
★★
Credits 167
Posts 95
Joined 2007-05-06 09:19
19-year member
UID 87628
Gender Male
Status Offline
Floor 26 Posted 2008-03-24 10:19 ·  中国 上海 长宁区 电信
新手上路
Credits 2
Posts 1
Joined 2008-03-24 00:25
18-year member
UID 113823
Gender Male
Status Offline
Floor 27 Posted 2008-04-03 18:34 ·  中国 广西 防城港 电信
中级用户
★★
海浪人生
Credits 206
Posts 103
Joined 2007-07-04 00:18
18-year member
UID 93068
Gender Male
Status Offline
Floor 28 Posted 2008-08-28 13:16 ·  中国 江苏 苏州 电信
新手上路
Credits 2
Posts 1
Joined 2006-05-31 10:53
20-year member
UID 56305
Status Offline
Floor 29 Posted 2008-09-03 00:37 ·  中国 广东 东莞 电信
中级用户
★★
Credits 461
Posts 243
Joined 2007-10-14 16:56
18-year member
UID 99730
Gender Male
Status Offline
After reading this post, I still haven't learned how to send emails with batch processing.
Floor 30 Posted 2008-09-03 00:43 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
VBS can:

Set cdo = CreateObject("CDO.Message")
strCfg = "http://schemas.microsoft.com/cdo/configuration/"
With cdo
.Sender = "Sender's email address"
.From = "Sender's email address"
.To = "Recipient's email address"
.Fields("urn:schemas:mailheader:X-Priority") = 1
.Fields.Update
.Subject = "Email subject"
.TextBody = "Email content"
.Configuration(strCfg & "SendUsing") = 2
.Configuration(strCfg & "smtpserver") = "SMTP server address for sending"
.Configuration.Fields.Update
.Send
End With
msgbox "Sent successfully"
Forum Jump: