Solved

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

Posted on 2004-09-15
9
321 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
ID: 12065738
0
 

Author Comment

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

Author Comment

by:raj_ms
ID: 12065937
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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 8

Accepted Solution

by:
mladenovicz earned 500 total points
ID: 12066013
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
 

Author Comment

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

Expert Comment

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

Author Comment

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

Expert Comment

by:mladenovicz
ID: 12066476
0
 

Author Comment

by:raj_ms
ID: 12101830
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

785 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