473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Email Excel

Hello
I was wondering if there is a way to send and excel sheet as an attached
file without sending this file to outlook

Hayman
Nov 20 '05 #1
6 2693
Cor
Are you sure this is a Visual Basic Studio Net Language question?
Nov 20 '05 #2
Yes, I'm trying to do that using visual basic, otherwise I would have sent
it to somewhere else.

"Cor" <no*@non.com> wrote in message
news:3f***********************@reader21.wxs.nl...
Are you sure this is a Visual Basic Studio Net Language question?

Nov 20 '05 #3
Hi,

SmtpMail will send an email without outlook. It requires you to
have the SmtpMail service installed for it to work. Add a reference to
system.web.dll to your soultion.

Dim mm As New MailMessage()

mm.To = "to@msn.com"

mm.From =" fr**@msn.com"

mm.Subject = "excel file"

mm.Body = "see attached"

mm.Attachments.Add(New MailAttachment("C:\test.xls"))

SmtpMail.Send(mm)

Ken

----------------------

"Hayman" <ha****@boozallen.com> wrote in message
news:Op**************@tk2msftngp13.phx.gbl...
Hello
I was wondering if there is a way to send and excel sheet as an attached
file without sending this file to outlook

Hayman

Nov 20 '05 #4
Thank you Ken
Hayman

"Ken Tucker" <vb***@bellsouth.net> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,

SmtpMail will send an email without outlook. It requires you to
have the SmtpMail service installed for it to work. Add a reference to
system.web.dll to your soultion.

Dim mm As New MailMessage()

mm.To = "to@msn.com"

mm.From =" fr**@msn.com"

mm.Subject = "excel file"

mm.Body = "see attached"

mm.Attachments.Add(New MailAttachment("C:\test.xls"))

SmtpMail.Send(mm)

Ken

----------------------

"Hayman" <ha****@boozallen.com> wrote in message
news:Op**************@tk2msftngp13.phx.gbl...
Hello
I was wondering if there is a way to send and excel sheet as an attached
file without sending this file to outlook

Hayman


Nov 20 '05 #5
Hello,

"Hayman" <ha****@boozallen.com> schrieb:
I was wondering if there is a way to send and excel sheet as an attached
file without sending this file to outlook


http://www.mvps.org/dotnet/dotnet/samples/net/
-> "SendMail"

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #6
Cor
I see it was a basic question :)
Nov 20 '05 #7

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

Similar topics

3
by: jawahar rajan | last post by:
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????...
9
by: sifar | last post by:
Hi, I am right now learning PHP & want to know if there is a way to send web form data to an Excel sheet located on a network. My windows xp PC doesnot have a copy of Excel. Also i am not...
1
by: marat | last post by:
I have a C# app that sends an excel file as an attachment. The only problem is that it prompts the user with a dailog box asking if really necessary to send it - saying it could possibly be a virus...
11
by: Chubbly Geezer | last post by:
Hi I'm in the process of converting an access db to vb2005. My old app has code that sends an email with a table attachment formatted to excel. I want to do the same within vb, i.e. create an...
0
by: mattmerc | last post by:
Hi all, I recently posted a question similar to this, but now I have a different need than what I had anticipated. Thanks all for your help so far. Here is what I am looking for: I have an...
1
by: Dennis Benjamin | last post by:
Hi All Hope this isn't a FAQ - I've looked for several hours and can't find an answer. I've written my first VB.NET app, a ~20 line console application that opens up an Excel document, compares...
1
by: kaykae | last post by:
Hi all, Please help. This is something the users wants so I have to ask if it's possible. I have this pivot table in excel that i'm going to copy and paste into email (autogenerating the email...
5
by: cdun2 | last post by:
Hello, I'm a non_VBA coder who has been asked to update the following Function: ************************** Function EMAILER_REV_BY_ACCTCODE_MACRO() On Error GoTo RA_EMAILER_Err ...
12
by: forrestgump | last post by:
I am currently trying to create VBA to send a specified excel sheet to varied email sources. I currently have the code below which sends the attachment in an email to a specified source e.g....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.