中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-10 16:16
47,811 topics / 349,897 posts / today 0 new / 48,255 members
DOS批处理 & 脚本技术(批处理室) » Batch processing automatically logs in to the email
Printable Version  9,273 / 48
Floor1 26933062 Posted 2007-05-16 03:23
银牌会员 Posts 879 Credits 2,268
Can batch processing automatically log in to an email? Take 163.com as an example. It requires automatically entering the username and password.
Floor2 bjsh Posted 2007-05-16 08:56
银牌会员 Posts 621 Credits 2,000
It is okay under the command line;
Reference:
vkil's p-mailsend.cmd v 3.8 (send emails from the command line, mass mailing\multiple attachments\anonymous)
http://www.cn-dos.net/forum/viewthread.php?tid=29873&fpage=2

On the graphical interface; you need to use scripts such as vbs or AutoIt3 to handle;
You can search in the forum
Floor3 chenall Posted 2007-05-16 10:26
银牌会员 Posts 469 Credits 1,276 From 福建泉州
Try the following batch processing.



  1. @echo off
  2. set "username=Username"
  3. set "password=Password"
  4. start "Logging in to 163 Email" "https://reg.163.com/logins.jsp?username=%username%&password=%password%&url=http://fm163.163.com/coremail/fcg/ntesdoor2"
Posted by chenall on: 2007-05-16 10:23
Floor4 26933062 Posted 2007-05-16 12:13
银牌会员 Posts 879 Credits 2,268
chenall The expert's method is very good. I want to ask how it is implemented? Is it through the registry? It seems better than the VBS version. The VBS one can't open other windows during login, but this one seems okay, is that right?
Also, may I ask if this sentence can be written in several lines? It's too long in one line.
start "163邮箱登录中" "https://reg.163.com/logins.jsp?username=%var%&password=%num%&url=http://fm163.163.com/coremail/fcg/ntesdoor2"
Floor5 bjsh Posted 2007-05-16 12:47
银牌会员 Posts 621 Credits 2,000
The approach of chenall is to achieve it by constructing the URL address;
Floor6 26933062 Posted 2007-05-16 12:49
银牌会员 Posts 879 Credits 2,268
Oh, I really don't understand this at all, I've never even heard of it.
Floor7 chenall Posted 2007-05-16 14:04
银牌会员 Posts 469 Credits 1,276 From 福建泉州
Originally posted by 26933062 at 2007-5-16 12:13 PM:
chenall's method is very good. I want to ask how it is achieved? Is it through the registry? It seems better than the vbs version. The vbs one cannot open other windows during login, but this one seems not to matter, so ...


As the moderator said, by adding parameters to the URL, it is equivalent to the effect of entering the username and password and then pressing Enter.
But this method still has certain limitations.

This login will call IE to open the above address.
This is a URL address and cannot be written separately
Floor8 lxmxn Posted 2007-05-16 14:36
版主 Posts 4,938 Credits 11,386
If the password contains special characters, this method cannot be used to log in. For example, & and so on, which need to be converted into hexadecimal form.
Floor9 cain Posted 2007-05-16 14:43
中级用户 Posts 72 Credits 201
chenall,How to specifically write the NetEase email for www.yeah.net? Please teach.
Floor10 suntb Posted 2007-05-16 15:23
高级用户 Posts 277 Credits 581
Learned

Confirmed to be feasible
Floor11 26933062 Posted 2007-05-16 16:10
银牌会员 Posts 879 Credits 2,268
What does "limitation" refer to? In which aspects?
Floor12 kennyfan Posted 2007-05-16 19:30
中级用户 Posts 112 Credits 259
Heheh.. learned another good thing again!
Floor13 cain Posted 2007-05-16 20:19
中级用户 Posts 72 Credits 201
After analyzing for a long time, I still don't know how to specifically write the NetEase mailbox at www.yeah.net. I sincerely ask all experts for guidance.
Floor14 xswdong Posted 2007-05-16 23:07
中级用户 Posts 129 Credits 216
It's very useful. How to do it for 126? I tried it and still couldn't make it. How to specifically write for NetEase mailboxes? Please help, experts.
Floor15 chenall Posted 2007-05-17 16:50
银牌会员 Posts 469 Credits 1,276 From 福建泉州
The login methods of 126 and YEAH are the same. Different from that of 163.

Specifically, see the following batch processing



  1. @echo off
  2. ::Set the login email name as yeah or 126
  3. set mail=126

  4. ::Set user
  5. set user=username

  6. :Set password
  7. set pass=password

  8. ::YEAH login URL
  9. set "yeah=http://entry.yeah.net/cgi/login?&bCookie=&user=%user%&pass=%pass%"

  10. ::126 email login URL
  11. set "126=https://entry.mail.126.com/cgi/login?&bCookie=&user=%user%&pass=%pass%"

  12. ::Login
  13. cmd /c start "" "%%%mail%%%"
chenall posted on: 2007-05-17 16:48


[ Last edited by chenall on 2007-5-18 at 07:57 AM ]
1 2 3 4  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023