Forum Moderators: open

Message Too Old, No Replies

CDONTS and ChilisoftASP

Trying to send an email but it wont display in the email

         

basil

10:20 am on Mar 13, 2003 (gmt 0)

10+ Year Member



I am trying to submit a form to a CDONTs newmail object.

This is what I am using but I can't get it to display in the actual email (other than hotmail). There are no errors, it just doesnt come out in the email when sent

dim lvobjmail
set lvobjmail = server.CreateObject("cdonts.newmail")
lvobjmail.To = "email@address"
lvobjmail.From = "web@test.com"
lvobjmail.Subject = "website"& request.form"OriginCountry")
lvobjmail.BodyFormat= 0
lvobjmail.Body = lvstrInformation
lvobjmail.send()
Set lvobjmail=nothing

I have been told that Chillisoft ASP does not support mailformat = 1

Does any one know any other way of getting this to work?

Sorry if its not clear but I'm new to this!
Cheers

Staffa

4:53 pm on Mar 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

There is a small syntax error in the subject line :

lvobjmail.Subject = "website"& request.form"OriginCountry")

a ( is missing in request.form("OriginCountry")

then I suppose that you have somewhere in your code where you specify what lvstrInformation represents in :

lvobjmail.Body = lvstrInformation

otherwise you will not have text in your email body
Hope this helps