Questions tagged [sendmail]

DO NOT use as a general tag for sending email. This is about "sendmail", the general purpose email routing facility that supports mail transport via TCP/IP using SMTP

sendmail is a popular Unix-based email routing facility that makes use of and supports the transfer and delivery of email via the Simple Mail Transfer Protocol (SMTP).

sendmail exists both as free and open source software and as a commercial project, called Sendmail.

Tag usage

The tag sendmail can be used for all programming related problems. The tag can also be used for setting up a simple mail server. Please note that https://serverfault.com/ is another Stack Exchange website where you can ask especially configuration specific problems.

2881 questions
190
votes
3 answers

sendmail: how to configure sendmail on ubuntu?

When I searched for configuring sendmail on ubuntu I din't get any clear answer, each of them assume I know what they are talking about, I just want basic configuration to enable email sending, basically I will use it with google app engine to…
UXE
  • 2,354
  • 2
  • 18
  • 17
122
votes
11 answers

Sending a mail from a linux shell script

I want to send an email from a Linux Shell script. What is the standard command to do this and do I need to set up any special server names?
yazz.com
  • 52,748
  • 62
  • 227
  • 363
78
votes
8 answers

Sending mail via sendmail from python

If I want to send mail not via SMTP, but rather via sendmail, is there a library for python that encapsulates this process? Better yet, is there a good library that abstracts the whole 'sendmail -versus- smtp' choice? I'll be running this script on…
Nate
  • 4,033
  • 2
  • 27
  • 41
65
votes
5 answers

Send email from rails console

I'm trying to send out some mails from the console on my production server, and they're not going out. I can't work out why. I have just your standard email setup with sendmail. When i call the Mailer.deliver_ method i get this…
Max Williams
  • 30,785
  • 29
  • 115
  • 186
63
votes
7 answers

How to read system.net/mailSettings/smtp from Web.config

This is my web.config mail settings:
nermik
  • 1,415
  • 4
  • 16
  • 24
54
votes
8 answers

Send SMTP email using System.Net.Mail via Exchange Online (Office 365)

We are testing the new Office 365 beta, and i have a mail account on the Exchange Online service. Now I'm trying to connect a LOB application that can send smtp emails from my test account. However the Exchange 365 platform requires TLS encryption…
Adam Stewart
  • 1,805
  • 1
  • 18
  • 25
52
votes
13 answers

Sending HTML mail using a shell script

How can I send an HTML email using a shell script?
Tree
  • 7,976
  • 22
  • 61
  • 82
40
votes
10 answers

Error with PHP mail(): Multiple or malformed newlines found in additional_header

Suddenly have started receiving the above error without any changes having been made to the script. Host is 1and1 (I know...) The script still works fine on a different server, and so my suspicion is that there must have been some server config…
freestate
  • 907
  • 2
  • 9
  • 14
39
votes
3 answers

Using sendmail from bash script for multiple recipients

I'm running a bash script in cron to send mail to multiple recipients when a certain condition is met. I've coded the variables like this: subject="Subject" from="user@domain.com" recipients="user1@gmail.com…
Amir
  • 1,601
  • 4
  • 18
  • 28
36
votes
11 answers

Configure sendmail inside a docker container

I have a docker container running php and apache. The host is in an AWS instance which has the docker instance running. I am unable to send an email from the docker terminal. Is there any way to send an email from docker instance using sendmail…
tarun mittal
  • 391
  • 1
  • 4
  • 7
32
votes
5 answers

Ruby mailer is coming up with an EOFError

I am getting an EOFError (End Of File Error) on this code in my controller. The block where the error appears is at the end of the line that says UserMailer.deliver_message( I am unaware as to how to fix this, I have been stuck for about 2 months…
Deadder
  • 525
  • 1
  • 4
  • 14
31
votes
1 answer

Debugging PHP Mail() and/or PHPMailer

I'm quite stuck with a problem sending mail from a PHP script. Some data: Shared hosting, no SSH access, only hosting provider panel PHP version 5.2.5 Last year I built a site which had no problems sending mail with the same hosting Let's say the…
Agos
  • 16,699
  • 9
  • 52
  • 68
30
votes
1 answer

Force emails not to be grouped into conversations

My website sends emails to me with the same subject and they are being grouped into conversations even if I delete old ones (Mail, Gmail). I know I can change the subject to prevent this, but is there a header or something else that can be added to…
Louis W
  • 2,950
  • 5
  • 39
  • 70
28
votes
8 answers

How to send a html email with the bash command "sendmail"?

Anyone has a demo available? Sendmail is said to be not scalable,but it's free,so I decided to use it first for now:)
omg
  • 123,990
  • 135
  • 275
  • 341
26
votes
6 answers

PHP mail issue with www-data

I am trying to invoke sendmail via PHP's mail function by the following code: $to = 'blah@email.state.edu'; $subject = 'test'; $message = 'test'; $headers = 'From: mail@smartrek.blah.me' . "\r\n" . 'Reply-To:…
aherlambang
  • 14,092
  • 49
  • 146
  • 246
1
2 3
99 100