Anyone Have Any Good Examples On How To Send Email With A Proxy?
using the winsock control?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Send Email Through Proxy Using VB6
Is it possible to send email using VB6 code. This code should work on the proxy connection too and should be effecient. I have tried a few objects but these didn't send email through proxy. Don't know whether they these will work on a normal email connection. Please give me your valuable input...
Some Good File I/o Examples?
i'm experimenting with file i/o atm, but even after reading the tutorials and browsing this forum a bit i'm still nowhere...
i'm right now simply trying to read a small file (3kb) into memory (string? byte array?) and writing it to another file again. that shouldn't be too difficult.
alas the tutorial did manage to tell me lots of things, except anything applicable, and searching the threads here i only seem to find code of problems occuring when things are already in the memory...
this must be so obviously simple but i just can't find a single recourse clearly explaining it :s
Any Good Systray Examples Out There?
I am also trying to use the Systray and haven't a clue how to use it. Is there any good code out there that shows how to do this?
Thanks,
blake
Good Examples Needed...
Hi,
Can anyone provide some links to good examples of data base programming in VB. I've been in VB for many years, but have never done any DB work, but now I have a need to.
thanks
kevin
Class Modules - Need Good Examples Please
Hi,
I am trying to find some example(s) that will help me understand class modules. I've read through a few tutorials, but my brain is rejecting the concept.
I use code modules all the time for shared subroutines, but do not understand when I would need to use a class module.
Does anyone have a site or book or real world example they could recommend that explains this to a beginning VB programmer ?
Thanks for any leads.
Proxy Good Or Bad
hi
im trying to make my own webbrowser but want to use proxies to connect does anyone know how to do the code to tell you if the proxy is good or bad?and if its good to say its good and the same for if its bad and can connect thanks
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.
To Send Mail Using Proxy IPs
I want to use Proxy Servers to send mail. Can any one help me how to use proxy servers.....
With the hope that some one will solve my query.....
Thanks in Advance
jaharul
How To Send Message Over A Proxy Server
Hi all
I am using winsock control to send messages from one IP to other on TCP/IP protocol. But i have a problem in sending to a client behind a Proxy sever.
Any ideas
Please help me
Latha
Sending Email With Attachments Through Proxy Server
I've been using vbSendMail to send email with attachments through a VB6 program using GoDaddy mail servers (which use port 80), however I cannot send email on several computers that go through a proxy server to connect to the internet. I didn't find any documentation in vbSendMail about sending email through a proxy server, wondered if anyone had any suggestions/comments.
Thanks!
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
Examples Needed: AppForge Resources And Examples
Hi guys. Anyone who knows any resources or examples I can learn about appforge? I need some complete applications written in mobile visual basic platform that will eventually exported to PDA or palms. Thanks for any help.
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
How Do You Change The Defalt Email Account In Outlook 2003 Good Feed Back For Answer!
Here my code it works great but it always send from the defult email account in outlook 2003 , I have 3 other email account in outlook I would like to have a choose on my program to send using another email account beside the defult here my code
g Code:
'Add a reference to MS Outlook xx.0 Object Library
Private Sub Command1_Click()
Dim oApp As Outlook.Application
Dim oEmail As Outlook.MailItem
Set oApp = New Outlook.Application
Set oEmail = oApp.CreateItem(olMailItem)
With oEmail
.To = "myfriend@yahoo.com"
.CC = ""
.Subject = "look at this "
.BodyFormat = olFormatPlain
.body = " dhjfhds dhjkf dkshds fkjd"
.Importance = Combo7.ListIndex
.ReadReceiptRequested = True
'.Attachments.Add "C:Cat.bmp", olByValue
.Recipients.ResolveAll
.Save
.display 'Show the email message and allow for editing before sending
.Send 'You can automatically send the email without displaying it.
End With
Set oEmail = Nothing
oApp.Quit
Set oApp = Nothing
End Sub
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
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
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.
|