Email In VB 2005

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BarryM
    New Member
    • Mar 2008
    • 32

    Email In VB 2005

    Hi im making a program that sends emails. The programs sends them via outlook at the moment and does work but it comes up with an enoying message each time you send email sayin that this could be a virus do you want to go ahead. How do i stop the massage poping or is their another way of sending emails.

    This is the coding im using

    Dim oOApp As Outlook.Applica tion
    Dim oOMail As Outlook.MailIte m
    oOApp = CreateObject("O utlook.Applicat ion")
    oOMail = oOApp.CreateIte m(Outlook.OlIte mType.olMailIte m)
    With oOMail
    .To = "email address to send to"
    .Subject = "email from vb"
    .Body = "this email was sent from vb"
    .Send()
    End With

    plus does anybody know how to connect to an online database
  • anuragshrivastava64
    New Member
    • Jan 2007
    • 66

    #2
    Originally posted by BarryM
    Hi im making a program that sends emails. The programs sends them via outlook at the moment and does work but it comes up with an enoying message each time you send email sayin that this could be a virus do you want to go ahead. How do i stop the massage poping or is their another way of sending emails.

    This is the coding im using

    Dim oOApp As Outlook.Applica tion
    Dim oOMail As Outlook.MailIte m
    oOApp = CreateObject("O utlook.Applicat ion")
    oOMail = oOApp.CreateIte m(Outlook.OlIte mType.olMailIte m)
    With oOMail
    .To = "email address to send to"
    .Subject = "email from vb"
    .Body = "this email was sent from vb"
    .Send()
    End With

    plus does anybody know how to connect to an online database

    That is actually Outlook property
    Anways try this
    It worked for me
    But doesn't work properly if there are too many e-mail address

    With oOMail
    .To = "email address to send to"
    .Subject = "email from vb"
    .Body = "this email was sent from vb"
    .NoAging = True
    .Display
    End With

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      If you know PL/SQL , can send mail from Oracle directly.

      Comment

      • BarryM
        New Member
        • Mar 2008
        • 32

        #4
        Originally posted by debasisdas
        If you know PL/SQL , can send mail from Oracle directly.
        could you please give an a example or a link to an example

        Comment

        Working...