vb.net - What to change in this VB code to get it to email pop3 email addresses -
hello have vb script written automatically send email , attachment , works except can send people on exchange server. there anyway let send email other email?
this code
set wshnetwork = wscript.createobject("wscript.network") set objfso = createobject("scripting.filesystemobject") set objemail = createobject("cdo.message") objemail.from = "email@myserver.com" objemail.to = "email@myserver.com" objemail.subject = "testing vb email" objemail.textbody = "" objemail.addattachment "c:\2m\robots.txt" objemail.configuration.fields.item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objemail.configuration.fields.item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _ "myserver" objemail.configuration.fields.item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 objemail.configuration.fields.update objemail.send
Comments
Post a Comment