473,378 Members | 1,364 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,378 software developers and data experts.

Setting MailMessage email address

Hi,

When an email is sent, the recipient receives the email with the from
showing something like:
active [em***@somewhere.com]

When using a c-based smtp class, I can set the "display" name to anything I
want so the recipient may see:
John Smith [em***@somehwere.com]

I've been unable to find a way to set the "display" name using the
MailMessage or SmtpMail classes. Is there a class or a methodology in these
classes to accomplish this?

The reason we do this is that we use one outgoing account on all emails, but
we'd like to show the actual name of the person who was logged in when an
error occurred in the from field.

Thanks much for any help.

Arthur
Nov 18 '05 #1
0 927

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

Similar topics

2
by: WEIWEIWEI | last post by:
Hi al I am now using MailMessage class to encapsulate a mail message I would like to know, would it be possible to set the "reply to" address as aaaa@aaaa.com, while the receiver will see...
1
by: James | last post by:
Is there a way of getting the default email address for the logged in user? I am creating a MailMessage and need a valid from address in order to send an email in my app with SmtpMail.Send.
2
by: Richard Bogle | last post by:
Hi, MailMessage.From allows me to set the email address that the message comes from but not the "covering address" (sorry, no idea what the correct terminology might be). The email message...
0
by: desi.american | last post by:
I'm using System.Web.Mail to send an email message from an ASP.NET web page. This is the main section of the code. //************* start code ***************************** string mailHost =...
5
by: martin | last post by:
Hi, I have created a class that is totally seperate from my web application. However this class is used extensivly by the web application for stuff like data access. I wish to add a function to...
6
by: Nathan Sokalski | last post by:
I am using the MailMessage and SmtpMail classes to allow users of my site to send me email at my Hotmail email address. However, it always ends up in the Junkmail folder. Even though I check my...
7
by: MSG Servicos de Informatica | last post by:
Hi MSDN Team! I have a doubt about the "MailMessage" class in Framework .NET 1.1. My SMTP server works in a local network that no have access to the internet for security reasons. And in my...
8
by: Howard | last post by:
Using visual studio 2005 I am sending an email using a vaiable Dim mail As New MailMessage() and then later setting the recipient address by mail.To = name@domain.co.uk This works fine....
5
by: Vlad | last post by:
We are trying to set MailMessage Content-Type to be text/calendar The following code has been used: string subject = "Calendar test 3"; MailMessage emailMessage = new MailMessage();...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.