Send Email With VB
Hi there,
How to send email from VB application ? Did you know an ocx file that provide my case? How can i get that?
Thank's
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Automate A Email Send By Dropping An Email Into A Specific Folder
Microsoft Outlook 2000 is the application I wish to try and complete the task in.
I want to be able to drop an email from a general folder into a folder e.g "Allowed" or "Blocked" and it sends an email to the recipent or sender of the email saying that the email was blocked or allowed, depending on which folder it was dropped into respectivly.
I have no idea were to start.
Send Email With Default Email Client
Hi,
Rather inexperianced user here so be kind
I would like to sent an email from my VB6 application.
I would like to see and edit the email if necessary before its sent. I also need it to have an attchament.
So far I have writen (read copied and modified) a code that sends email through MAPI with attachment and everything is fine. However I cant seam to find a code that will show the email before its sent.
I also have a solution using shell to open the default mail client and fill in the required fields EXCEPT the attachment. Which I can seam to find a code to do.
Surely there has to be a solution where the email appears already completed for viewing and manual send off. Without using Outlook object.
Thank you for any help.
Michal
Send Email From ANY Email Program From Excel VBA??
I know this sounds like one of the hundreds of 'send email?' posts on this forum but I have searched through the lot and not found what I am after.
I currently use Outlook and so it has been simple to send emails but now I need to be able to cater for anyone's email program whether it is Outlook, Notes or whatever.
is there an easy way (MAPI or something?) that will work within Excel as I keep getting errors when I have tried code posted on here for VB.
Thanks for your help.
Richard
Outlook - VBA Send Email But Don't Use .send
Hey again,
With the vb6 plugin for outlook, I can create an email with multiple recipients but I need to send an email to each recipient individually but not have it register as a sent item in the Sent Folder each time the email has been sent out. Is there a way to do this?
Any thoughts?
Is there something that I can use that is similar to .SendMail (excell). I am currently not using the MAPI either.
Need To Send An Email Using The "From" Email Address Field
Hi there everyone,
I have an issue with I would have thought would have been easy, but i need the abilty set the From email address field in Outlook. I can set To, CC, and even BC, but can not seem to set the From field. I am hoping i am having a goldfish moment.
Below is a snippet of the code i am using, and i have tried using, .from, .sender but can't seem to get it to work. Any suggestions would be hugely appreciated, as this is important.
As i said, I am hoping it is easy, and i am just have a brain fade.
----------------------
Dim objOutlook
Dim objOutlookMsg
Dim olMailItem
Dim objAttachements
' Create the Outlook object and the new mail object.
Set objOutlook = CreateObject("Outlook.Application")
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
' Define mail recipients
objOutlookMsg.Sender = "sender@somewhere.com.au"
objOutlookMsg.To = "to@somewheredifferent.com.au"
Again, any thoughts?
Thanks
Graeme
Send Email
Hello,
I wonder if somebody could help me. I am writing a report/fault logging program and wanted to know how to send an email within VB.
When the user reports a fault they get a ticket number. I would ideally like an automated email sent to them displaying the ticket number and fault. I am not quite sure how to go about this. I have noticed on some websites that they use a mailto command. Would this work?
If it is of any use we use Novel GroupWise at work.
Thanks in advance
Mick
Email Send
I want to know when player registers to my game.like send it to email.something like this:>>Playername<< has registered to your game!
Using CDO To Send Email
Hello,
I went to the Microsoft website and looked for examples of using CDO to send a MIME email. I think I understand it, but I cannot seem to be able to send the email. Here is the sample code that I got from Microsoft:
Dim iMsg As New CDO.Message
Dim iBp As CDO.IBodyPart
Dim iBp1 As CDO.IBodyPart
Dim iBp2 As CDO.IBodyPart
Dim iBp3 As CDO.IBodyPart
Dim Stm As ADODB.Stream
With iMsg
.From = test@test.com
.To = test@test.com
.Subject = "A html and text message with attachment."
End With
''''''''''''''''''''''''''''''''
' Level 1: multipart/mixed (root)
''''''''''''''''''''''''''''''''
Set iBp = iMsg ' returns IBodyPart on object
iBp.ContentMediaType = "multipart/mixed"
''''''''''''''''''''''''''''''''
' Level 2: multipart/alternative
''''''''''''''''''''''''''''''''
Set iBp2 = iBp.AddBodyPart
iBp2.ContentMediaType = "multipart/alternative"
''''''''''''''''''''''''''
' Level 3: text/plain
''''''''''''''''''''''''''
Set iBp3 = iBp2.AddBodyPart
With iBp3
.ContentMediaType = "text/plain"
.ContentTransferEncoding = "7bit"
Set Stm = .GetDecodedContentStream
Stm.WriteText "Here is the plain text version of the message"
Stm.Flush
End With
''''''''''''''''''''''''''
' Level 3: text/html
''''''''''''''''''''''''''
Set iBp3 = iBp2.AddBodyPart
With iBp3
.ContentMediaType = "text/html"
.ContentTransferEncoding = "quoted-printable"
Set Stm = .GetDecodedContentStream
Stm.WriteText "<html><body><p>HERE is the plain text version of the message</p></body></html>"
Stm.Flush
End With
'''''''''''''''''''''''''''''
' Level 2: image/gif
'''''''''''''''''''''''''''''
Dim Flds As ADODB.fields
Set iBp2 = iBp.AddBodyPart
With iBp2
.ContentMediaType = "image/gif"
.ContentTransferEncoding = "base64"
Set Flds = iBp2.fields
Flds("urn:schemas:mailheader:content-disposition") = _
"attachment; filename=""testimage.jpg"""
Flds.Update
Set Stm = .GetDecodedContentStream
Stm.LoadFromFile App.Path & " estimage.jpg"
Stm.Flush
End With
iMsg.Send
'--------------------------
It seems to create the MIME properly, but I get an error when I try to send it (iMsg.Send). What is the proper code to put in authentications?
-xmen64
How To Send An Email From VB
ok..so im new in here.... im doing this project - an embedded thing taht connects up with a pc relay card ...ppl tell me -
" its so dan easy "
but i cant figure how u can send input /out put thru the port (parallel /serial i dont even know whats the diff !!) ...
so thats why i need some help here.
a few Q's first
a) do i need to do spmethng in c++ and then vb does only thr interface !
b ) what is it with dll 's i hear bout o much
c ) what does winsock do ? will it help me here.
d ) does anyone have sample code for waht im talking bout.. the connection between ports ... it jus sounds too "general" ...how do i actually go around "doing" it ..
I dont expect any1 of u answer "all" my questions ..but pls try anyway.
thnx
Keep Clicking,
Bosky B-)
How To Send An Email?
How do you send an email through Vb because im making a game registeration system that needs to get a code from an email so how do i send an email.Its an API but i cant find it.
Please tell me the API.And how to call it.
Send Email
How can I use VB6 to send email with the SMTP?
Send Email From VB
Currently, I'm using MAPI to send email from my VB application & it works fine. But i need to have outlook opened on my pc.
Is there any other way that the email can be sent without the pc having outlook installed?!?!
Send Email
OK guys,
I need to send email from visual basic. I am aware I can use CDONTS or CDO. I have used these with ASP. I need to know if the user will have to have a smtp server installed on their machine.
For example if the user is using Windows 98 will my application be able to send email? Shoul I use MAPI or VBA?
I need something that the user can format and send the mail without any message boxes asking for permission to use Outlook.
Any Ideas?
Thanks,
Mike
VB6 - Send EMAIL
About 5 years ago I wrote a little VB6 desktop app. that sends out emails from small text files created in another application.
It's nothing fancy and uses the MAPI control to send the email.
As virus protection, fire walls, outside programs, etc. have crept onto my user's computers my little program is no longer staple. It gets various run-time errors on certain PC's.
What is the simplest way to code an "email send" that will work in a mixed envirionment. I'm just sending with small text files as a .MsgNoteText with out attachments. Often 100 -150 slightly different emails will be sent to different addresses.
Best Way To Send An Email?
Hi Guys,
I have a text box control, that will display an email address.
Whats the best way to allow the user to send an email to this address via clicking a CommanButton Control?
Some people use Outlook , some dont, some people use AOL, everyone seems to use a different way of emailing, is there a simple emailing solution?
Thanks again
Send An Email
hello, i was wondering how to open outlook express send window, with a particular email address in the send box, i know this can be done using HTML pretty easily, but i need to do it with VB... Thank u
~zigga15
Send Email
Hallo everybody...
I want to send an attachment file through email.... Could anyone please give me a very simple example regarding to that.
Thank you very much....
Send EMAIL...
Is it possible to make a program to send emails with attachements, but not using outlook?
Note that i don't have outlook installed...so i can't use some programs i've seen here.
Send Email
hi, is there a rutine where in case a users dont remember their passwords I could send user and password info to their emails which are in a database
thx a lot
How To Send An Email With VB?
Hello!
Forget the Lock/Hide mouse i dont need em, was just curious how they work . Still need to know how to send an email in VB though, like to submit to someones account or something
--Death Warrior
P.S. Seriously i wasent even planning to make a virus/trojan
Send An Email
I have written a DBMS program that has a login screen to access the database.
It asks for username and password and enters the DB.
I want to make a provision where if the user forgets his password, the login details (username - password ) are sent to his/her email address .
It should work like this. The user clicks on a button called "Forgot Password". Then a form opens, with a textbox prompting the user to enter his/her email address. The login details are retrieved and sent to the email at the click of a button called retrieve.
Below is the code for the login screen . Any help will be appreciated.
Code:
Private Sub cmdLogin_Click()
Dim un As String
Dim ps As String
adodc1.Refresh
un = Text1.Text 'storing the login and password entered in the variables un and ps
ps = Text2.Text
Do Until adodc1.Recordset.EOF
If adodc1.Recordset.Fields("name").Value = un And adodc1.Recordset.Fields("password").Value = ps Then
mn.Show 'comparing database values with values entered
login.Hide
Exit Sub
Else
adodc1.Recordset.MoveNext 'moving to next record on database
End If
Loop
Dim msg As String
msg = MsgBox("Username/password mismatch.Passwords are case sensitive! Try Again!", vbOKCancel)
If (msg = 1) Then 'displays message if login or password
login.Show 'is wrong
Text1.Text = "" 'clears the textboxes
Text2.Text = "" 'reloads login screen
Text1.SetFocus
Else
MsgBox " Thank you for using LussoVoyageur Car rental software", , "Good Bye"
End
End If
End Sub
Private Sub Command1_Click()
PassEmail.Show
End Sub
Private Sub Form_Resize()
With Me
.Width = Screen.Width
.Height = Screen.Height
.Top = 0
.Left = 0
End With
End Sub
How To Send Email
Just want a very simple way using a text box, and a command button,
Private Sub Command1_Click()
End Sub
Private Sub Text1_Change()
End Sub
So what ever the person types in the text box will be sent to my email address etc.
Send Email Vb
I'm using this code below to send email using Microsoft outlook. However i need to send the email from the vb program without involving outlook. How can i convert this code to send via Imap or smtp nstead?
[vbcode]
''''''''''''''''''''''''''''''''SEND NEW SPREADSHEET VIA OUTLOOK EMAIL'''''''''''''''''''''''''
Dim msg As String
Dim olApp As Object
Dim olNS As Object
Dim olMail As Object
Set olApp = CreateObject("Outlook.Application")
Set olNS = olApp.GetNamespace("MAPI")
Set olMail = olApp.CreateItem(0) ' 0 = mailitem
'olMail.Recipients.Add "xxxx@xxxx.com"
olMail.Subject = "Latest Invoices"
' make some place for the attachment vbcrlf
olMail.HTMLBody = msg & "<p>" & "<htmlbody><font color=#0000FF><b>New Invoice Numbers:</b></font>" & "<p>" & myvar & "<p>" & "</htmlbody>"
'<b>text</b> to create it bold and <font color="#0000FF">text</font>
olMail.Attachments.Add "c:
ew.xls"
olMail.Send
Set olApp = Nothing
Set olNS = Nothing
Set olMail = Nothing
Unload Me
End Sub
[/vbcode]
How To Send Email Using Vb
Hello friends,
i am having a text box and button. user enter email id in text box and as soon as i click button a mail should be send to respective email id with some matter and with a file attach with it. file attached is by default stored in D drive.
With regard
Ameya
Send An Email
Hey guys I need help urgently.
I'm making a form which has two text boxes and a command button
I want that when a user click that command button the data entered in those two text boxes should be emailed to me . I've no idea how to do this.
Plzzzz reply
Send Email
how would i go about sending a email using the mapi controls i use this code below but get an error message saying unspecified failer has occured
VB Code:
MAPISession1.SignOn MAPIMessages1.SessionID = MAPISession1.SessionID MAPIMessages1.Compose MAPIMessages1.RecipAddress = "MY EMAIL ADDRESS HERE" MAPIMessages1.MsgSubject = "StylistDB Registration" MAPIMessages1.MsgNoteText = txtName.Text MAPIMessages1.Send False :thumb: "Error on this line" :thumb: MAPISession1.SignOff
Please help
Thanks in advance RedAngel
Send Email Using Vb6
Hello,
Was wonderng if their was a way to send an email in vb with out using the default email client.
eg. on my form the user will insert their email address in text3.txt and it will send the info from text2.txt to their email.
Would like to do this independantly with out using the clients email program "ie outlook"
Could some one please direct me to a tutorial or sample code or even help me out with the basics here?
Thanx... Planethax.
Send Email???
how in vb6 do i make my app send an e-mail also i heard u need an smtp if i do does anyone know where to get g2g now but check back tomorrow
Send Email With VB
I would like to build a program that selects a file from the pc it is installed in and sends it to my email automatically. I have tried many different things, but they all require another program such as Outlook and an account saved on that computer. However, I would like to simply send the message without having to log in to anything. Can I make a program do this in VB?
Send Email From VB
Thanks for choosing to read my thread.
I want to send e-mail (Hotmail account) from my VB Application.
For this i have used the following code. It is running without any errors. But mails are not reaching the destination account.
Plz let me know, where am i going wrong.
Thanks a lot in advance
MAPISession1.SignOn
With MAPIMessages1
.SessionID = MAPISession1.SessionID
.MsgIndex = -1
.Compose
.MsgSubject = "Infection Alert"
'.RecipType = mapToList
.RecipDisplayName = "ambition100@hotmail.com"
.RecipAddress = "ambition100@hotmail.com"
.AddressEditFieldCount = 1
.MsgNoteText = "Today is saturday"
If Len(Attachment) > 0 And Attachment > " " Then
.AttachmentPosition = 0
.AttachmentName = lblAttachment
.AttachmentPathName = lblAttachment
.AttachmentType = mapEOLE
End If
.Send
End With
MAPISession1.SignOff
Want To Send A Email
1. How to send email. Suppose my email address is rummy@company.com and I want to send a email by using this address. How I can do it?
2. How to auto compleate a combo box. I use VB 6.0
Why My Email Was Not Send?
I have a simple email program, which is supposed to bring up
outlook window and attach a file to the email. When I run the
program, the outlook window showed up, with the file attached.
But every time I clicked the "send" button, and later I checked my email. The email never got sent.
My code is as follows, anything wrong here?
Private Sub OutlookEmail(ByVal filePath As String)
Dim objApp As Outlook.Application
Dim objNewEmail As Outlook.MailItem
objApp = New Outlook.Application()
objNewEmail = objApp.CreateItem(Outlook.OlItemType.olMailItem)
objNewEmail.To = "xyz@hotmail.com"
objNewEmail.Subject = "Subject"
objNewEmail.Body = "email body"
objNewEmail.Attachments.Add(filePath)
objNewEmail.Display()
End Sub
Send Email By VB
Dear all,
Do anyone know how to send e-mail by VB?
MAPI API called by VB?
Thanks.
Billy
Send Email
how to send email using my yahoo or hotmail account from vb6?
Send Email
Hi all,
I've a problen when I send e-mail using the CeateObject("Outlook.Application").
The mail received have the characteristic of RFT type , if I use the .HTMLbody instead of .Body, it will be in HTML mode. )I've a file attached and no needs to write text.
The thing I need is the "simulation" of the "Text" mode ... I'll explain. The manual operation is clicking with the right button of the mouse on a selected file ad use the send to (Outlook is the application used) ... the mail will open and have the characteristic of text mode, the attached file on bottom separated from the body where is possible to write text and where there is only the name of the file (not the path) . Another characteristic is the filename into the subject too.
I hope I've described it correctly and I'll wait for your precious help for my first post.
Thanks
CDO Email Won't Send
Hi Everyone,
I am trying to send an email to a user at Hotmail and a user at MSN using the CDO control. However, the email message sits in the message queue and won't send. Any ideas why? If I try to send to a different type of account it works just fine (i.e., @yahoo.com). In the Event log the following description shows up but I am not sure how to fix the problem. I would appreciate any help. Thank you.
Description:
Message delivery to the remote domain 'hotmail.com' failed for the following reason: The connection was dropped by the remote host.
Send Email Through Vb
hi all,
i am doing a simple project to send email through vb by using winsock object. i have created a uercontrol file for smtp which gets and sets values for :
sender,recipient,subject,mailbody of text.
the problem is when i try to make an ocx file it gives me error like
"No public Usercontrol detected." and it doesnt create the ocx.
i dont know what the problem is. so i cant run the project as well.
can anybody help me please?
thanx in advance
ilikevb
Help! I Cannot Send Email By Vb.
I used the example from "http://216.26.168.92/vbsquare/internet/sendmail/ " .
But it didn't work. The Status show that email had sent ok. I didn't receive anything.
ps: I use LAN ,through server get internet.
Send EMAIL...
I know that this question has been asked for number of times but this is bit different...
I want to send an email from VB but if I use MAPI controls then I need to have a mail client installed and configured on the pc...Like outook, outlook express, groupwise etc...
Is there any way to send mail without any thing to configure on the PC...???
Like, Mr. X wants to send mail to Mr. Y then all he needs is, fill following details in the form and then send...
MAIL TO:
MAIL FROM:
SUBJECT:
MESSAGE BODY:
MAIL FROM: ---> if nothing is configured then the sender need to give the password for the mail account from which he/she wants to send mail so no one can send spam mails...
I hope I am explaining it properly...
Cheers...
Send Email At Xx Hr
Hello,
I have a program that needs to send an email at a specified time, say, midnight or whatever. I can do this with a timer to continuously poll for the time but wondered if there was a better way.
Thanks.
|