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???? 6 2706
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????
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????
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????
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????
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????
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???? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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?
|
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
|
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
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
| |