Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 May 20th, 2008, 02:47 PM
Registered User
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Renaming an Email File Attachment

Problem: I would like to be able to rename an email file attachment after I attach the file but before I send the email.

I read the following post and tried the solution but I couldn't get it to work. http://p2p.wrox.com/topic.asp?TOPIC_ID=32540

Let me know if anyone has a solution.

Thanks for the help.

-James Walters
Old May 21st, 2008, 12:43 PM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

Isn't that as simple as setting the Name property of the attachment instance?

Imar Spaanjaars
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Email Attachment rat07 PHP How-To 1 June 19th, 2007 01:27 PM
Issue sending HTML file as attachment in EMail kdhawan_forum VB Components 0 April 8th, 2005 02:02 PM
EMail (CDONTS) File Attachment is blank Jorge Classic ASP Components 1 March 11th, 2004 03:54 PM
email an attachment GeoMeskin Javascript 1 December 17th, 2003 04:04 PM

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