Solved

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

Posted on 2004-09-15
9
318 Views
Last Modified: 2013-11-25
how do i send mail using visual basic CDO through external smtp(like smtp.hotpop.com, etc)  
0
Comment
Question by:raj_ms
  • 5
  • 4
9 Comments
 
LVL 8

Expert Comment

by:mladenovicz
Comment Utility
0
 

Author Comment

by:raj_ms
Comment Utility
mmcdoconfig.Fields("smtpserverport") = 25  is this one equilant to "http://schemas.microsoft.com/cdo/configuration/smtpserverport".
0
 

Author Comment

by:raj_ms
Comment Utility
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
 
LVL 8

Accepted Solution

by:
mladenovicz earned 500 total points
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:raj_ms
Comment Utility
can u tell me how do i use outlook from cdo to send an email
0
 
LVL 8

Expert Comment

by:mladenovicz
Comment Utility
I am not sure what do you think. You don't need outlook for CDO
0
 

Author Comment

by:raj_ms
Comment Utility
but how do i use outlook to send a mail
0
 
LVL 8

Expert Comment

by:mladenovicz
Comment Utility
0
 

Author Comment

by:raj_ms
Comment Utility
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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now