는 지금의 당신을위한 3 개 가지 옵션 참조 배치 파일에서 가져 왔지만, 언급 한대로 추가 소프트웨어는 필요하지 않습니다.
2. Windows의 설치된 SMTP 서버를 활성화 할 수 있습니다. 그리고 다음 PowerShell 스크립트를 실행
$smtpServer = "system.abc.com"
$smtpFrom = "[email protected]"
$smtpTo = "[email protected]"
$messageSubject = "Put your subject here"
$message = New-Object System.Net.Mail.MailMessage $smtpfrom, $smtpto
$message.Subject = $messageSubject
$message.IsBodyHTML = $true
$message.Body = Get-Content debug.txt
$smtp = New-Object Net.Mail.SmtpClient($smtpServer)
$smtp.Send($message)
3. 당신은 윈도우의 설치 SMTP 서버를 활성화 할 수 있습니다. 그리고 다음의 VBScript를 실행
당신은 당신이 그렇게 모두 옵션 2와 3은 매우 당신의 시스템에서 작동 궁극적 인 윈도우 7을 사용하고 있다고 언급 한 것처럼
Const ForReading = 1
Const ForWriting = 2
Const ForAppending = 8
Const FileToBeUsed = "debug.txt"
Dim objCDO1
Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile(FileToBeUsed, ForReading)
Set objCDO1 = CreateObject("CDO.Message")
objCDO1.Textbody = f.ReadAll
f.Close
objCDO1.TO ="[email protected]"
objCDO1.From = "[email protected]"
objCDO1.Subject = "Put your subject here"
objCDO1.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration /sendusing") = 2
objCDO1.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration /smtpserver") = "system.abc.com"
objCDO1.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration /smtpserverport") = 25
objCDO1.Configuration.Fields.Update
objCDO1.Send
Set f = Nothing
Set fso = Nothing
.
어쨌든 답변을 드릴 필요가 없으므로 내가 당신 인 경우 이메일 주소를 삭제하겠습니다. – zbr
텍스트이기 때문에 메일 메시지 본문으로 이메일로 보낼 수 있습니다. 예를 들어,'sendmail [options] [email_address]
lurker
@Zabri가 옳습니다. 공개 포럼에 이메일을 게시해서는 안됩니다. 그것은 스팸 메일을 많이받는 주요 방법입니다. – lurker