Formatting Form Data passed to an email message

Results 1 to 2 of 2

Thread: Formatting Form Data passed to an email message

  1. #1
    Join Date
    Dec 1969
    Posts
    733

    Default Formatting Form Data passed to an email message

    I am passing form data to my email server which in turn sends the email to me. It works fine but I want to know some vb commands to make the email easier to read... This is what I have<BR><BR>&#060;%<BR>Set Mail = Server.CreateObject("Persits.MailSender")<BR>Mail. Host = "myhost"<BR>Mail.From = "whoever"<BR>mail.addaddress "whoever"<BR>mail.subject = "subject"<BR>mail.body = Request("Title") + Request("Name") + Chr(15) + Chr(10) + _ <BR>Request("Referror") + Chr(15) + Chr(15) + Request("Department") <BR>mail.send<BR>&#037;&#062;<BR><BR>The BODY is the problem. The only command I have used is Chr() to space the form data. I get little boxes that clutter up the message. How do I start a new paragraph? Make the data more presentable?<BR><BR>Thank you,<BR>Derek.

  2. #2
    Join Date
    Dec 1969
    Posts
    29

    Default RE: Formatting Form Data passed to an email message

    Hi,<BR><BR>Use &#039& VbCrLf&#039 to send a carriage return to your email body.<BR><BR>mail.body = Request("Title") & VbCrLf & Request("Name")... <BR><BR>Hope it helped. :)

Posting Permissions

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