title: Vbs Multiple Line Email
body: <p>I am using a vbs file to send emails but it sends it in one line only. I want it to be multiple lines with &amp; vbCRLF but it is not working for me.</p>
  
  <p>Please help me with vbs emails with multiple line text.</p>
  
  <p>My code :</p>
  
  <pre><code>Set emailObj      = CreateObject("CDO.Message")
  emailObj.From     = "dc@gail.com"
  emailObj.To       = "dc@gail.com"
  emailObj.Subject  = "Test CDO"
  emailObj.TextBody = "Test CDO" &amp; vbCRLF &amp; "Test CDO line 2"
  Set emailConfig = emailObj.Configuration
  emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.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")    = "YourUserName"
  emailConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword")    = "Password1"
  emailConfig.Fields.Update
  emailObj.Send
  If err.number = 0 then Msgbox "Done"
  </code></pre>