Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Aug 2004
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Bold Text in Auto Generated Email

    I have an email that I would like to control the feel of by bolding certain elements.

    PHP Code:
    Const strHeader "Membership Redemption" 
    I reference this in the email response strBody

    PHP Code:
    strBody strHeader & ( vbCrLf vbCrLf ) & "Thank you for booking your vacation" 
    How do I bold the Const strHeader in the example above?

    thanks for any feedback!!!

  • #2
    Senior Coder
    Join Date
    Dec 2002
    Location
    Arlington, Texas USA
    Posts
    1,065
    Thanks
    4
    Thanked 8 Times in 8 Posts
    use HTML instead of plain text in your email message

  • #3
    Registered User
    Join Date
    Jan 2006
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    And then just make sure it knows you're using HTML.

    Mail.IsHTML

    Or something like that.

  • #4
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If using CDO then use HTMLBody

    Code:
    <%
    Set myMail=CreateObject("CDO.Message")
    myMail.Subject="Sending email with CDO"
    myMail.From="mymail@mydomain.com"
    myMail.To="someone@somedomain.com"
    myMail.HTMLBody = "<h1>This is a message.</h1>" 
    myMail.Send
    set myMail=nothing
    %>
    http://www.w3schools.com/asp/asp_send_email.asp


  •  

    Posting Permissions

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