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
10
votes
3 answers

plotting email flow in map using R

I want to plot email from and to in world. For example, I received the following number of emails from the following countries and I live in USA. recievedcountry <- c("India", "China", "France", "Chile", "Australia", "Chad", …
jon
  • 11,186
  • 19
  • 80
  • 132
10
votes
5 answers

Email intent ignoring line-breaks in preset text (Android)

In various Android applications, I use the following code to show an application chooser for email and, after the user has decided for one of the apps, insert a predefined text into the email form: final Intent emailIntent = new…
caw
  • 30,999
  • 61
  • 181
  • 291
10
votes
6 answers

Creating A New Line In $body Of PHP Mail Function

I've got the PHP mail(): function working for a form I'm using on my site. I am now trying to format the $body attribute to look nicer and more organized when I receive the subsequent e-mail. I've tried \n and I've tried and both give me Here's…
MillerMedia
  • 3,651
  • 17
  • 71
  • 150
10
votes
5 answers

java imap fetch messages since a date

I am writing/learning to fetch email using java from an IMAP folder using javax.mail package. I was successfully able to retrieve the last n messages in a Folder, however I am looking to build an example to retrieve messages since a specified date.…
Chaitan
  • 266
  • 1
  • 3
  • 8
10
votes
3 answers

Get emails with Python and poplib

I would like to log into my account with Python and get python to print the messages I received in my mailbox. I know how to connect import getpass, poplib user = 'my_user_name' Mailbox = poplib.POP3_SSL('pop.googlemail.com', '995')…
user1119429
  • 675
  • 2
  • 7
  • 11
10
votes
2 answers

Why does PHP filter_var say that this is a valid email address?

I use the filter_var PHP function to validate email address when a user signs up to my site. I use this code from the post: $email = filter_var($_POST['email'], FILTER_VALIDATE_EMAIL); then later I do: if(!$email) { // return to the form } else…
fred
  • 299
  • 1
  • 9
10
votes
2 answers

Multipart/alternative subtype, when client use it?

Why webmails (like Gmail) sends MIME messages using multipart/alternative subtype (when composing in HTML) while others send HTML as MIME with text/html parts inside (without using alternative subtype)?
gremo
  • 47,186
  • 75
  • 257
  • 421
10
votes
5 answers

Automatically check bounced emails via POP3?

Can anyone recommend software or a .NET library that will check for bounced emails and the reason for the bounce? I get bounced emails into a pop3 account that I can read then. I need it to keep my user database clean from invalid email addresses…
Johannes
  • 3,002
  • 4
  • 33
  • 36
10
votes
4 answers

Xcode 4 / iOS - Send an email using SMTP from inside my app

I've been looking around for a framework to simply allow me to send an email from inside my app. I have tried MailCore, Pantomime and SKPSMTP all with no luck. I can't get them to compile in Xcode, so I presumed they were outdated. Is there any way…
Alex
  • 3,031
  • 6
  • 34
  • 56
10
votes
4 answers

Get facebook email after login in Android

Here is my code realising the connection. import java.io.FileNotFoundException; import java.io.IOException; import java.net.MalformedURLException; import org.json.JSONException; import org.json.JSONObject; import android.app.Activity; import…
Stefan Doychev
  • 711
  • 3
  • 12
  • 30
10
votes
1 answer

JavaMail search by ReceivedDate, doesn't work down to the second?

In IMAP, message numbering is based on when a message is placed into a folder (i.e. first message in the folder is 1, second message in is 2, etc.). However, this ordering has no regard for a message's received date. What I'm concerned about are…
Jon
  • 952
  • 1
  • 11
  • 17
10
votes
2 answers

How to change the name text of sender when sending mail with Swift_Message?

I am using SwiftMailer to send emails from my application. All is working fine so far. I now need to be able to change the text of the sender dynamically. The code snippet below and the next paragraph should hopefully clarify what I mean. Currently,…
oompahloompah
  • 9,087
  • 19
  • 62
  • 90
10
votes
3 answers

Cannot get ActionMailer working with MS Exchange via SMTP

Here's my simple test program (using ActionMailer 3.0.8, Ruby 1.9.2p180 Mac OS X): require 'rubygems' require 'action_mailer' ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => "my_exchange_server", …
Edward J. Stembler
  • 1,932
  • 4
  • 30
  • 53
10
votes
2 answers

Apache Commons Email and UTF-8

How do you change the encoding of an email generated with Apache Commons Email to UTF-8? I want to send emails I generate depending on the receiver's language, and I need to take in account Japanese and Russian. Problem is: the Email class doesn't…
Alexis Dufrenoy
  • 11,784
  • 12
  • 82
  • 124
10
votes
2 answers

Got bad greeting from SMTP host: smtp.yandex.ru, port: 465, response: [EOF]] with root cause Yandex

I use brand new spring boot project with next Maven dependency org.springframework.boot spring-boot-starter-mail Implementation of method …
dos4dev
  • 429
  • 2
  • 10
  • 26