PDA

Click to See Complete Forum and Search --> : .asp Email Body


artsapimp
Jul 5th, 2000, 12:05 PM
I am trying to use the following script to send email through IIS. I don't know how I would format the BODY of the email to be like this:

Name: Art Sapimp
Phone Number: 407-555-5640
OS: Windows 98

instead of like this:

Name: Art Sapimp Phone Number: 407-555-5640 OS: Windows 98

Thanks

<code>
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
objNewMail.From = strName
objNewMail.To = "artsapimp@yahoo.com"
objNewMail.Cc = "CCThisEmail"
objNewMail.Body = "Name: " & strName & "Phone Number: " & strPhone" ....

objNewMail.Send
</code>

Thanks

noone
Jul 5th, 2000, 02:28 PM
If your using VBScript use this:
objNewMail.Body = "Name: " & strName & vbNewLine & "Phone Number: " & strPhone & vbNewLine & ....

If your using JScript use this:
objNewMail.Body = "Name: " & strName & "\nPhone Number: " & strPhone ....