Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
| Search | Today's Posts | Mark Forums Read
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 7th, 2004, 12:32 PM
Registered User
 
Join Date: Feb 2004
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help with sending an Attachment in Email

I'm new to VB and need some help. I have a program that creates a text file and the text file needs to be sent to someone via email.

How do I create an Email with subject line and an attachment using VB.Net?
 
Old July 7th, 2004, 01:33 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hey,

Hopefully this can help you out: http://www.dotnetjohn.com/articles.aspx?articleid=7

Brian
 
Old July 7th, 2004, 02:15 PM
Registered User
 
Join Date: Feb 2004
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That code is way over my head. I don't even know where to start with all of that. I have tried using "mailto:" and like the idea, but I can't seem to do attachments with it.

System.Diagnostics.Process.Start("mailto:@email.co m?subject=IP Information&Body=See attachment&Attach=c:\program files\ip info\ip.txt")

If there is a way that will open a email page and fill out all the information along with the attachement, that would be perfect.

I don't want code where it automatically sends the message, because the email may go to different people and it needs to use the users smtp client.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Attachment rat07 PHP How-To 1 June 19th, 2007 01:27 PM
sending mails with extended character + attachment austinf Pro Java 0 February 21st, 2007 01:54 AM
error sending email with attachment using CDO archanahs Classic ASP Professional 1 May 25th, 2006 08:16 AM
Issue sending HTML file as attachment in EMail kdhawan_forum VB Components 0 April 8th, 2005 02:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.