473,386 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Email In VB 2005

32
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.Application
Dim oOMail As Outlook.MailItem
oOApp = CreateObject("Outlook.Application")
oOMail = oOApp.CreateItem(Outlook.OlItemType.olMailItem)
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
Mar 17 '08 #1
3 1077
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.Application
Dim oOMail As Outlook.MailItem
oOApp = CreateObject("Outlook.Application")
oOMail = oOApp.CreateItem(Outlook.OlItemType.olMailItem)
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
Mar 17 '08 #2
debasisdas
8,127 Expert 4TB
If you know PL/SQL , can send mail from Oracle directly.
Mar 17 '08 #3
BarryM
32
If you know PL/SQL , can send mail from Oracle directly.
could you please give an a example or a link to an example
Mar 17 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Nicolas Peyrussie | last post by:
Hello, I have, in a MySQL database, full mails stored that I would like to display. Some of them are in HTML, other not. Do you know if there is something in PHP that would permit me to do...
5
by: Roman Suzi | last post by:
(this is a repost with an addition - probably noone noticed my message first time) Hi! Just to be sure, is email package of Python 2.3 thread-safe or not (to use, for example, in...
0
by: John Silver | last post by:
I have a perl script running on machine A, a web server. A visitor completes certain pieces of data and these are compiled into two emails, one addressed to the visitor and copied to the site...
6
by: Bengt Richter | last post by:
It seems lately all my posts have been coming back to me as bounced emails, and I haven't emailed them ;-( I've been getting bounce messages like (excerpt): .......
8
by: Dica | last post by:
i've got a client that wants to be able to review records about IIS generated emails. in his own words, he wants the "ability to track and report message status (i.e. how many messages were sent...
2
by: yxq | last post by:
Hello, I found there are some date formats in the email header, for example: Fri, 23 Sep 2005 08:51:56 +0800 Sat, 17 Sep 2005 09:08:07 Wed Oct 19 13:40:23 2005 19 Oct 2005 13:40:23 +0000...
2
by: Tony Mastracchio | last post by:
Trying to send email via vb 2005 win form. I'm able to send email out via Outlook express from this account and I verified everything 100 times, I don't think it's my host email server. I can't...
22
by: Sharrukin Amiri | last post by:
Can anyone give me a head start on programming outlook to send and recieve mail via VB 2005. I want to automatically send a unique pin number to a customer who's credit card was approved. I am...
14
by: John | last post by:
Hi How does one send email from within a vb.net app? Thanks Regards
11
by: minishilpi | last post by:
I have a question - I have this code below to send an email and I have referenced the Microsoft CDO Library 2000. It doesn't throw any exception in the console window. It goes throughout the code...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.