Questions tagged [email]

Use this tag for questions involving code to send or receive email messages. Posting to ask why the emails you send are marked as spam is off-topic for Stack Overflow. Questions about configuration of mail servers belong on Server Fault.

Electronic mail, commonly called email or e-mail, is a method of exchanging digital messages from a sender to one or more recipients.

Modern email operates across the Internet or other computer networks. Some early email systems required that the sender and the recipient both be online at the same time - a system currently known as Instant messaging. Today's email systems are based on a store-and-forward model. Email servers accept, forward, deliver and store messages. Neither the users nor their computers are required to be online simultaneously; they need connect only briefly, typically to an email server, for as long as it takes to send or receive messages.

Email architecture is rich and varied; you should probably indicate whether your question concerns manipulation, email composition (, , , , etc.), message submission and transport (, ), or a particular mailbox storage and access protocol (, ) or perhaps a particular . There is a large number of additional tags you can use.

Programmers coming from modern protocols such as JSON and HTTP will be surprised to learn about the many layers of standards that they have to work with in order to be able to use 8-bit data, multimedia, Unicode, internationalization, tagged content, etc. The MIME standards in particular should be at least vaguely familiar.

References


Tag Usage

The tag can be used for any programming related problem in implementing features of emailing messages from one client to another. Ask about specific email server related problems at Server Fault, another Stack Exchange website.

Common problems which are not programming-related include

Related Tags

etc

59268 questions
11
votes
1 answer

Would using Content-Transfer-Encoding: base64 for text and html email present any issues?

I'm working on an email project. For reasons that I will not go into here, doing quoted-printable encoding on long email messages is problematic in the customer's environment. Doing base64-encoding on the HTML and text sections of the SMTP emails we…
jkraybill
  • 3,339
  • 27
  • 32
11
votes
1 answer

sending html mail if app allows

I want to send a html mail from my application. I know that not all mail clients allow html tags. But I found the constant Intent.EXTRA_HTML_TEXT in the API (http://developer.android.com/reference/android/content/Intent.html#EXTRA_HTML_TEXT). My…
owe
  • 4,890
  • 7
  • 36
  • 47
11
votes
2 answers

How to add attachments to email in Java using OutputStream?

I've seen the code for javax.mail library where you add attachments to the email doing this: MimeBodyPart attachmentPart = new MimeBodyPart(); FileDataSource fds = new FileDataSource("C:/text.txt"); attachmentPart.setDataHandler(new…
Reimius
  • 5,694
  • 5
  • 24
  • 42
11
votes
8 answers

Stored procedure using SP_SEND_DBMAIL sending duplicate emails to all recipients

I have a stored procedure that is run every night which is supposed to send the results of a query to several recipients. However on most days it ends up sending a duplicate email a minute later. The code I am using is as follows (all emails and…
andewM
  • 181
  • 1
  • 1
  • 7
11
votes
1 answer

Using SendGrid SMTP Integration for bulk email

Is there a way to use SendGrid's SMTP Integration API for sending bulk mail? Here's what I have in mind: I need to send a large bulk of emails to subscribers. Since SendGrid docs recommend using SMTP Integration where possible, I would like to be…
mkvcvc
  • 1,515
  • 1
  • 18
  • 41
11
votes
7 answers

Send mail from a Windows script

I would like to send mail from a script on a Windows Server 2003 Standard Edition. I think the server setup is pretty much out of the box. The mail server is an Exchange one, and when you're on the internal network you can use plain old SMTP. I have…
Jörgen Lundberg
  • 1,799
  • 3
  • 22
  • 31
11
votes
2 answers

Right-to-Left Email

I'm trying to generate email from my code that will read correctly for people using right-to-left-reading languages such as Arabic. My question is: what are my options for acheiving this? I am aware that I can create a multipart email and encode the…
frimkron
  • 113
  • 1
  • 1
  • 5
11
votes
4 answers

Is it better to reset password or send lost password back?

Is it better when a user forgets their password to have them reset their password or to just send the lost password back to them?
sss
11
votes
5 answers

How to render a mail template with layout in ZF2?

In the ZF1 I used the following code to render a mail body: // View erstellen $view = new Zend_View(); // Layout erstellen $layout = new Zend_Layout(); // HelperPath muss hier nochmals übergeben werden da es ein neues View Objekt…
user1986560
  • 231
  • 1
  • 2
  • 6
11
votes
2 answers

How to Sign Javamail with DKIM

Is there a library or a way to do this without an external library? I am using apache james as my mail server and currently send email like this: public void sendMessage(String to, String subject, String content) { MimeMessage message = new…
ryandlf
  • 27,155
  • 37
  • 106
  • 162
11
votes
1 answer

Check if paypal email address is a verified user

I would like to check if a paypal user who tries to buy something from my site has a verified account before he makes purchase. Once the user isn't verified, any payment he/she makes would fail. Funds will be returned back to user automatically. Is…
Chris Xbill Owen
  • 123
  • 1
  • 1
  • 7
11
votes
4 answers

How to send email via exchange server without using smtp?

I'm trying to send an email from c# code via our company's exchange server. System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient("exchangebox1.mycompany.com"); System.Net.Mail.MailMessage msg = new…
Scott Langham
  • 58,735
  • 39
  • 131
  • 204
11
votes
2 answers

The data area passed to a system call is too small"

Is there a certain string size for outlook email. I have the following code that gives me an error The data area passed to a system call is too small However this only seems to occur when my message body is larger then…
R Chaudhary
  • 111
  • 1
  • 1
  • 4
11
votes
2 answers

How to get the "Date" of an email?

I create an application that gets email from mail server. I use "System.Net.Mail.MailMessage" for receive email. Now I want to get "Date and Time" of each email that ins in Inbox.
Tavousi
  • 14,848
  • 18
  • 51
  • 70
11
votes
6 answers

Looking for a php only email address obfuscator function

Is there a php only email address obfuscator function? Most of the ones found on the web are a mix of JS and PHP.
Alexei Tenitski
  • 9,030
  • 6
  • 41
  • 50