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.

2991 questions
192
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,374
  • 2
  • 18
  • 17
137
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
  • 57,320
  • 66
  • 234
  • 385
83
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,561
  • 2
  • 34
  • 44
77
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 back: #
Max Williams
  • 32,435
  • 31
  • 130
  • 197
70
votes
10 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,983
  • 1
  • 18
  • 25
66
votes
7 answers

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

This is my web.config mail settings:
nermik
  • 1,485
  • 4
  • 16
  • 24
57
votes
13 answers

Sending HTML mail using a shell script

How can I send an HTML email using a shell script?
Tree
  • 9,532
  • 24
  • 64
  • 83
55
votes
4 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@example.com" recipients="user1@mail.example…
Amir
  • 2,082
  • 4
  • 22
  • 28
52
votes
13 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
  • 551
  • 1
  • 5
  • 7
42
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
  • 987
  • 2
  • 10
  • 15
37
votes
2 answers

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
  • 3,166
  • 6
  • 46
  • 76
35
votes
5 answers

Check mail is sent successfully or not on Laravel 5

I have a function that can send mail on Laravel5 using this /** * Send Mail from Parts Specification Form */ public function sendMail(Request $request) { $data = $request->all(); $messageBody = $this->getMessageBody($data); …
Goper Leo Zosa
  • 1,185
  • 3
  • 15
  • 33
33
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
  • 136,412
  • 142
  • 288
  • 348
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
  • 535
  • 1
  • 4
  • 16
28
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,290
  • 50
  • 150
  • 253
1
2 3
99 100