473,671 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Sending emails with attachments...

I am trying to use VB.net to create a small applet that will run once a day
to email a file to head office...

having some problems with the file attachment... it is going to be a binary
or text file.

anyone have any luck with this?

any help would be greatly appreciated
Nov 21 '05 #1
2 1162
Do you want to use CDO, System.Web.Mail or Outlook?

Here's an Outlook article:

http://support.microsoft.com/default...b;en-us;313803

System.Web.mail examples:

http://www.codeproject.com/vb/net/SendMail.asp

http://www.planet-source-code.com/vb...=245&lngWId=10

http://www.planet-source-code.com/vb...1879&lngWId=10

http://www.planet-source-code.com/vb...=767&lngWId=10

http://www.planet-source-code.com/vb...=136&lngWId=10

http://www.planet-source-code.com/vb...2004&lngWId=10

http://www.planet-source-code.com/vb...3563&lngWId=10

http://www.planet-source-code.com/vb...=402&lngWId=10

http://www.gotdotnet.com/Community/U...6-36d262b54bc6

http://www.gotdotnet.com/Community/U...d-ffb61e45af78

http://www.gotdotnet.com/Community/U...f-d77602fd116f

http://www.gotdotnet.com/Community/U...d-ffb61e45af78

The above are a few for you to be learning from. Not tried or viewed any of
them though, so, please try them

Crouchie1998
BA (HONS) MCP MCSE


"Atley" <at*****@hotmai l.com> wrote in message
news:eY******** ******@TK2MSFTN GP10.phx.gbl...
I am trying to use VB.net to create a small applet that will run once a day to email a file to head office...

having some problems with the file attachment... it is going to be a binary or text file.

anyone have any luck with this?

any help would be greatly appreciated

Nov 21 '05 #2
www.vbip.com
this site had a tutorial for u

Atley wrote:
I am trying to use VB.net to create a small applet that will run once a day
to email a file to head office...

having some problems with the file attachment... it is going to be a binary
or text file.

anyone have any luck with this?

any help would be greatly appreciated

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
308
by: Ron Vecchi | last post by:
I've used System.Web.Mail before but have never had the need to send attchemnets through it...until now. A client of mine would like a form on the website to allow a user to type up a message and upload a file. I'm staying away from mailto links. So the file and message will be uploaded to the server when the user clicks send. The new file and message will be processed and emailed from the server to my client. I'm tring to get any...
4
3967
by: Liz Patton | last post by:
Here's the exception: System.Exception: Unable to send mail: Could not access 'CDO.Message' object. ---> System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80004005): Unspecified error --- End of inner exception stack trace ---
6
2740
by: Anuradha | last post by:
Dear All How can i send mails using vb.net Thanx all
5
2966
by: horsetransport | last post by:
Hello, Below is what I "Know how to do" but it doesn't accomplish what I want I have table called sndmail fields that matter useremail and mailsent
7
4383
by: Ray Booysen | last post by:
Hi all I'm sending email via ASP.NET in HTML mode. Each email has exactly one attachment and I do have full access to the SMTP server. However, if I send the email in HTML format, the framework reports the following exception: "System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown
3
1546
by: lizii | last post by:
Hey there - hopefully last newbie question i will ask for a while! I want my application to work where you click a button - and it either: a) open a email application - insert the correct email address and add a subject + any attachments or b) just create an email and send it off with appropriate attachments etc.
0
1216
by: manevski ognjen | last post by:
Hi, I have one problem with console application and threading. In my SMtp class I have method that sends emmails with attachments with html text. Program should work with, let say 10 emails, and everyone of them is different. If i send file of 2Mb html data, the other files in other emails should be sent asynchrony with that file. But my program does not work very well. when I put mmain Thread to sleep, everything works just
3
1448
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi, I'm using the bellow code to send emails in a Website that I uploaded in one of my client's server where it has SMTP installed, BUT some users are receiving email some others aren't !!?So, what could be the problem? knowing that all users are using the same code and hitting the same server. MailMessage objMailMsg = new MailMessage(strFrom,
6
9786
by: ssankar | last post by:
hi all - I have been tasked to send customized emails to a set of users based on a certain condition in my company. ( This is NOT SPAM ) I have used MIME::Lite successfully to send html templates as emails. the users in my company are Outlook users. But for some reason my emails sometimes reach the Junk E-Mail folder( I am sending using my own company issued email address ) Here's the code I currently use: #!/usr/bin/perl -w use...
0
8472
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8390
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
7428
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4399
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2806
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2048
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1801
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.