Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2004-09-15
9
324 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

839 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