how do i send mail using visual basic CDO through external smtp(like smtp.hotpop.com, etc)

how do i send mail using visual basic CDO through external smtp(like smtp.hotpop.com, etc)  
raj_msAsked:
Who is Participating?
 
mladenoviczCommented:
I am not sure for field names.
I think that you don't need local SMTP server if you are using a remote computer's SMTP service.
0
 
mladenoviczCommented:
0
 
raj_msAuthor Commented:
mmcdoconfig.Fields("smtpserverport") = 25  is this one equilant to "http://schemas.microsoft.com/cdo/configuration/smtpserverport".
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
raj_msAuthor Commented:
i want to know one more thing, is necessary that the local machine on the networks needs to have smtp server on its own, or is it enough if its connected in the network to send an email.
0
 
raj_msAuthor Commented:
can u tell me how do i use outlook from cdo to send an email
0
 
mladenoviczCommented:
I am not sure what do you think. You don't need outlook for CDO
0
 
raj_msAuthor Commented:
but how do i use outlook to send a mail
0
 
mladenoviczCommented:
0
 
raj_msAuthor Commented:
mmcdoconfig.Fields("Smtpserver") = "smtp.hotpop.com"
mmcdoconfig.Fields("smtpserverport") = 25
mmcdoconfig.Fields("Username") = "raj_itengg@HotPOP.com"
mmcdoconfig.Fields("Password") = "abcdef1"
mmcdoconfig.Fields("SendemailAddress") = from_email
mgcdomsg.Subject = val4
mgcdomsg.MimeFormatted = True.
i tried to do like this but it was not working becaz i have stopped my smtp in my local machine. when it started the smtp in my machin it went. i guess, server is not getting connected?

whats the actual prob?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.