How to auto send email using visual basic 6 and microsoft outlook???

  • Thread starter Thread starter Wai Loon Ho
  • Start date Start date
W

Wai Loon Ho

i have write a batch program to auto reply email to customer when they
apply something through my web application.
problem is when the program sending the email. a messagebox "A program
is trying to automatically send e-mail on your behalf.
Do you want to allow this?
If this is unexpected, it may be a virus and you should choose 'No'. "
and there is 3 option "Yes", "No" and "Help" for me to choose.

i hope the program can send the email without prompting me this message
becuase this is a batch program. it should send a batch of email when it
run according to the schdule it set.

below is my coding.

Set objOutlook = New Outlook.Application
Set objMsg = objOutlook.CreateItem(olMailItem)
'
With objMsg
.HTMLBody = True
.To = "" & RecipAddr
.Subject = "" & Subject
.Body = "" & Message
'
DoEvents
'
.Send
End With
'
Set objMsg = Nothing
Set objOutlook = Nothing

Please help.
thanx
 
thanx. i have read the article... but i still dun know what should i do
for this. and i know that Outlook Redemption can solve this problem
right??? but my customer not plan to buy this.
so, may i know what can i do to solve this problem???


thanx... really thanx and i really need help...
thanx...
 
Hi Wai,

Sue describes all solutions. If your app don´t meets any of this, so
there´s no way.
 
Back
Top