VBSendMail and Exchange

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shutdown123
    New Member
    • Jul 2006
    • 2

    VBSendMail and Exchange

    Hi All,
    I am using vbsendmail with VB6 to send emails from
    an VB application. I have got VBSendmail to work with Outlook.
    Now we have switched to Exchange, vbsendmail does not
    send a mail and there is no error either. Would anyone know why this
    could be happening or point me in the right direction.

    Do you need to Log on with Exchange?

    With poSendMail
    poSendMail.Pers istentSettings = True
    .SMTPHostValida tion = VALIDATE_NONE
    .EmailAddressVa lidation = VALIDATE_SYNTAX
    .Delimiter = ";"

    .SMTPHost = sEmailServer
    .SMTPPort = 25
    .FromDisplayNam e = sFromName
    .From = sFromAddress
    .Recipient = sEmailAddress

    .ReplyToAddress = sReplyToAddress
    .subject = sSubject
    .Message = sBody
    .Send

    End With


    Thanks
    Shutdown123
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi there,

    i have faced the same problem sometime back.. the secret is simple.. vbSendMail requires SMTP authentication when it comes sending mail out.. include a from mail username as well as the password.. take care..

    Comment

    • shutdown123
      New Member
      • Jul 2006
      • 2

      #3
      Thanks Sashi,

      I have done that, and it works now

      Shutdown123

      Comment

      • sashi
        Recognized Expert Top Contributor
        • Jun 2006
        • 1749

        #4
        Hi there,

        no problem buddy.. take care..

        Comment

        Working...