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

Email Sender info!

Hi all....
Sending e-mails by ASP.NET is quite easy and flexible....
But i have a small problem:
How do i send the sender's name with the e-mail? when i send ASP.NET mail
using the SmtpMail.Send() i get the sender's e mail address in the name
feild of the inbox of the recepient.
I even looked att the System.Web.Mail.MailMessage class but couldnt find the
answer.
any suggestions?
Ammar

Nov 18 '05 #1
4 3392
I don't think you can....you will most likely need a 3rd party package.

"Ammar" <am**********@comhem.se> wrote in message
news:Dg********************@newsc.telia.net...
Hi all....
Sending e-mails by ASP.NET is quite easy and flexible....
But i have a small problem:
How do i send the sender's name with the e-mail? when i send ASP.NET mail
using the SmtpMail.Send() i get the sender's e mail address in the name
feild of the inbox of the recepient.
I even looked att the System.Web.Mail.MailMessage class but couldnt find the answer.
any suggestions?
Ammar

Nov 18 '05 #2
I've not used this but have you tried specifying the senders email address
as "SenderName<se********@mydomain.com>" ? in some controls that works,
maybe here?

Hope this helps!
wardeaux

"Ammar" <am**********@comhem.se> wrote in message
news:Dg********************@newsc.telia.net...
Hi all....
Sending e-mails by ASP.NET is quite easy and flexible....
But i have a small problem:
How do i send the sender's name with the e-mail? when i send ASP.NET mail
using the SmtpMail.Send() i get the sender's e mail address in the name
feild of the inbox of the recepient.
I even looked att the System.Web.Mail.MailMessage class but couldnt find the answer.
any suggestions?
Ammar

Nov 18 '05 #3
You can do this by formatting the To property correctly.
Ammar, I'm guessing your current To property looks something like the
following:

MailMessage m = new MailMessage();
m.To = "my*******@mydomain.com";

Instead, try:

m.To = "My Name <my*******@mydomain.com>";

You can read RFC 822 to get all the nitty gritty details and options.
http://www.faqs.org/rfcs/rfc822.html

--
Scott
http://www.OdeToCode.com

On Wed, 7 Jul 2004 12:16:12 -0400, "Rob T"
<RT*********@DONTwalchemSPAM.com> wrote:
I don't think you can....you will most likely need a 3rd party package.

"Ammar" <am**********@comhem.se> wrote in message
news:Dg********************@newsc.telia.net...
Hi all....
Sending e-mails by ASP.NET is quite easy and flexible....
But i have a small problem:
How do i send the sender's name with the e-mail? when i send ASP.NET mail
using the SmtpMail.Send() i get the sender's e mail address in the name
feild of the inbox of the recepient.
I even looked att the System.Web.Mail.MailMessage class but couldnt find

the
answer.
any suggestions?
Ammar


Nov 18 '05 #4
Hi
Thank yo so much for the wonderful information...
thank yo all
Ammar

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:k3********************************@4ax.com...
You can do this by formatting the To property correctly.
Ammar, I'm guessing your current To property looks something like the
following:

MailMessage m = new MailMessage();
m.To = "my*******@mydomain.com";

Instead, try:

m.To = "My Name <my*******@mydomain.com>";

You can read RFC 822 to get all the nitty gritty details and options.
http://www.faqs.org/rfcs/rfc822.html

--
Scott
http://www.OdeToCode.com

On Wed, 7 Jul 2004 12:16:12 -0400, "Rob T"
<RT*********@DONTwalchemSPAM.com> wrote:
I don't think you can....you will most likely need a 3rd party package.

"Ammar" <am**********@comhem.se> wrote in message
news:Dg********************@newsc.telia.net...
Hi all....
Sending e-mails by ASP.NET is quite easy and flexible....
But i have a small problem:
How do i send the sender's name with the e-mail? when i send ASP.NET mail using the SmtpMail.Send() i get the sender's e mail address in the name
feild of the inbox of the recepient.
I even looked att the System.Web.Mail.MailMessage class but couldnt
findthe
answer.
any suggestions?
Ammar

Nov 18 '05 #5

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

Similar topics

2
by: Joe | last post by:
Hi, I am sending an email from an asp page. Besides sending an email to sender, I am sending myself a BCC also. Out of 100 emails sent, about 5 recipients received a blank email (no text in...
8
by: Dica | last post by:
i've got a client that wants to be able to review records about IIS generated emails. in his own words, he wants the "ability to track and report message status (i.e. how many messages were sent...
4
by: acni | last post by:
I have the following peice of code to try and send an email to selected contacts in my form.The problem is this line: StrStore = DLookup("", "qrySelectEmail", "??????") This looks up the email...
3
by: Jakub Otahal | last post by:
Hi all, I have problem........ I have array of buttons and I want to call one common event service. But I need to know the index of clicked button -- how can I do that? thanks jakub
3
by: Harry | last post by:
Hi, Can anyone help. I have a asp.net page (c#), with two panels, both of which have asp:textboxes on. When I press the first button, the second panel shows fine. When I press the button in...
0
by: I am Sam | last post by:
Ok I don't know what is the problem with my code But I am trying to build a newsletter that gathers parameters from 3 textbox controls and a Listbox control. The form then queries the event table...
4
by: ianbarton | last post by:
Hello all I am trying to setup a feedback form on my webpage using some script provided by my ISP. I really don't know a lot about PHP and it's syntax etc. The feedback form only has 4...
6
by: gnewsgroup | last post by:
I am using Peter Bromberg's code to send email through gmail smtp service in my asp.net web application. Thanks, Peter. The problem with gmail smtp is that gmail will overwrite the sender's...
4
by: suganya | last post by:
Hi By getting the email id from txtEmailId, I have to send the user name & password to that particular email id. For that on button click event I have given the coding as Protected Sub...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.