Click here to Skip to main content
15,867,594 members
Everything / Mail

Mail

mail

Great Reads

by Shuqian Ying
The source code and a simple demo program for a plug-in in Microsoft Managed Extensibility Framework (MEF) that provides visual display of email messages.
by cogi83
A SW to send your WAN IP and other info via email
by Jason Sultana
Common practice that I employ in test projects - re-usable mocks
by Tibor Blazko
Sending and receiving emails in cloud Functions

Latest Articles

by Jason Sultana
Common practice that I employ in test projects - re-usable mocks
by Tibor Blazko
Sending and receiving emails in cloud Functions
by Bipin Paul
Implementation of Contact Us Page using ASP.NET MVC pattern
by cogi83
A SW to send your WAN IP and other info via email

All Articles

Sort by Score

Mail 

31 Jul 2012 by Shuqian Ying
The source code and a simple demo program for a plug-in in Microsoft Managed Extensibility Framework (MEF) that provides visual display of email messages.
8 Sep 2014 by cogi83
A SW to send your WAN IP and other info via email
26 May 2016 by Dave Kreskowiak
The WHERE clause in your UPDATE statement should include the status as well:UPDATE EmailMaster SET status = 'I' WHERE mailid = 12345' AND status = 'P'If the update fails, your code will know that another service has checked out the record.But, seriously, I'd have some app running that is...
13 Feb 2013 by OriginalGriff
You need to call the Add method for each address in your list, and you need to convert them to MailAddress objects:mail.To.Add(new MailAddress(to));In your case, you probably want to split the names into separate strings, and add them:string[] tos = ToEmail.Split(';');foreach (string to...
21 Sep 2013 by V.Lorz
Some times it's a good idea trying to get some background about what you're willing to do. For downloading e-mails from the server you use what is called e-mail protocol. Two of the most commonly used ones are POP3 and IMAP. With this in mind you can go and search for something like "pop3 client...
12 Feb 2015 by OriginalGriff
Talk to your web hosting company: they normally provide it with the domain hosting.
20 Mar 2015 by manchanx
1) You need the email-addresses of your users - you probably already have them.2) When clicking on a user name or as an option in a users profile a form for writing a message to that user should be accessible.3) When the user confirms to send the message, you send it to the recipients...
22 Jun 2016 by Maciej Los
Post your question here: Bugs and Suggestions[^]. They can check what's wrong and they are able to repair it.
21 Jul 2012 by rizwan muhammed khan gouri
for Send Mail it good :i think you want to send mail by mail message than you can used following.your smtp code write as usual.var smtp = new System.Net.Mail.SmtpClient(); { smtp.Host = "smtp.gmail.com"; smtp.Port = 587; smtp.EnableSsl = true; ...
24 Jul 2012 by Prasad_Kulkarni
Refer:MailSy...
7 Sep 2012 by OriginalGriff
Those aren't questions we can answer: they are your design features.1) how can i develop the mailing system?In the same way you would develop any other project: specify, design, document, code, test, repeat.2) the mail is stored in the database(MSsql etc) or simple stored as a text...
7 Dec 2012 by Krunal Rohit
smtp.Send(fromAddress, toAddress, subject, body);or else read Sending Email with attachment in ASP.NET using SMTP Server[^]
8 Dec 2012 by Surendra0x2
Refer this Article this article will solve your problem of sending mail with attachment-http://www.aspsnippets.com/forums/Articles/How-to-send-email-with-Multiple-Attachments-in-ASPNet-Website.aspx[^]
13 Feb 2013 by Joezer BH
Split the string on the char ';' string[] Addresses = s.Split(';');and then:MailMessage msg = new MailMessage();foreach (string address in Addresses) msg.To.Add(address);Cheers, Edo
9 Mar 2013 by Mike Meinz
I think you need to add one or more SPF Records to the DNS entry for your domain. See Sender Policy FrameworkSee Sending Mail[^] where it says:Quote:Domain accounts are accounts outside of the Google domain with email addresses that do not end in @gmail.com or @APP-ID.appspotmail.com. It...
29 Apr 2013 by Manfred Rudolf Bihy
What gets checked is the IP adress of the SMTP server that is trying to deliver emails. What the denying side perceives as your SMTP servers IP adress depends on what network configuration you are using. Is it in a DMZ? Does the SMTP server have an IP adress directly reachable from the internet?...
19 Jul 2013 by Sergey Alexandrovich Kryukov
It has nothing to do with your application. A receiver of your mail has a spam filter which is tuned this way. If this is yours, fix the filtering settings or remove the filter. If it's not yours, you have no access to it.—SA
21 Sep 2013 by Richard MacCutchan
You should post your question in the forum at the end of the article so the author can see it.
29 Dec 2013 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Ok then you have to contact mail.com support officially and ask them directly about their SMTP services.
30 Jan 2015 by Jochen Arndt
See the MSDN article How to Register an Internet Browser or Email Client With the Windows Start Menu[^].It describes how to set the default programs using the registry. Read the mentioned keys to determine the default program.
12 Mar 2015 by Member 10901644
Now i have found the solution. The code below is work for me just changing the smtp server thanks every one. try { //Create the msg object to be sent MailMessage msg = new MailMessage(); //Add your email address to the...
20 Mar 2015 by Afzaal Ahmad Zeeshan
You should know that there is something know as a variable in programming. Which can be filled with any value that your application (or more specifically "you") want to use. So for example, if you use the WebMail class to send the email, then the following code would be used,// client,...
6 Aug 2015 by Dave Kreskowiak
Looking for the answers to possible interview questions is a complete waste of time. There is no guarantee that you're ever going to get asked those questions and there's a possibility that's going to trip you up and you'll lose the job.You're going to get asked a bunch of questions where...
12 Oct 2015 by F-ES Sitecore
Set UseDefaultCredentials to false before you set the Credentials propertyhttps://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.usedefaultcredentials(v=vs.110).aspx[^]
26 Nov 2015 by Dave Kreskowiak
You have a few problems. First, you have no control over the mail server you're using unless you set one up yourself. This means you are at the mercy of the policies setup on the mail server you're using to send the emails. No, you can't do anything without one.This means that if the owner...
14 Jan 2016 by Dave Kreskowiak
Ask this in the Bugs and Suggestions - CodeProject[^] forum, not in QA.
4 May 2017 by Nirav Prabtani
You need to generate app password from the account which has two step authentication is activated You should generate app password from here Generate App Password.[^] Formore info c# - How do I send an email with Gmail and SmtpClient when the sending account uses two factor authentication?...
16 Jun 2017 by OriginalGriff
Simple: don't send mail that looks like spam. Spam filters are pretty complex these days, and work by looking at the content of the message and determining if it's likely to be a genuine mail, or unsolicited advertising. (They also look at the source, subject, and suchlike, and use complicated...
13 Nov 2017 by Afzaal Ahmad Zeeshan
You did not find anything, because you cannot send an email with HTML, HTML is merely a markup language and has nothing to do with any sort of processing. You can use any server-side programming framework to send an email, or even a language such as C++/C# or Java. This topic has been covered...
19 Jan 2018 by ZurdoDev
Refer to the documentation, sp_send_dbmail (Transact-SQL) | Microsoft Docs[^]. It reads: Quote: [ @file_attachments= ] 'file_attachments' Is a semicolon-delimited list of file names to attach to the e-mail message. Files in the list must be specified as absolute paths. The attachments list is...
15 Mar 2018 by Graeme_Grant
The question is made up of many moving parts. Break it down into its individual units to make it easier for you to work with: 1. Service layer: * sending mail - MS internal API or using 3rd party library; write code to send an email as a contained service * data from MS Excel - use MS Interop,...
24 Sep 2018 by ZurdoDev
Sending emails via C# is very simple. See this link for an example: How to send email from C#[^] The System.Net namespace is what you need.
27 Feb 2019 by OriginalGriff
Talk to the people who created it: Marketing Platform for Small Businesses[^] They will know their product a lot better than us, and should provide tech support.
16 May 2019 by OriginalGriff
The Insider Daily is a summary of the items that have appeared in the The Insider News[^] forum - so every item you have received (along with comments on it) will be stored in that forum in descending date order. There is a forum search box on that page if you are looking for a specific item or...
28 Aug 2019 by Gerry Schmitz
If the "receiver" does not have the font installed on their machine, another font from the same "font family" is substituted by the "system". Fonts are "files" and do not get downloaded automatically.
28 Jun 2021 by Richard Deeming
You've checked that the file exists, but the error message says that the file does not contain a private key. A PEM file[^] can contain a private key, a public key, or both. If it doesn't contain a private key, then you cannot use it to sign...
29 Oct 2021 by OriginalGriff
Kent Sharkey - Professional Profile[^]
21 Mar 2022 by Richard MacCutchan
You can change it yourself, just go to Your Settings[^].
11 Aug 2022 by TheRealSteveJudge
It is recommended to use the newer System.Net.Mail.MailMessage class. MailMessage Class (System.Net.Mail) | Microsoft Docs[^] Then you must place a using statement on top of your code. using System.Net.Mail; This here is also worth reading:...
12 Mar 2015 by Afzaal Ahmad Zeeshan
That is because of the port you're using and the server isn't responding to the request of yours at that port. Change the port to 25 and then retry. I have always used 25, and it always worked.
8 Feb 2024 by Dave Kreskowiak
Yes, Outlook considers the signature as part of the email body. It's just something that gets pre-populated on a new email. If you specify the signature in a mailto link, Outlook will skip adding the signature to the email and replace the body...
24 Jun 2012 by shefeekcm
Hi all,i have some tables, that is created dynamically and fill some data based on some conditions.i have added those tables dynamically some tables and i added all those tables in to div.For sending email i need div's outer html.how can i take div outer html from the server...
25 Jun 2012 by Sandeep Mewara
Define div as server control by setting runat="server" for the div. Then try something like:var sb = new StringBuilder();myDiv.RenderControl(new HtmlTextWriter(new StringWriter(sb)));string divOuterHMTL = sb.ToString();
21 Jul 2012 by Nuha IT
Hi,I found this code is C# for sending mail through SMPT, but where should I found the code message? Send Mail / Contact Form using ASP.NET and C#[^]And this is the HTML code:
21 Jul 2012 by Trak4Net
I would recommend reading through some of these articles on the subject. I think you will get a grasp on what you are looking for.http://www.codeproject.com/search.aspx?q=C%23+SMTP+&sbo=kw&usfc=false&x=0&y=0[^]
24 Jul 2012 by rupeshsha8452
Can any one help me. Regarding to email verifier. I want to check mail id existence on mail server through c#. I am not getting proper solution regrading to same. So Please help me ASAP.
7 Sep 2012 by Faiz_Khan
I developed a school software where i want that the student interact with each other with email within the software.1) how can i develop the mailing system?2) the mail is stored in the database(MSsql etc) or simple stored as a text file?3) how the process goes?etc etc...thanxFaiz
23 Sep 2012 by Boudi AlSayed
Hi, I want to make a Hotmail new messages counter just give the number of unread messages of a specific email and password. How it would be done?
12 Oct 2012 by ammoti
Hi everyone,There is use mail api.But always mail go junk in Hotmail. How to prevent this mails to junk.My using mail template.xxxxxx/TITLE>
12 Oct 2012 by Al Hizbul
Try this:Email messages going to spam folder
7 Nov 2012 by kubi081
Hi I want to send mail with ASP.NET, but I want to send email through proxy server,So how should I edit the code below to send it through a proxy server?Thanks MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new...
13 Nov 2012 by Ed Gepulle
i received this error when populating the dropdownlist. any suggestion pls?System.Web.UI.WebControls.DropDownListthe scenario is, a user is sending information from a c# page and will send it to the email provided.heres the code:protected void btnSubmit_Click(object sender,...
14 Nov 2012 by skydger
Hi, try to use System.Net.Mail.SmtpClient. I used the following codeThis code works even in .NET 2.0 with domain credentials. Some parameters has been taken from configuration file.string mail_server = Properties.Settings.Default.MailServer;int mail_port =...
15 Nov 2012 by Ed Gepulle
Thanks for your reply. I got the solution for this, i missed to include .text with the other controls. cheers!
8 Dec 2012 by enrique1203
Check this example private void EnvioCorreo(Empleado empleado, string clave) { #region Cargando configuración del servidor de correo string MailServer = "name server example smtp.gmail.com"; string MailServerPort = ""587; string MailServerUser =...
8 Dec 2012 by Thomas Daniels
Hi,Have a look at this article:Sending an Email in C# with or without attachments: generic routine.[^]
17 Dec 2012 by Am Gayathri
In my application I would like to send a mail and I am using the below code, but I get the error: Could not send the e-mail - error: Failure sending mail. protected void btnsend_Click(object sender, EventArgs e) { try { MailMessage mailMessage = new...
17 Dec 2012 by Zafar Sultan
What's the error you are getting? Have a look at this sample:Send Mail / Contact Form using ASP.NET and C#[^]
17 Dec 2012 by Krunal Rohit
var smtp = new System.Net.Mail.SmtpClient(); { smtp.Host = "smtp.gmail.com"; smtp.Port = 587; smtp.EnableSsl = true; smtp.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network; smtp.Credentials = new NetworkCredential(fromAddress,...
18 Dec 2012 by Member 9581488
Please refer following link:http://stackoverflow.com/questions/32260/sending-email-in-net-through-gmail[^]also check with debugger that smtp.send function has all proper values.
18 Dec 2012 by Thomas Daniels
Hi,Have a look at this tip:Sending an Email in C# with or without attachments: generic routine.[^]Check also your firewall settings.
18 Dec 2012 by Surendra0x2
Try this Answer-System.Net.Mail.SmtpException:Failure sending mail[^]-----Unable to connect to the remote server exception - Web service exception in Vista[^]
18 Dec 2012 by Am Gayathri
In my application I would like to send a mail and I am using the below code,protected void SendMail() { // Gmail Address from where you send the mail var fromAddress = "xxxxx@gmail.com"; // any address where the email will be sending var toAddress =...
18 Dec 2012 by ark1234
Have you tried this way refer link belowhttp://asp.net-tutorials.com/misc/sending-mails/[^]you also need to have setting in web.configreferhttp://community.discountasp.net/showthread.php?t=9157[^]
18 Dec 2012 by Krunal Rohit
Try out this code :var smtp = new System.Net.Mail.SmtpClient(); { smtp.Host = "smtp.gmail.com"; smtp.Port = 587; smtp.EnableSsl = true; smtp.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network; smtp.Credentials = new...
15 Jan 2013 by Tharaka MTR
Please check the following link. It doesn't have "onclick" feature. but you can get some idea.http://css-tricks.com/html-forms-in-html-emails/[^]
24 Jan 2013 by niko_tells
hi guys,i have a datagridview with a databinding. Now i have a Funktion to send mails.when the mailform opens, im copying each cell.value into a list of strings.to Format the strings right into my richtextbox (mailform), i insert "Tabs" \t.Now the mail Looks good in my form, but if i...
24 Jan 2013 by Anurag Sinha V
Hi..Can you post some code as to what you have done?I would suggest to have a CSS class in your form which should apply to the values, such as padding, border, color and stuffs...-Regards
28 Jan 2013 by kashyap10
hello,I have used EmailComposeTask to send mail.And I am trying to send mail from my windows mobile application but i can not design or format my body section...I want to change font-weight, font-size such other stuff in the body section.. please help me Thanks
29 Jan 2013 by H.Brydon
To do this you need to step back and take a much bigger bite...Instead of sending the message as plain text, you need to change it to html and use the formatting options (including font weight and size) within the html feature set.
13 Feb 2013 by jiji2663
hii work in c# and asp.neti want to sent mail to some peopleand i use class and method like below code:using System.Net.Mail;public void sendmail(string Subject, string ToEmail, string Body){ SmtpClient MyMail = new SmtpClient(); MailMessage MyMsg = new...
13 Feb 2013 by vinodkumarnie
Try below...using System.Net.Mail;using System.Text;using System.Net; SmtpClient MyMail = new SmtpClient(); MailMessage MyMsg = new MailMessage(); MyMail.Host = "webmail.tahasoft.net"; MyMsg.To.Add(ToEmail); MyMsg.Subject =...
26 Feb 2013 by rahulkasar
Hi,I am using the following code to send mail with attachment . The function below works fine sends mail but does not attach the attachments to it Please help me in this : Dim msg As New System.Web.Mail.MailMessage If BodyFormat = "HTML" Then msg.BodyFormat...
27 Feb 2013 by Hemant Singh Rautela
Email Attachment Code in C#public bool sendemail(string to, string replyto, string body, string subject, FileUpload f1, FileUpload f2) { MailMessage mail = new MailMessage(); mail.To.Add(to); mail.From = new MailAddress("xyz@gmail.com","Subject of Email"); ...
27 Feb 2013 by BheemG
How to Send Mails from your GMAIL Account through VB.NET or C#. Windows Programming, with a Bit of Customization[^]
27 Feb 2013 by Anuja Pawar Indore
Refer this article on CPSend mail using System.Web.Mail namespace[^]
7 Sep 2013 by NarenDx
Design Page: Message to: Message from: ...
16 Mar 2013 by kk2014
Hi all,i got the below issue while sending mail from my VB 6.0 application.The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was availableI have tried to replicate but no luck.can anybody tell me is this problem is from...
3 Apr 2013 by Michel Greg
Hello , I am developing an email app. for that i want to fetch my saved contacts from yahoo, Hotmail and Aol account. I have successfully used google's GDATA service for getting contacts but i cant get solution with yahoo api . Can you route me for this problem ?
9 Apr 2013 by Ag_Sharad
I am currently working on a event management site project, and i want that as soon as clients fill the form and submit them, a copy of form along with the html(like a screenshot of filled form) is to be mailed to the client and managers......How can we achieve this thing using php scripting?
15 Apr 2013 by Sicppy
I have remote postfix server running and all the mx records are set up correctly, I was wondering if anyone could give me some resources on where to get started on making a php and mysql based webmail client.
15 Apr 2013 by DinoRondelly
This should point you in the right directionhttp://stackoverflow.com/questions/1092723/how-do-you-build-a-web-based-email-client-using-php[^]
24 Apr 2013 by Sriram Mani
Hi,Recently I came across a glitch to which i couldnt find a solution. I have a mailto: link in a French language page. I'm using the mailto: subject as a french text. When I'm using the mailto: link from Firefox, it is rendering correctly in Outlook 2003. But when i try the same from...
24 Apr 2013 by Abinonos
Hi;i am writing a simple class representing an email server, and a Test Method to test the provided Mail Server informations, however, when i try to connect with smtp.live.com:25 with ssl enabled i got an exception "unexpected packet format" , i'm using MailSystem.Net API and testing with...
24 Apr 2013 by Bernhard Hiller
Port 25 is normally not used with SSL. Check the specs from live.com which port you have to use (587, 997, or something like that).
25 Apr 2013 by Marco Bertschi
There are classes included in .Net for sending emails:http://weblogs.asp.net/scottgu/archive/2005/12/10/432854.aspx[^]http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.aspx[^]Several Open Source Libraries for receiving eMails are available...
29 Apr 2013 by Joan M
Hello,I've got a notification from one of our customers which say that their mail server won't allow our e-mails to proceed into their system as we are on a blacklist.I've seen that our public IP address is on some blacklists (4 or so) and I've started the procedure of removing our IP...
1 May 2013 by Jiban jyoti Rana
I want to design a ASP.Net form for feedback/Complaint page.My requirement is:* There sholud be two radio buttons on the top of the page.(1 is for old Complaints and another is for new complaint.)* When user clicks on old complaints then a textbox will be displayed and asking for "Your...
7 May 2013 by Zoltán Zörgő
First of all, consult webhosting provider documentation. As I see, they don't provide email server, you need to use the google one, or an other third party provider.Look at this tutorial for a more advanced use with gmail as smtp server:...
8 May 2013 by Archit Patel
I use nopCommerce 1.50 for my online Shop. But i can't config my mail setting in it.i use this type of settings'Store Admin Email: myGmailEmailAddress@gmail.com Store Admin Email Display Name: mySTORENAME OR Any name you wantHost: smtp.gmail.comPort: 587User: ...
25 May 2013 by OriginalGriff
This isn't a QA subject - you need to talk to teh admins directly.Post this here: http://www.codeproject.com/Forums/1645/Site-Bugs-Suggestions.aspx[^] and the admins will see it and respond. Posting as a QA question means hoping they will drop by and see it.
6 Aug 2013 by mayankkarki
Its really frustating that EmailComposeTask doesn't have any way to send attachments. I googled this and found MailMessage dll. I don't know whether it is secure or not because user gonna send his password. Now I am thinking tot build my own service, send data from phone to service, and service...
7 Aug 2013 by Member 9549287
If you know your way through services, you're good to go. You can use a Windows Phone WCF service for that. Declare an send mail function in your service interface and implement something like ...public sendmail(params){... using (var client = new...
7 Sep 2013 by Member 8650519
Use this Code for senting Email through Web mailStep -1:Add this following Code in your C# file.{ string mailUsername = ConfigurationSettings.AppSettings["MailUserName"].Trim(); string mailPassword =...
9 Sep 2013 by Kunal_Patel
http://www.c-sharpcorner.com/u...
13 Sep 2013 by basurajkumbhar
sending mailprivate void btnsendmail_Click(System.Object sender, System.EventArgs e){ MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com"); mail.From = new MailAddress(txtid.Text); mail.To.Add("Email Id To Send...
17 Sep 2013 by Member 1516511
Just use the MailMessage component for WP7 and WP8, it's available on geekchamp.com :)