Welcome to Dream.In.Code
Become a VB Expert!

Join 137,231 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,826 people online right now. Registration is fast and FREE... Join Now!




Email in VB

 
Reply to this topicStart new topic

Email in VB

lsouth777
18 Jan, 2007 - 01:04 PM
Post #1

New D.I.C Head
*

Joined: 13 Jan, 2007
Posts: 1


My Contributions
I've been working on a simple program that will email a text automatically from VB. I've searched all over, but haven't found anything that has worked for me. Any help is greatly appreciated smile.gif Thanks
User is offlineProfile CardPM
+Quote Post

Maxcor3
RE: Email In VB
18 Jan, 2007 - 08:12 PM
Post #2

New D.I.C Head
*

Joined: 11 Jan, 2007
Posts: 17


My Contributions
Why not use a php script, host the php script somewhere and have vb pass the variables to the script. Im sure theres a better way, but thats all i can think of atm.
User is offlineProfile CardPM
+Quote Post

born2c0de
RE: Email In VB
19 Jan, 2007 - 12:29 AM
Post #3

printf("I'm a %XR",195936478);
Group Icon

Joined: 26 Nov, 2004
Posts: 3,914



Thanked: 34 times
Dream Kudos: 2800
Expert In: 80x86 Assembly, C/C++, VB6, VB.NET, C#, J2SE, Win32 API, Reversing

My Contributions
You can send email from VB using OLE ie. by creating an Outlook Express Object.
But Most VB Worms use this technique for replication, and hence at times even legitimate programs are treated as worms by Antivirus Software.
User is offlineProfile CardPM
+Quote Post

Naike
RE: Email In VB
19 Jan, 2007 - 10:59 AM
Post #4

New D.I.C Head
*

Joined: 18 Jan, 2007
Posts: 9


My Contributions
Im interested in the Php thing, yould you explain it more accurate?
User is offlineProfile CardPM
+Quote Post

Maxcor3
RE: Email In VB
19 Jan, 2007 - 11:48 AM
Post #5

New D.I.C Head
*

Joined: 11 Jan, 2007
Posts: 17


My Contributions
Okay basically find a php mail script that will send mail. Edit it to use the GET method to get the variables and if they exist, send the message. Use VB to pass the variables to the script of the series of tubes and then it will just send. I just thought that up when I posted that though so it might not work.
User is offlineProfile CardPM
+Quote Post

m2s87
RE: Email In VB
21 Jan, 2007 - 08:23 AM
Post #6

D.I.C Regular
Group Icon

Joined: 28 Nov, 2006
Posts: 390



Thanked: 1 times
Dream Kudos: 1225
My Contributions
QUOTE(Maxcor3 @ 19 Jan, 2007 - 12:48 PM) *

Okay basically find a php mail script that will send mail. Edit it to use the GET method to get the variables and if they exist, send the message. Use VB to pass the variables to the script of the series of tubes and then it will just send. I just thought that up when I posted that though so it might not work.


You can send the letter using a webbrowser control, just go to the server that sends them and fill the form up with your data.

You can use your set up server to do that, so even using an existing php mailing script would to.

You can use outlook object like described before.

You can use TCP, to build yourself a email sender.

You can use shell to send emails.

Probably there are a lot more ways you can do this, but i guess you need only 1. Probably, soon, you can find a solution in snippets.
User is offlineProfile CardPM
+Quote Post

arun1516
RE: Email In VB
8 Feb, 2007 - 04:05 AM
Post #7

New D.I.C Head
*

Joined: 8 Feb, 2007
Posts: 5


My Contributions
QUOTE(lsouth777 @ 18 Jan, 2007 - 02:04 PM) *

I've been working on a simple program that will email a text automatically from VB. I've searched all over, but haven't found anything that has worked for me. Any help is greatly appreciated smile.gif Thanks



just select SMTP control from Components ( under project menu (visual basic))

With SMTP 'name for control
.Server = outgoingserver 'Outgoing server name or IP address

.MailFrom = mailFrom 'Sender mail address

.SendTo = mailto 'to whom you want to send mail

.MessageSubject ='Subject of message

.MessageText = mailtext 'mail text

.Attachements.Add attachmentpath 'if you want ot attach any file just give the path here

DoEvents

.Connect

End With

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 03:28PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month