473,507 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET Email From Name (non-email address)

Hi I am sending emails from my website. The from field usually is an
email address, but alot of email readers also seem to be able to
pickup a "from real name". I read somewhere that I can set this by
putting the name followed by the actual email address in
parathesis....like this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Text;
msgMail.From = "funny email Website" + "(we*****@funny.net)";
msgMail.Subject = "Your Document";
msgMail.BodyFormat = MailFormat.Text;
msgMail.Body = " ";
SmtpMail.SmtpServer = "127.0.0.1";
SmtpMail.Send(msgMail);

However this doesn't seem to work for me. I am sending to an email
address in the same domain....I just get from "Website"

Any ideas, I seem to remember that CDONTS had support for a FromName,
why don't we have this in .net????
Jul 21 '05 #1
6 2716
The format is : Display Name <email address>

so msgMail.From = "Some Name <someemail>";

Craig
--
http://www.typemismatch.com/
(For Developers!)

"magister" <MB*********@yahoo.com> wrote in message
news:a0**************************@posting.google.c om...
Hi I am sending emails from my website. The from field usually is an
email address, but alot of email readers also seem to be able to
pickup a "from real name". I read somewhere that I can set this by
putting the name followed by the actual email address in
parathesis....like this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Text;
msgMail.From = "funny email Website" + "(we*****@funny.net)";
msgMail.Subject = "Your Document";
msgMail.BodyFormat = MailFormat.Text;
msgMail.Body = " ";
SmtpMail.SmtpServer = "127.0.0.1";
SmtpMail.Send(msgMail);

However this doesn't seem to work for me. I am sending to an email
address in the same domain....I just get from "Website"

Any ideas, I seem to remember that CDONTS had support for a FromName,
why don't we have this in .net????

Jul 21 '05 #2
The format is : Display Name <email address>

so msgMail.From = "Some Name <someemail>";

Craig
--
http://www.typemismatch.com/
(For Developers!)

"magister" <MB*********@yahoo.com> wrote in message
news:a0**************************@posting.google.c om...
Hi I am sending emails from my website. The from field usually is an
email address, but alot of email readers also seem to be able to
pickup a "from real name". I read somewhere that I can set this by
putting the name followed by the actual email address in
parathesis....like this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Text;
msgMail.From = "funny email Website" + "(we*****@funny.net)";
msgMail.Subject = "Your Document";
msgMail.BodyFormat = MailFormat.Text;
msgMail.Body = " ";
SmtpMail.SmtpServer = "127.0.0.1";
SmtpMail.Send(msgMail);

However this doesn't seem to work for me. I am sending to an email
address in the same domain....I just get from "Website"

Any ideas, I seem to remember that CDONTS had support for a FromName,
why don't we have this in .net????

Jul 21 '05 #3
I did try

msgMail.From = "Some Name <someemail>";

&

msgMail.From = "Some Name (someemail)";

no go, would the mx settings in microsoft exchange
override these coded setting??

Thanks,
Matt
"ilPostino" <ne**@ip80.com> wrote in message news:<O4*************@TK2MSFTNGP10.phx.gbl>...
The format is : Display Name <email address>

so msgMail.From = "Some Name <someemail>";

Craig
--
http://www.typemismatch.com/
(For Developers!)

"magister" <MB*********@yahoo.com> wrote in message
news:a0**************************@posting.google.c om...
Hi I am sending emails from my website. The from field usually is an
email address, but alot of email readers also seem to be able to
pickup a "from real name". I read somewhere that I can set this by
putting the name followed by the actual email address in
parathesis....like this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Text;
msgMail.From = "funny email Website" + "(we*****@funny.net)";
msgMail.Subject = "Your Document";
msgMail.BodyFormat = MailFormat.Text;
msgMail.Body = " ";
SmtpMail.SmtpServer = "127.0.0.1";
SmtpMail.Send(msgMail);

However this doesn't seem to work for me. I am sending to an email
address in the same domain....I just get from "Website"

Any ideas, I seem to remember that CDONTS had support for a FromName,
why don't we have this in .net????

Jul 21 '05 #4
I did try

msgMail.From = "Some Name <someemail>";

&

msgMail.From = "Some Name (someemail)";

no go, would the mx settings in microsoft exchange
override these coded setting??

Thanks,
Matt
"ilPostino" <ne**@ip80.com> wrote in message news:<O4*************@TK2MSFTNGP10.phx.gbl>...
The format is : Display Name <email address>

so msgMail.From = "Some Name <someemail>";

Craig
--
http://www.typemismatch.com/
(For Developers!)

"magister" <MB*********@yahoo.com> wrote in message
news:a0**************************@posting.google.c om...
Hi I am sending emails from my website. The from field usually is an
email address, but alot of email readers also seem to be able to
pickup a "from real name". I read somewhere that I can set this by
putting the name followed by the actual email address in
parathesis....like this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Text;
msgMail.From = "funny email Website" + "(we*****@funny.net)";
msgMail.Subject = "Your Document";
msgMail.BodyFormat = MailFormat.Text;
msgMail.Body = " ";
SmtpMail.SmtpServer = "127.0.0.1";
SmtpMail.Send(msgMail);

However this doesn't seem to work for me. I am sending to an email
address in the same domain....I just get from "Website"

Any ideas, I seem to remember that CDONTS had support for a FromName,
why don't we have this in .net????

Jul 21 '05 #5
The Exchange SMTP service can be configured to block outgoing email from
addresses it does not recognize, but I've never encountered this.

The canonical format is 'John Doe <jo*****@somedomain.com>'
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/
"magister" <MB*********@yahoo.com> wrote in message
news:a0*************************@posting.google.co m...
I did try

msgMail.From = "Some Name <someemail>";

&

msgMail.From = "Some Name (someemail)";

no go, would the mx settings in microsoft exchange
override these coded setting??

Thanks,
Matt
"ilPostino" <ne**@ip80.com> wrote in message

news:<O4*************@TK2MSFTNGP10.phx.gbl>...
The format is : Display Name <email address>

so msgMail.From = "Some Name <someemail>";

Craig
--
http://www.typemismatch.com/
(For Developers!)

"magister" <MB*********@yahoo.com> wrote in message
news:a0**************************@posting.google.c om...
Hi I am sending emails from my website. The from field usually is an
email address, but alot of email readers also seem to be able to
pickup a "from real name". I read somewhere that I can set this by
putting the name followed by the actual email address in
parathesis....like this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Text;
msgMail.From = "funny email Website" + "(we*****@funny.net)";
msgMail.Subject = "Your Document";
msgMail.BodyFormat = MailFormat.Text;
msgMail.Body = " ";
SmtpMail.SmtpServer = "127.0.0.1";
SmtpMail.Send(msgMail);

However this doesn't seem to work for me. I am sending to an email
address in the same domain....I just get from "Website"

Any ideas, I seem to remember that CDONTS had support for a FromName,
why don't we have this in .net????

Jul 21 '05 #6
The Exchange SMTP service can be configured to block outgoing email from
addresses it does not recognize, but I've never encountered this.

The canonical format is 'John Doe <jo*****@somedomain.com>'
--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/
"magister" <MB*********@yahoo.com> wrote in message
news:a0*************************@posting.google.co m...
I did try

msgMail.From = "Some Name <someemail>";

&

msgMail.From = "Some Name (someemail)";

no go, would the mx settings in microsoft exchange
override these coded setting??

Thanks,
Matt
"ilPostino" <ne**@ip80.com> wrote in message

news:<O4*************@TK2MSFTNGP10.phx.gbl>...
The format is : Display Name <email address>

so msgMail.From = "Some Name <someemail>";

Craig
--
http://www.typemismatch.com/
(For Developers!)

"magister" <MB*********@yahoo.com> wrote in message
news:a0**************************@posting.google.c om...
Hi I am sending emails from my website. The from field usually is an
email address, but alot of email readers also seem to be able to
pickup a "from real name". I read somewhere that I can set this by
putting the name followed by the actual email address in
parathesis....like this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Text;
msgMail.From = "funny email Website" + "(we*****@funny.net)";
msgMail.Subject = "Your Document";
msgMail.BodyFormat = MailFormat.Text;
msgMail.Body = " ";
SmtpMail.SmtpServer = "127.0.0.1";
SmtpMail.Send(msgMail);

However this doesn't seem to work for me. I am sending to an email
address in the same domain....I just get from "Website"

Any ideas, I seem to remember that CDONTS had support for a FromName,
why don't we have this in .net????

Jul 21 '05 #7

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

Similar topics

6
4942
by: Mark | last post by:
Is there anyway I can set up a personal 'remailer' type of thing on my domain ? I can not email a friend at his workplace because his company have put a 'block' on emails from my work address...
10
4798
by: Ellen K. | last post by:
What tools has everyone used for cleaning name and address data (including identifying not-immediately-obvious duplicates) in connection with a CRM project or the Customer dimension of a data...
3
2431
by: Kam | last post by:
In my asp server page, I would like to collect the USERID, Client Machine Name, IP Address information and passing it back to the server for validation control. How can I achieve it in Jscript?
8
2358
by: ehames | last post by:
Hi guys, As far as I know, for any type T, and positive integer N, if I have an array declared as: T array; then, &array and array are the same element. Is there any reason why a
1
1430
by: Ansari | last post by:
hi all is there anyother method for hiding page name from address bar of the browser... I dont want to show the compelete url in address bar Thanks Ansari
0
3193
by: jjalexrayer | last post by:
How do hide page name in address bar? This is my task. every programmer displaying every page name on Address bar. for example C://inetpub/wwwroot/project1/sample.aspx . instead of this url i...
3
26102
usafshah
by: usafshah | last post by:
C:\Documents and Settings\Link>nslookup *** Can't find server name for address 192.168.0.100: Non-existent domain Default Server: UnKnown Address: 192.168.0.100 > mypc *** UnKnown can't find...
8
8532
alpnz
by: alpnz | last post by:
Hi, I have a need to send snap reports to various shipping agents. E.g. A PalletCard, A FreightNote, A Consignment Advice, and an Export declaration of Conformity. It is easy enough to code a...
1
6392
by: vinaykeshav | last post by:
hi, I had a web proj which i overwrite with another copy of solution from a n/w place to update the files... but after doing this the web doesnt load... all other web applications doesnt have...
3
7074
by: cmk817 | last post by:
Hi All, I'm just starting out (sort of)... and i can't even get connected to a database. We have an intranet server running CF... I'm trying to connect using dreamweaver... something funky is...
0
7376
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...
1
7031
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
7485
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
5623
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,...
1
5042
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...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.