473,396 Members | 2,030 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,396 software developers and data experts.

email attachment from string

Is there any way of sending email with attachment created from string ? I dont want to save this string as Text file on hard drive.

Thank you
Piotr Wójcicki
Nov 18 '05 #1
6 2138
I had a similair issue.

The way i got around it, was by first creating a file on the server.
Attaching that file to the email and sending it,
and then finally deleting the file from the server.

Hope that helps

------------------------------------------------------
"Piotr Wójcicki" <pwl@USUN_TO.4me.pl> wrote in message
news:ch**********@nemesis.news.tpi.pl...
Is there any way of sending email with attachment created from string ? I
dont want to save this string as Text file on hard drive.

Thank you
Piotr Wójcicki
Nov 18 '05 #2

Użytkownik "GrantMagic" <gr***@magicalia.com> napisał w wiadomości news:uL*************@TK2MSFTNGP09.phx.gbl...
I had a similair issue.

The way i got around it, was by first creating a file on the server.
Attaching that file to the email and sending it,
and then finally deleting the file from the server.

Hope that helps


It creates lots of problems cause the attachment needs to have fixed name, same for every session.
How to avoid filenames conflicts ?
Where to write files ? ( I want to run it on Windows 2003 server)
Nov 18 '05 #3
Piotr,

A attachment is forever a file however not that I ever tried it, but maybe
you can do something with the memorystream?

http://msdn.microsoft.com/library/de...classtopic.asp

I really do not know if it helps

Cor


Nov 18 '05 #4
On Thu, 9 Sep 2004 13:08:22 +0200, Piotr Wójcicki wrote:
Użytkownik "GrantMagic" <gr***@magicalia.com> napisał w wiadomości news:uL*************@TK2MSFTNGP09.phx.gbl...
I had a similair issue.

The way i got around it, was by first creating a file on the server.
Attaching that file to the email and sending it,
and then finally deleting the file from the server.

Hope that helps


It creates lots of problems cause the attachment needs to have fixed name, same for every session.
How to avoid filenames conflicts ?
Where to write files ? ( I want to run it on Windows 2003 server)


Give the file a Guid as a name, that should resolve any potential name
conflicts. Try using isolated storage for your file (if it works for ASP)
http://www.ondotnet.com/pub/a/dotnet...edstorage.html

/Hugo
Nov 18 '05 #5

Użytkownik "Hugo Wetterberg" <hu*************@smi.mas.lu.se> napisał w wiadomości news:1n*****************************@40tude.net...
Give the file a Guid as a name, that should resolve any potential name


How do i change Attachmets name to fixed name after creating if from file named with guid ?

Attachment.Filename property is read only.
Nov 18 '05 #6
On Thu, 9 Sep 2004 16:27:57 +0200, Piotr Wójcicki wrote:
Użytkownik "Hugo Wetterberg" <hu*************@smi.mas.lu.se> napisał w wiadomości news:1n*****************************@40tude.net...
Give the file a Guid as a name, that should resolve any potential name


How do i change Attachmets name to fixed name after creating if from file named with guid ?

Attachment.Filename property is read only.


I guess that sort of rules out naming the file after a guid. You could
create a folder named after the session id, or a guid (overkill), and put
the uploaded file there. Then at least you have isolated the users from
each other and don't have the same concurrency problem. From here it will
be a simple matter of checking if the user already has uploaded a file with
the same name and use some naming conventions for duplicates.

/Hugo
Nov 18 '05 #7

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

Similar topics

0
by: MikeM | last post by:
The email address stays through each loop and keeps adding the next email address. joe@email.com then the next run would be joe@email.com; mike@email.com etc... The subject and the attached file...
1
by: Nicole | last post by:
Hello! I hope there is someone out there who can shed some light on this for me. I have a module that is supposed to look at an access table, pull out each bid record, link to another table to...
1
by: Jeff S via AccessMonster.com | last post by:
Hello, I got some code from http://www.fabalou.com/VBandVBA/lotusnotesmail.asp to send emails atomatically from access. It works but does not attach anything to the email I am trying to email...
3
by: =?Utf-8?B?SHVnaA==?= | last post by:
Hi There, I use follow code to send email inside VB.NET 2005. It does not work well. Error message of "Failure sending email" would occue. However, email was sent out sometimes. I am confused...
7
by: erikcw | last post by:
Hi all, I'm trying to extract zip file (containing an xml file) from an email so I can process it. But I'm running up against some brick walls. I've been googling and reading all afternoon, and...
1
by: zivon | last post by:
now for the bigger problam :) I know you pepole hate using OE for sending emails, but its user friendly and its needed in this case... I found on this forum, a code that sends email using OE...
1
by: sxwend | last post by:
I am trying to use the following post results (http://www.thescripts.com/forum/thread189759.html) and add another requirement. I need to send the results to just the email addresses that the query...
7
by: Paridevi | last post by:
Hai , i want to send email in .Net Using OutLook Express,My Project is Web Application using vb.Net 2003 with SQL Server 2000.I have searched a lot in Google, but ican't get any...
1
by: budyerr | last post by:
All, I am trying to build a email submission form using asp.net. I currently have a web form page that will upload to my webhosting server, attach to email then delete the file after sending. ...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.