September 08 2010 08:19:41
Navigation
· Home
· Online Store
· Course Outlines (PDF Files)
· Sample Videos
· Contact Info
· Web Links
· Articles (Sample Code)

Other Videos
· WordPress (CMS)
· Joomla (CMS)
· Sharepoint

Other
· FAQ
· Search
Contribute to This Site
· Submit Link
· Get Benefitted Sites
No Competition
One of our so-called competitors offers under 6 hours of video training for a whopping $219 (choke, gasp, spew - you could hire a private tutor for that price). Did I mention that they ship their training on VHS tapes (remember those?). Check out our 'Course Outlines' link above. We offer a 2-days of training (15 hours) for $54 (2 CDs at $29 each). You watch our videos from a CD/ROM on your computer. We also include real-world lab/assignments in each course.
Articles: Send Email
Send Email
'===========================================================
' NAME: EmailSend.vbs - using local server 
' AUTHOR: Neal Walters , Amerisoft Inc
' DATE  : 3/27/2005
' http://VBScript-Training.com 
'===========================================================

Set email = CreateObject("CDO.Message") 

   email.To   = "nwalters@sprynet.com;nwaltershm@hotmail.com" 
   email.From = "nwaltershm@hotmail.com" 
   email.Subject  = "Email from VB/Script Land"  
   
   email.TextBody = "Test email from VB/Script using CDO.Message." & VbCrLf & _ 
                    "This is line 2 " & VbCrLf & _ 
                    "This is line 3" & Vbclrf & _
                    VbCrLf & _ 
                    "Thanks," & Vbclrf & _
                    "Neal Walters" 
                    
   
   email.Send

WScript.Echo "Email has been sent " 


'===========================================================
' NAME: EmailSend2.vbs - with remote server logon/parameters 
' AUTHOR: Neal Walters , Amerisoft Inc
' DATE  : 3/27/2005
' http://VBScript-Training.com 
'===========================================================

Set email = CreateObject("CDO.Message") 

   email.To   = "nwalters@sprynet.com;nwaltershm@hotmail.com" 
   email.From = "nwaltershm@hotmail.com" 
   email.Subject  = "Email from VB/Script Land"  
   
   email.TextBody = "Test email from VB/Script using CDO.Message." & VbCrLf & _ 
                    "This is line 2 " & VbCrLf & _ 
                    "This is line 3" & Vbclrf & _
                    VbCrLf & _ 
                    "Thanks," & Vbclrf & _
                    "Neal Walters" 
                    
'Name or IP of Remote SMTP Server
   email.Configuration.Fields.Item _
     ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "yourSMTPServer" 
     
     
'Type of authentication, NONE, Basic (Base64 encoded), NTLM 
Dim cdoBasic 
cdoBasic = 1
   email.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
     
'Your UserID on the SMTP server
   email.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusername") = "youruserid"

'Your password on the SMTP server
   email.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "yourpassword" 
              
email.Configuration.Fields.Update
                    
   'email.AddAttachment "file://c:/menu.doc"
   
   email.Send


WScript.Echo "Email has been sent " 

Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Order Now - View Products


Default Shipping:
Phone: 214-403-6006
Our Sites
Software Training
XML-Online-Training.com
Biztalk-Training.com
SharePoint-Training.com
DotNet-AddOns-Training.com
CMSTrainingVideos.com

Language
LanguageLovers.com
Render time: 0.01 seconds 432,187 unique visits