I am running Frontpage 2003 and I am getting the email sent to me but the
only data in it is part of the email message. There is not user entered data
in the email.
I am using this method:
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
to create the email message. Is this correct?

Re: user text entered is not sent via email in a form by Kathleen

Kathleen
Fri Jan 28 15:51:19 CST 2005

Looks like you're trying to use ASPMail - are you sure your web host
supports it? Can you post your code?

--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/
blog: http://msmvps.com/spiderwebwoman/category/321.aspx



"ryan" <ryan@discussions.microsoft.com> wrote in message
news:E982A16B-1C7A-4C27-9419-782C802620EB@microsoft.com...
>I am running Frontpage 2003 and I am getting the email sent to me but the
> only data in it is part of the email message. There is not user entered
> data
> in the email.
> I am using this method:
> Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
> to create the email message. Is this correct?
>



Re: user text entered is not sent via email in a form by ryan

ryan
Fri Jan 28 16:05:02 CST 2005

<%@ Language=VBScript %>

<%'response.buffer=true

Dim CR
Dim strMsg, Mailer, strError
CR = CHR(10)


Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
'Set Mailer = CreateObject("CDO.Message")

Mailer.FromName = "Internet - Puppy Name Test"

Mailer.FromAddress = "ryan.mcauley@sympatico.ca"%> <!--Request("T9")--><%
Mailer.ClearRecipients
'Mailer.AddRecipient "Opal McAuley", "opal@chrys-haefen.com"
Mailer.AddRecipient "Ryan McAuley", "webmaster@chrys-haefen.com"
if request("T2") = " " then
response.write("no name")
end if


strMsg = "Tattoo #: 5UK" + Request("T10") & CR &_
"Last Name: " + Request("T2") & CR &_
"First Name: " + Request("T1") & CR &_
"Email: " + Request("T9") & CR &_
"Requested Reg'd Puppys Name: " + Request("T12") & CR &_
"Call Name: " + Request("T11")

response.write(strMsg)

Mailer.bodytext = strMsg

mailer.organization = "Chrys-haefen"

mailer.subject = "Puppy Name"

mailer.smtplog = "F:\chrys-haefen\cgi-bin\mysmtplog.txt"

mailer.wordwraplen = 50

'Mailer.RemoteHost = "mail.chrys-haefen.com"
'if not Mailer.SendMail then
' if Mailer.Response <>"" then
' strError=Mailer.Response
' else
' strError = "Unknown"
' end if
' Response.Write "Mail Failure occured. Reason: " & strError
'end if


set Mailer = nothing

'Response.Redirect("comfirmation_name.asp")

Is the code that will send the email message. The calling page is the actual
form that the user fills out.
And yes my webserver supports aspmail.

"Kathleen Anderson [MVP - FrontPage]" wrote:

> Looks like you're trying to use ASPMail - are you sure your web host
> supports it? Can you post your code?
>
> --
> ~ Kathleen Anderson
> Microsoft MVP - FrontPage
> Spider Web Woman Designs
> web: http://www.spiderwebwoman.com/resources/
> blog: http://msmvps.com/spiderwebwoman/category/321.aspx
>
>
>
> "ryan" <ryan@discussions.microsoft.com> wrote in message
> news:E982A16B-1C7A-4C27-9419-782C802620EB@microsoft.com...
> >I am running Frontpage 2003 and I am getting the email sent to me but the
> > only data in it is part of the email message. There is not user entered
> > data
> > in the email.
> > I am using this method:
> > Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
> > to create the email message. Is this correct?
> >
>
>
>

Re: user text entered is not sent via email in a form by Kathleen

Kathleen
Fri Jan 28 16:29:13 CST 2005

Hi Ryan:
I didn't step through your code, but the first thing I notice is your line
breaks - the VBCrLf defined constant is the preferred method. The ASPMail
doc says: Under VBScript you can use the predefined constant VBCrLf. Simply
using a Chr(13) or a Chr(10) will not work --you must use both -- the VBCrLf
defined constant is the preferred method. A Carriage-return and line-feed
character are required to create a new line in the message.

--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/
blog: http://msmvps.com/spiderwebwoman/category/321.aspx



"ryan" <ryan@discussions.microsoft.com> wrote in message
news:581F7F8A-13B0-45BA-9BF3-EDB918E45381@microsoft.com...
> <%@ Language=VBScript %>
>
> <%'response.buffer=true
>
> Dim CR
> Dim strMsg, Mailer, strError
> CR = CHR(10)
>
>
> Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
> 'Set Mailer = CreateObject("CDO.Message")
>
> Mailer.FromName = "Internet - Puppy Name Test"
>
> Mailer.FromAddress = "ryan.mcauley@sympatico.ca"%> <!--Request("T9")--><%
> Mailer.ClearRecipients
> 'Mailer.AddRecipient "Opal McAuley", "opal@chrys-haefen.com"
> Mailer.AddRecipient "Ryan McAuley", "webmaster@chrys-haefen.com"
> if request("T2") = " " then
> response.write("no name")
> end if
>
>
> strMsg = "Tattoo #: 5UK" + Request("T10") & CR &_
> "Last Name: " + Request("T2") & CR &_
> "First Name: " + Request("T1") & CR &_
> "Email: " + Request("T9") & CR &_
> "Requested Reg'd Puppys Name: " + Request("T12") & CR &_
> "Call Name: " + Request("T11")
>
> response.write(strMsg)
>
> Mailer.bodytext = strMsg
>
> mailer.organization = "Chrys-haefen"
>
> mailer.subject = "Puppy Name"
>
> mailer.smtplog = "F:\chrys-haefen\cgi-bin\mysmtplog.txt"
>
> mailer.wordwraplen = 50
>
> 'Mailer.RemoteHost = "mail.chrys-haefen.com"
> 'if not Mailer.SendMail then
> ' if Mailer.Response <>"" then
> ' strError=Mailer.Response
> ' else
> ' strError = "Unknown"
> ' end if
> ' Response.Write "Mail Failure occured. Reason: " & strError
> 'end if
>
>
> set Mailer = nothing
>
> 'Response.Redirect("comfirmation_name.asp")
>
> Is the code that will send the email message. The calling page is the
> actual
> form that the user fills out.
> And yes my webserver supports aspmail.
>
> "Kathleen Anderson [MVP - FrontPage]" wrote:
>
>> Looks like you're trying to use ASPMail - are you sure your web host
>> supports it? Can you post your code?
>>
>> --
>> ~ Kathleen Anderson
>> Microsoft MVP - FrontPage
>> Spider Web Woman Designs
>> web: http://www.spiderwebwoman.com/resources/
>> blog: http://msmvps.com/spiderwebwoman/category/321.aspx
>>
>>
>>
>> "ryan" <ryan@discussions.microsoft.com> wrote in message
>> news:E982A16B-1C7A-4C27-9419-782C802620EB@microsoft.com...
>> >I am running Frontpage 2003 and I am getting the email sent to me but
>> >the
>> > only data in it is part of the email message. There is not user entered
>> > data
>> > in the email.
>> > I am using this method:
>> > Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
>> > to create the email message. Is this correct?
>> >
>>
>>
>>