Welcome to dbFreaks.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Email

 
   Database Help (Home) -> Visual Basic RSS
Related Topics:
sql query returns in wrong format - Hi, Hope someone can help me with this. I have MS SQL 2000 database where i have Table and there a column wich is data type All data in this column is in form So why when i run .asp page with simple query to..

arrays - is there a way to the contents of an array (looping through the array) and storing each item in a comma delimited string? Thanks!

DataReport PageBreak - Hi everyone, I would like to know how to force pagebreak in a for example after 5 records printed. Thank you all

Possible Use of a Cursor - I have a complex query that I hope I can explain it well enough for everyone to I have a table that contains for work Contained in the table are these are groupings of machining

Scroll Bars - Is there a way to find the size of on a system using Visual Basic 6.0? I know how to look and change them on the display but I don't know how to access that from within Visual Basic.
Next:  Authenticating users from Windows Active Director..  
Author Message
oinzea

External


Since: Jan 30, 2005
Posts: 2



(Msg. 1) Posted: Wed Feb 09, 2005 8:40 am
Post subject: Email
Archived from groups: comp>lang>basic>visual>database, others (more info?)

Is there a way VB6 can send an email? if there is a guide to do this it will
be very helpful.

Thanks

 >> Stay informed about: Email 
Back to top
Login to vote
mayayana

External


Since: Oct 19, 2004
Posts: 1



(Msg. 2) Posted: Wed Feb 09, 2005 9:40 am
Post subject: Re: Email [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

There is no simple, native way. You need to:

* Create a Windows socket and use winsock functions
to make the connection.

* Format the email. This might be the worst part. If you're
not using a component that does the job for you then you
have to know all about email headers and formatting. That
information is contained in numerous, long-winded "RFC"
files, which all seem to be written by people who are far
more fond of officiality than they are of communication.
Virtually all RFC files I've seen have been written in barely
decodable legalese; each presenting a meager handful of
standards definitions in 100 KB or more of text file.

* Connect to the server and carry out a "conversation",
which requires knowing the server response codes that
get returned and dealing with them in some kind of
callback function.

I explored this awhile back and ended up
writing a UserControl to handle all aspects
without any dependencies.
see: <a style='text-decoration: underline;' href="http://www.jsware.net/jsware/vbcode.html" target="_blank">http://www.jsware.net/jsware/vbcode.html</a>

(The download includes an info. file about the
basics of email formatting, so that others might
be saved from the horrors of reading RFC files. Smile )

There are also some controls and code
samples available that require adding only the
winsock OCX to your project.

Beyond that it gets messy, with options that require
significant support files and leave VB only asking
something else to do the job (CDO and MAPI), up
to the clunkiest option of all - using Outlook automation
which, of course, requires installing MS Outlook.

--
_____________________________

mayayXXana1a DeleteThis @mindYYspring.com
For return email remove XX and YY.
_____________________________
Oin Zea <OinZea DeleteThis @hotmail.com> wrote in message
news:JJnOd.101$VP5.81@fe61.usenetserver.com...
 > Is there a way VB6 can send an email? if there is a guide to do this it
will
 > be very helpful.
 >
 > Thanks
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Email 
Back to top
Login to vote
shaun.parsons

External


Since: Feb 09, 2005
Posts: 1



(Msg. 3) Posted: Wed Feb 09, 2005 9:40 am
Post subject: Re: Email [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Try this!

<a style='text-decoration: underline;' href="http://support.microsoft.com/?kbid=220595" target="_blank">http://support.microsoft.com/?kbid=220595</a>

"Oin Zea" <OinZea.RemoveThis@hotmail.com> wrote in message
news:JJnOd.101$VP5.81@fe61.usenetserver.com...
 > Is there a way VB6 can send an email? if there is a guide to do this it
will
 > be very helpful.
 >
 > Thanks
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Email 
Back to top
Login to vote
David Segall

External


Since: Feb 09, 2005
Posts: 1



(Msg. 4) Posted: Wed Feb 09, 2005 10:40 am
Post subject: Re: Email [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Oin Zea" <OinZea RemoveThis @hotmail.com> wrote:

 >Is there a way VB6 can send an email? if there is a guide to do this it will
 >be very helpful.
 >
 >Thanks
 >
 >
Check out "Using the MAPI Controls" in the Visual Basic help. It
depends on a MAPI compliant email system but since you are using a
Microsoft operating system it is very likely that you have one.

You need to add a MAPISession control and a MAPIMessage control to
your form.

At run time you log in to an email session, normally at the start of
your program, with:
MAPISession1.SignOn
MAPIMessages1.SessionID = MAPISession1.SessionID


Here is the code from a program of mine to send an email to the name
in the address book "Fred" with a subject line of the product name and
order number. The body of the email repeats the order number and the
attachment is a file that contains the order. The variable sOutfile
contains the full path name to the attached file. I have left in the
commented line used for testing that specified the recipients email
address instead of using the preceding three lines to look it up.
MAPIMessages1.Compose
MAPIMessages1.RecipDisplayName = "Fred"
MAPIMessages1.AddressResolveUI = True
MAPIMessages1.ResolveName
'MAPIMessages1.RecipAddress = "fred@nowhere.net"
MAPIMessages1.MsgSubject = lblProduct & " order # " & lblOrderNo
MAPIMessages1.MsgNoteText = "Order " & lblOrderNo & " is attached"
MAPIMessages1.AttachmentPathName = sOutfile
MAPIMessages1.Send True

You should .SignOff from the MAPISession when you have finished
sending emails. As usual, the code shown here omits the error checking
but I'm sure you will include it in the production version Smile<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Email 
Back to top
Login to vote
Paul

External


Since: Feb 09, 2005
Posts: 1



(Msg. 5) Posted: Wed Feb 09, 2005 11:40 am
Post subject: Re: Email [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David Segall wrote:
 > "Oin Zea" <OinZea DeleteThis @hotmail.com> wrote:
  >>Is there a way VB6 can send an email? if there is a guide to do this it will
  >>be very helpful.
  >>
  >>Thanks
 >
 > Check out "Using the MAPI Controls" in the Visual Basic help. It
 > depends on a MAPI compliant email system but since you are using a
 > Microsoft operating system it is very likely that you have one.

Is it just me or does anyone else find MAPI a bit unreliable at times?

--
Paul<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Email 
Back to top
Login to vote
Veign

External


Since: Apr 22, 2004
Posts: 13



(Msg. 6) Posted: Wed Feb 09, 2005 1:40 pm
Post subject: Re: Email [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Easily add email support to a VB application - dll version 3.65
<a style='text-decoration: underline;' href="http://www.veign.com/vrc_codeview.asp?type=app&id=46" target="_blank">http://www.veign.com/vrc_codeview.asp?type=app&id=46</a>

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
<a style='text-decoration: underline;' href="http://www.veign.com/vrc_main.asp" target="_blank">http://www.veign.com/vrc_main.asp</a>
--

"Oin Zea" <OinZea RemoveThis @hotmail.com> wrote in message
news:JJnOd.101$VP5.81@fe61.usenetserver.com...
 > Is there a way VB6 can send an email? if there is a guide to do this it
will
 > be very helpful.
 >
 > Thanks
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Email 
Back to top
Login to vote
Display posts from previous:   
   Database Help (Home) -> Visual Basic All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]