473,791 Members | 3,059 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....l ike this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Te xt;
msgMail.From = "funny email Website" + "(we*****@funny .net)";
msgMail.Subject = "Your Document";
msgMail.BodyFor mat = MailFormat.Text ;
msgMail.Body = " ";
SmtpMail.SmtpSe rver = "127.0.0.1" ;
SmtpMail.Send(m sgMail);

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 2741
The format is : Display Name <email address>

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

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

"magister" <MB*********@ya hoo.com> wrote in message
news:a0******** *************** ***@posting.goo gle.com...
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....l ike this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Te xt;
msgMail.From = "funny email Website" + "(we*****@funny .net)";
msgMail.Subject = "Your Document";
msgMail.BodyFor mat = MailFormat.Text ;
msgMail.Body = " ";
SmtpMail.SmtpSe rver = "127.0.0.1" ;
SmtpMail.Send(m sgMail);

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*********@ya hoo.com> wrote in message
news:a0******** *************** ***@posting.goo gle.com...
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....l ike this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Te xt;
msgMail.From = "funny email Website" + "(we*****@funny .net)";
msgMail.Subject = "Your Document";
msgMail.BodyFor mat = MailFormat.Text ;
msgMail.Body = " ";
SmtpMail.SmtpSe rver = "127.0.0.1" ;
SmtpMail.Send(m sgMail);

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.co m> wrote in message news:<O4******* ******@TK2MSFTN GP10.phx.gbl>.. .
The format is : Display Name <email address>

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

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

"magister" <MB*********@ya hoo.com> wrote in message
news:a0******** *************** ***@posting.goo gle.com...
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....l ike this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Te xt;
msgMail.From = "funny email Website" + "(we*****@funny .net)";
msgMail.Subject = "Your Document";
msgMail.BodyFor mat = MailFormat.Text ;
msgMail.Body = " ";
SmtpMail.SmtpSe rver = "127.0.0.1" ;
SmtpMail.Send(m sgMail);

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.co m> wrote in message news:<O4******* ******@TK2MSFTN GP10.phx.gbl>.. .
The format is : Display Name <email address>

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

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

"magister" <MB*********@ya hoo.com> wrote in message
news:a0******** *************** ***@posting.goo gle.com...
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....l ike this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Te xt;
msgMail.From = "funny email Website" + "(we*****@funny .net)";
msgMail.Subject = "Your Document";
msgMail.BodyFor mat = MailFormat.Text ;
msgMail.Body = " ";
SmtpMail.SmtpSe rver = "127.0.0.1" ;
SmtpMail.Send(m sgMail);

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*****@somedo main.com>'
--
_______________ _____
Klaus H. Probst, MVP
http://www.vbbox.com/
"magister" <MB*********@ya hoo.com> wrote in message
news:a0******** *************** **@posting.goog le.com...
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.co m> wrote in message

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

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

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

"magister" <MB*********@ya hoo.com> wrote in message
news:a0******** *************** ***@posting.goo gle.com...
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....l ike this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Te xt;
msgMail.From = "funny email Website" + "(we*****@funny .net)";
msgMail.Subject = "Your Document";
msgMail.BodyFor mat = MailFormat.Text ;
msgMail.Body = " ";
SmtpMail.SmtpSe rver = "127.0.0.1" ;
SmtpMail.Send(m sgMail);

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*****@somedo main.com>'
--
_______________ _____
Klaus H. Probst, MVP
http://www.vbbox.com/
"magister" <MB*********@ya hoo.com> wrote in message
news:a0******** *************** **@posting.goog le.com...
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.co m> wrote in message

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

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

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

"magister" <MB*********@ya hoo.com> wrote in message
news:a0******** *************** ***@posting.goo gle.com...
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....l ike this...

MailMessage msgMail = new MailMessage();
msgMail.To = EmailAddress.Te xt;
msgMail.From = "funny email Website" + "(we*****@funny .net)";
msgMail.Subject = "Your Document";
msgMail.BodyFor mat = MailFormat.Text ;
msgMail.Body = " ";
SmtpMail.SmtpSe rver = "127.0.0.1" ;
SmtpMail.Send(m sgMail);

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
4959
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 (the companies we work for are considered rivals) - I am after a way to 'bounce' or forward an email, so my originating address isn't shown. I have tried email forwarding (in CPanel) using addresses set up
10
4836
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 warehouse? What did you like/dislike about the tool you used? How customizable was the tool you used?
3
2439
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
2375
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
1439
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
3208
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 want to display like C://inetpub/wwwroot/project1/ . how it is possible? Any one can help me..... Thanks, J.Alexander.
3
26125
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 mypc: Non-existent domain ------------------------------------------------------------------
8
8557
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 sendobject event for a button click, however this results in One email for each object, and it is named as per the report name. What I would like to achieve is One email with multiple attachments, which we send to a Contact Group in Outlook. So I...
1
6407
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 this probs... the err msg is get is :- The Web server reported the following error when attempting to create or open the Web project located at the following URL: 'http://localhost/Servicing'. 'The server name or address could not be resolved'.
3
7089
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 happening when i define a testing server (I'm wanting to use the same directory - so nothing is stored on my localmachine) I have tried everything and i keep gettig the same message when i click on specifiy the RDS login (i know that it is enabled with a...
0
9512
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10419
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10201
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10147
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9023
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5424
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5552
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3709
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2910
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.