nasagnilac Posted December 14, 2013 Group: Members Topic Count: 89 Topics Per Day: 0.02 Content Count: 232 Reputation: 15 Joined: 11/02/13 Last Seen: December 19, 2024 Share Posted December 14, 2013 (edited) Hi guys can you help me to set this code enable in linux server? http://rathena.org/board/topic/62654-send-e-mail-to-someone/ Im hoping that someone will share.. this is the error i got.. sh: start: command not found 'Usage: cscript sendemail.vbs <[email protected]> "<subject_line>" "<email_body>" "<optional:email_attachment_path>" 'Ex. No attach: cscript sendemail.vbs [email protected] "test subject line" "test email body" 'Ex. W/ attach: cscript sendemail.vbs [email protected] "test subject line" "test email body" "c:\scripts\log.txt" '*********** '****CONFIGURE THE FROM EMAIL ADDRESS AND PASSWORD Const fromEmail = "" Const password = "" '****END OF CONFIGURATION '*********** Dim emailObj, emailConfig Set emailObj = CreateObject("CDO.Message") emailObj.From = fromEmail 'emailObj.To = strLine1 'emailObj.Subject = strLine2 'emailObj.TextBody = strLine3 emailObj.To = WScript.Arguments.Item(0) emailObj.Subject = WScript.Arguments.Item(1) emailObj.TextBody = WScript.Arguments.Item(2) If WScript.Arguments.Count > 3 Then emailObj.AddAttachment WScript.Arguments.Item(3) End If Set emailConfig = emailObj.Configuration emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "plus.smtp.mail.yahoo.com" emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465 emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = true emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = fromEmail emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = password emailConfig.Fields.Update emailObj.Send Set emailobj = nothing Set emailConfig = nothing Edited December 14, 2013 by gmprestige Quote Link to comment Share on other sites More sharing options...
Question
nasagnilac
Hi guys can you help me to set this code enable in linux server?
http://rathena.org/board/topic/62654-send-e-mail-to-someone/
Im hoping that someone will share..
this is the error i got.. sh: start: command not found
Edited by gmprestigeLink to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.