Exchange won't let me send mail using CDO.

From: Ken (anonymous_at_discussions.microsoft.com)
Date: 08/19/04


Date: Wed, 18 Aug 2004 23:09:14 -0700

Hi All,

I got this bit of code, trying to send mail using an
application i created.

========================================================
   Dim mailMsg As New CDO.Message
    Dim mailConfig
    Set mailConfig = CreateObject("CDO.Configuration")

    mailConfig.Fields(cdoSMTPServer) = "localhost"
    mailConfig.Fields(cdoSendUsingMethod) =
cdoSendUsingPort
    mailConfig.Fields.Update
        
    mailMsg.Configuration = mailConfig
    mailMsg.To = i_strTo
    mailMsg.From = i_strFrom

    mailMsg.Subject = i_strSubject
    mailMsg.HTMLBody = i_strBody
    If Not i_strAttachment = "" Then

       mailMsg.AddAttachment (i_strAttachment)
    End If
    mailMsg.Send

    SendEmail = 1

========================================================

But Exchange won't allow to reply my mail back to my LAN,
I am trying to send email from one computer on our LAN and
hosted to Exchange 2000 to another computer on the LAN.

I have allow email relay on our Exchange to the particular
computer that i use to run my application through the SMTP
Connector/Virtual Server. But i got an error message
saying that Exchange has refuse to send the email.

Anyone, any ideas?

Thanks

Ken



Relevant Pages

  • Re: Exchange to POP3
    ... client on each users laptop) to work when away from the LAN by using what's ... referred to in Outlook as "Connect to my Exchange mailbox using HTTP". ... back to the SBS LAN you don't have to do any reconfiguring of Outlook. ... that hurdle short of a higher speed Internet connection. ...
    (microsoft.public.windows.server.sbs)
  • RE: Security Suggestion (Exchange 2000) & access to files
    ... Security Suggestion (Exchange 2000) & access to files ... the existing web server which will use an smtp referral to the internal ... you don't let web traffic into your internal LAN. ... NIC to the DMZ for Internet access. ...
    (Security-Basics)
  • Re: Mail-enabled Public Folder not Receiving SMTP E-mail
    ... The alternate recipient is a standard Exchange distribution list that contains one member -- the PF; ... E-mail send from within the LAN with Outlook Express using SMTP/POP3 or Outlook 2003 using a native Exchange 2003 connector properly flows through the pipeline, with one copy in the user's mailbox and one copy in the PF. ... E-mail send from outside the LAN with Outlook Express using SMTP/POP3 or any SMTP/POP3 client flows through the pipeline and deposits a copy in the user's mailbox, but an NDR is sent back to the e-mail originator stating that the Exchange server could not deliver the e-mail to the PF SMTP recipient. ...
    (microsoft.public.exchange.connectivity)
  • RE: Security Suggestion (Exchange 2000) & access to files
    ... the existing web server which will use an smtp referral to the internal ... you don't let web traffic into your internal LAN. ... Security Suggestion (Exchange 2000) & access to files ... NIC to the DMZ for Internet access. ...
    (Security-Basics)
  • Re: Entry-level Exchange and user help needed
    ... > setup as an exchange client. ... > exchange server address, ... Will it still work when I'm not on the local lan? ...
    (microsoft.public.windows.server.sbs)