Results 1 to 2 of 2

Thread: .asp Email Body

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    323
    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 = "[email protected]"
    objNewMail.Cc = "CCThisEmail"
    objNewMail.Body = "Name: " & strName & "Phone Number: " & strPhone" ....

    objNewMail.Send
    </code>

    Thanks
    If you think education is expensive, try ignorance.

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    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 ....
    "People who think they know everything are a great annoyance to those of us who do."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width