?
Solved

when I use cdo.message, where can I set my username and password required by my Email Server?

Posted on 2004-04-10
2
Medium Priority
?
567 Views
Last Modified: 2008-02-01
Usually I use outlook to send my email. And my Email Server require username and password.
I can easily set them in the outlook. But now I want to send my email on my web site written in ASP by myself. I use cdo.message to do that. but I find I can only set the Email Server I used. but cannot find the place to set the username and password. if you know, please tell me.

Dim objCDO
Dim objConf
Dim objFields

Const cdoSendUsingPort = 2

' Put your mailservers ip address below
Const Mailserver ="smtp.citiz.net"

Set objCDO = Server.CreateObject("CDO.Message")
Set objConf = Server.CreateObject("CDO.Configuration")

Set objFields = objConf.Fields

objFields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort
objFields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = Mailserver
objFields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
objFields.Update

Set objCDO.Configuration = objConf
0
Comment
Question by:magichan
1 Comment
 
LVL 2

Accepted Solution

by:
pheine earned 375 total points
ID: 10802986
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month14 days, 19 hours left to enroll

840 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