maanton
Programmer
- Mar 27, 2005
- 52
Hello!
I have the following code:
<%
theSchema="Set cdoConfig=server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(theSchema & "sendusing")=2
cdoConfig.Fields.Item(theSchema & "smtpserver")="mx1.hotmail.com"
cdoConfig.Fields.Update
set cdoMessage=Server.CreateObject("CDO.Message")
cdoMessage.Configuration=cdoConfig
cdoMessage.From=Request.Form("email")
cdoMessage.To="mymail@hotmail.com"
cdoMessage.Subject=Request.Form("subject")
cdoMessage.TextBody= Request.Form("comment")
cdoMessage.Send
Set cdoMessage=Nothing
Set cdoConfig=Nothing
%>
What I want is (when I receive the message in my mailbox), FROM to display my site's name instead of the sender's address.
I tried that unsuccessfully:
cdoMessage.From="mysite"
What do you suggest?
I have the following code:
<%
theSchema="Set cdoConfig=server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(theSchema & "sendusing")=2
cdoConfig.Fields.Item(theSchema & "smtpserver")="mx1.hotmail.com"
cdoConfig.Fields.Update
set cdoMessage=Server.CreateObject("CDO.Message")
cdoMessage.Configuration=cdoConfig
cdoMessage.From=Request.Form("email")
cdoMessage.To="mymail@hotmail.com"
cdoMessage.Subject=Request.Form("subject")
cdoMessage.TextBody= Request.Form("comment")
cdoMessage.Send
Set cdoMessage=Nothing
Set cdoConfig=Nothing
%>
What I want is (when I receive the message in my mailbox), FROM to display my site's name instead of the sender's address.
I tried that unsuccessfully:
cdoMessage.From="mysite"
What do you suggest?