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
549 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
2 Comments
 
LVL 2

Accepted Solution

by:
pheine earned 125 total points
ID: 10802986
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

760 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

26 Experts available now in Live!

Get 1:1 Help Now