title: Vbscript - Multiple lines on vbs script email
body: <p>I use the following code to send automatic emails, passing a parameter in them :</p>
  
  <pre><code>Const schema   = "http://schemas.microsoft.com/cdo/configuration/"
  Const cdoBasic = 2
  Const cdoSendUsingPort = 2
  Dim oMsg, oConf
  Dim sDateTimeStamp
  
  Set args = WScript.Arguments
  arg1 = args.Item(0)  
  
  
  ' E-mail properties
  Set oMsg      = CreateObject("CDO.Message")
  oMsg.From     = "test@gmail.com"  ' or "Sender Name &lt;from@gmail.com&gt;"
  oMsg.To       = "test2@gmail.com"    ' or "Recipient Name &lt;to@gmail.com&gt;"
  oMsg.Subject  = "Subject"
  oMsg.TextBody = "Transfer of files failed - Check RUNLOG for error.  Julian date :  " &amp; arg1  
  
  
  ' GMail SMTP server configuration and authentication info
   Set oConf = oMsg.Configuration
   oConf.Fields(schema &amp; "smtpserver")       = "smtp server" 'server address
   oConf.Fields(schema &amp; "smtpserverport")   = 25              'port number
   oConf.Fields(schema &amp; "sendusing")        = cdoSendUsingPort
   oConf.Fields(schema &amp; "smtpauthenticate") = cdoBasic         'authentication type
   oConf.Fields(schema &amp; "smtpusessl")       = False             'use SSL encryption
   oConf.Fields(schema &amp; "sendusername")     = "test3@gmail.com" 'sender username
   oConf.Fields(schema &amp; "sendpassword")     = "password"      'sender password
   oConf.Fields.Update()
  </code></pre>
  
  <p>I would like to add a multiline string in the text message body, i have tried using the _ concat operator like so :</p>
  
  <pre><code>multi = "aaaaaa " &amp; _
     "FROM NC301B " &amp; _
     "WHERE EDIPROC like 'P30_' " &amp; _
     "AND (LF301M &gt; 0) " 
  </code></pre>
  
  <p>but it does not work. Can someone give me pointers? Thank you.</p>
  
  <p>I would like the end body of the email to contain this:</p>
  
  <pre><code>"Transfer of files failed - Check RUNLOG for error."  
  "Julian date : " &amp; arg1  
  "Line of text"  
  "Line of text"  
  </code></pre>
  
  <p>If this is also doable without multi-lining with <code>&amp; _</code> then i m curious about that also. Thank you!</p>