Mail formatting problem

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Mail formatting problem

    I'm using this code below. It sends the emails ok but none ofthe body
    isformatted.

    Any ideas?

    Thanks
    Andy

    <%
    Dim BodyString
    Dim arrFormFields
    FormFields = "name~email~message~whereFrom"
    If FormFields <> "" Then
    arrFormFields = split(FormFields,"~")
    End If
    Set jmail = Server.CreateObject("JMail.Message")

    jmail.AddRecipient "you@work.com", "Andy"
    jmail.From = "me@work.com"

    jmail.Subject = "jmail test"
    BodyString = Replace("","~",chr(13) & chr(10) )& chr(13)
    If FormFields <> "" Then
    For Each item In arrFormFields
    BodyString = BodyString & item & ": " & Request.Form(item) & chr(13)
    Next
    End If
    jmail.HTMLBody = BodyString
    jmail.Send( "mxhost-1.vi.net" )


    %>





    Andy Guest

  2. Similar Questions and Discussions

    1. CDO mail formatting issue
      Hi, When I set the following for my CDO email, the mail is receievd with the html portion does not appear formatted but just as it is seen below. I...
    2. Formatting problem
      I am having a problem with getting formatting. Users are uploading an excel spreadsheet, which I am trying to parse and insert the data into my...
    3. Mail:Sender - HTML Mail with alternatives problem
      I'm trying to generate an HTML mail with text alternatives using the mail:sender module. As everybody can see below the message was created and...
    4. E-mail formatting?
      When e-mailing invoices and estimates, is there any way to customize the presentation of the e-mail beyond changing the message? Specifically, I'd...
    5. Need help formatting query for mail()
      I want to use mail() to send a message to a group of addresses in a mysql table. Išve got my mail script and my sql query, but I donšt know how to...
  3. #2

    Default Re: Mail formatting problem

    Hi Andy

    Could it be the missing parenthesis at the end of your replace statement?
    >>BodyString = Replace("","~",chr(13) & chr(10) )& chr(13)
    BodyString = Replace("","~",chr(13) & chr(10) )& chr(13))

    Just a thought.
    Regards
    Bren

    /**********************************************
    Why do I climb mountains?
    Because they are there!
    [url]www.3peakschallenge.co.uk[/url]
    *********************************************/


    Bren Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139