Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004

    Unanswered: Outlook in Access

    Hi all,
    I wrote SendMail sub, that use outlook object to send mail. the TO,subject and mail body are token from form textboxes.
    Here is my code:
    Private Sub Sending(EmailList As String, EmailSubject As String, EmailBody As String)

    Dim OutLookObject As New Outlook.Application
    Dim OutLookMail As Outlook.MailItem

    Set OutLookMail = OutLookObject.CreateItem(olMailItem)
    OutLookMail.To = EmailList
    OutLookMail.Subject = EmailSubject
    OutLookMail.Importance = olImportanceNormal
    OutLookMail.Body = EmailBody

    Set OutLookObject = Nothing
    Set OutLookMail = Nothing
    end sub

    my problem, that the text of the mail body doesn't alligned like the format I want. whitch function or property I can use to do the allignment. I searched in the object browser but I didn't fined.

    Please help me.
    Best regards...

  2. #2
    Join Date
    Nov 2004
    out on a limb
    Provided Answers: 59
    Email can't hack that, the best you can do is to suggest that the poerson receiving the email uses a fixed pitch font like courier. Failing that send the email as a formatted HTML email, which some people do not / will not accept due to potential secuirty risks assoicated with HTML emails

Posting Permissions

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