Sponsored by
www.aspnetemail.com
|
 |
Discuss This FAQ Item
Got a question? Another Suggestion? Want to post your solution? Discuss it below.
-
FROM Friendly Name
[ Reply ]
How do I change the FROM address to a friendly name using variables in VB.Net?
Robert Stoffel [ rs ( at ) rsfx dot com ],
2004-03-25 16:25:23
#
-
RE: FROM Friendly Name
[ Reply ]
just substitute the real string with the variables, but make sure you quote your variables (if they already aren't).
Cheers! Dave
dave wanta [ dave ( at ) 123aspx dot com ],
2004-03-25 16:35:03
#
-
RE RE: FROM Friendly Name
[ Reply ]
What is the syntax for using variables in C# instead of a static string for the Mail.From?
Adam [ aurich ( at ) bellevue dot com ],
2004-07-14 06:21:29
#
-
RE: RE RE: FROM Friendly Name
[ Reply ]
use String.Format(bla{0}, parameter)?
but I wanted to thank whoever wrote this! Just what I was looking for, thanks!! ^_^
me [ me ( at ) me dot me ],
2006-07-27 14:21:11
#
-
Form
[ Reply ]
I am tring to send a form in text format. I have code from Dim myMail As New MailMessage() myMail.From = "training@t3iuniversity.com" myMail.To = "wmajid@t3iuniversity.com" myMail.Subject = "Course Registration" myMail.BodyFormat = MailFormat.Text myMail.Body = "This mail for Course Registration" SmtpMail.SmtpServer = "localhost" SmtpMail.Send(myMail) myMail = Nothin
I am reciecing a mail but there no form's result
Wadood Majid [ mpak061 ( at ) yahoo dot com ],
2004-04-17 21:18:19
#
-
RE: Form
[ Reply ]
What about the syntax for C#?
Adam [ aurich ( at ) bellevue dot com ],
2004-07-14 06:11:11
#
-
RE RE: Form
[ Reply ]
As in, the syntax for using variables in C# instead of a static string.
Adam [ aurich ( at ) bellevue dot com ],
2004-07-14 06:19:31
#
-
RE: Form
[ Reply ]
Hi, I've developed an application for sending email from asp.net page in HTMl format.and it is working as well.I gave in the form MailMessage.From="xxx@x.com"
but now I got the request from user that each n every time they have to change the from to while sending mail.So is there any way of mkaing any changes in the webconfig file so that they need not each n everytime change it.
Nancy [ remeesh123 ( at ) yahoo dot com ],
2007-02-02 10:12:06
#
-
RE: Form
[ Reply ]
Hi, I've developed an application for sending email from asp.net page in HTMl format.and it is working as well.I gave in the form MailMessage.From="xxx@x.com"
but now I got the request from user that each n every time they have to change the from to while sending mail.So is there any way of mkaing any changes in the webconfig file so that they need not each n everytime change it.
Nancy [ remeesh123 ( at ) yahoo dot com ],
2007-02-02 10:27:54
#
-
Which is preferred?
[ Reply ]
I have been using mail.From="me@mycompany.com (John Smith)"
Does this produce the same results with all mail clients? Or should I switch to mail.From="""John Smith"" <me@mycompany.com>"
Outlook 2000 seems happy with either. (The first being much simpler to code.) Speaking of which, how would you escape the 2nd method to place in AppSettings section of app.config?
Greg [ greg_burns ( at ) hotmail dot com ],
2004-06-09 12:33:37
#
-
RE: Which is preferred?
[ Reply ]
It appears this friendly name format does not work with Yahoo email accounts. It gives you a "501 Syntax error in parameter".
Note Yahoo requires the email address to be enclosed in brackets. "<>".
Gabriel Padilla [ gpadilla ( at ) starstream dot net ],
2004-09-27 16:54:02
#
-
RE: Which is preferred?
[ Reply ]
Here is what it looks like in an app.config (or web.config)
<add key="SMTP.FromEmail" value=""Friendly name goes here" <email@goeshere.com>"/>
this works great. thanks.
Jeff Gallino [ not ( at ) gonnahappen dot com ],
2005-04-27 08:14:39
#
-
hi
[ Reply ]
but this email i got in bulk folder how can i send mails to inbox
krishna [ krishnamaruti ( at ) gmail dot com ],
2006-02-28 22:24:44
#
-
hi
[ Reply ]
ddd
gfdg [ p ( at ) yahho dot com ],
2007-02-08 02:11:11
#
-
thanks
[ Reply ]
Thanks for this article, exactly what I was after.
Pete [ pinkbatz ( at ) hotmail dot com ],
2008-06-26 18:54:21
#
-
How do I change the FROM address to a friendly name?
[ Reply ]
hi, just wanted to know where you put that code. i am running windows mail as my mail client, thanks.
matt [ matt-whitehead ( at ) ntlworld dot co dot uk ],
2008-09-06 10:06:30
#
-
not to show actual 'from email address' in outlook
[ Reply ]
Hi
I have used SmtpClient to send emails in C#, I used the friendly name to dispaly the FROM addresss, but are there any way to just display the friendly name not actual FROM email address?
Thanks in advance Wendy
wendy [ wendy dot song ( at ) dataprint dot co dot nz ],
2009-10-12 20:49:06
#
-
RE: not to show actual 'from email address' in outlook
[ Reply ]
I have the same question, I developed an application and I used the frindly name but when users receive the mail on outlook they get From: myMail@company.com on behalf FriendlyName so my mail address is displayed on every mail that the application sends. The server's guys don't want to create an "application account" by policies so I have to use my network credentials on it and I guess that is why they get my address but I would like to take my address out and display the friendly name. Please Nancy and I need help on this. Thanks in advance
Rene [ reneh5 ( at ) gmail dot com ],
2009-10-20 14:24:43
#
-
Thanks
[ Reply ]
Thank you very much for sharing this method, it works great!
Pierre [ shadow dot boxing dot punch dot o dot meter ( at ) gmail dot com ],
2010-09-16 06:14:17
#
-
Can you help me?
[ Reply ]
Hi Friend I try coding with same for you but not execute, I use web form asp.net 2.0 by C#. Please help me! Thanks!
Nguyen Long [ lamdieujdo ( at ) gmail dot com ],
2011-03-28 23:19:54
#
-
can it be done multilangual?
[ Reply ]
can it be done multilangual? f.e. Russian?
Igor [ help ( at ) fbcomp dot net ],
2012-05-14 08:12:56
#
-
correction in from.displayname
[ Reply ]
mail.From = "\"John Smith\" <me@mycompny.com>" -->this is incorrect.
instead the following is the correct one.
msg.From = new MailAddress("me@mycompny.com", "John smith");
Gayathri [ gayathri_s_77 ( at ) yahoo dot com ],
2012-06-15 03:19:21
#
|