Hello
I have greatly simplified this post, which is in two parts, so as to get at the root of the problem I am having with sending an HTML-formatted email in CDO.
I have an online form with one field only: (User's) Email
<%
Dim sEmailTitle,sEmailAddress
sEmailTitle = "Email"
sEmailAddress = Request.Form("Email")
Set myMail=CreateObject("CDO.Message")
myMail.From="theMaster@world1.com"
myMail.To="sEmailAddress"
myMail.Send
set myMail=nothing
%>
The email is sent to the appropriate email address (meaning 'sEmailAddress' works), but the site
visitor only gets this in his inbox:
Email
Why is his own email address not shown after this Email heading (especially in view of the fact that the server knows the address to deliver the message to)? All it has done is copy 'sEmailTitle'. It has neglected sEmailAddress when it comes to reproducing that address as it ought to have done.
The other part of this prickly issue concerns HTML-formatting. How can I format the word which he has received in his inbox, that is 'Email' so that it is, for instance, in 10pt Verdana with the
colour 42129B?
Many thanks for any help.
Steve
I have greatly simplified this post, which is in two parts, so as to get at the root of the problem I am having with sending an HTML-formatted email in CDO.
I have an online form with one field only: (User's) Email
<%
Dim sEmailTitle,sEmailAddress
sEmailTitle = "Email"
sEmailAddress = Request.Form("Email")
Set myMail=CreateObject("CDO.Message")
myMail.From="theMaster@world1.com"
myMail.To="sEmailAddress"
myMail.Send
set myMail=nothing
%>
The email is sent to the appropriate email address (meaning 'sEmailAddress' works), but the site
visitor only gets this in his inbox:
Why is his own email address not shown after this Email heading (especially in view of the fact that the server knows the address to deliver the message to)? All it has done is copy 'sEmailTitle'. It has neglected sEmailAddress when it comes to reproducing that address as it ought to have done.
The other part of this prickly issue concerns HTML-formatting. How can I format the word which he has received in his inbox, that is 'Email' so that it is, for instance, in 10pt Verdana with the
colour 42129B?
Many thanks for any help.
Steve