If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > CDO Component without EmailID in "From" field

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-15-04, 23:13
dbforum123 dbforum123 is offline
Registered User
 
Join Date: Mar 2004
Posts: 5
CDO Component without EmailID in "From" field

We are having number of sites running.

So far our sites were running on Windows NT Operating system.

We used ASP for building our sites.

We have used CDONTS component in our sites ASP pages for sending mails to our clients in many occasions. At some occasions we do not want our client to send emails to the mail received from us. Hence we have specified text without an email id for the "From" field.

Now we are converting our server to Windows 2003 Server. We are using CDO component in our sites ASP pages for sending mails in our new server as CDONTS component does not work in Windows 2003.

We have the following problem:

We are unable to send emails without an email id in the "From" field which was possible in CDONTS.

Could anyone help us out to resolve this issue?

Thanks in Advance.


Regards,
Vasu
Reply With Quote
  #2 (permalink)  
Old 03-17-04, 05:01
dbforum123 dbforum123 is offline
Registered User
 
Join Date: Mar 2004
Posts: 5
I got the solution in some other site. With the following procedure I am able to send emails without email id in the "From" field.

Sub SendMailCDO(aTo, Subject, HTMLBody, aFrom)
Const cdoOutlookExvbsss = 2
Const cdoIIS = 1

'Create CDO message object
Set Message = CreateObject("CDO.Message")
With Message
'Load IIS configuration
.Configuration.Load cdoIIS

'Set email adress, subject And body
.To = aTo
.Subject = Subject
.HTMLBody = HTMLBody

'Set sender address If specified.
If Len(aFrom) > 0 Then .From = aFrom

'Send the message
.Send
End With
End Sub
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On