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
9
votes
2 answers

How to send an email using sendmail command in linux

I tried the below two commands. 1. From: mail_id To: Recipient_mail_id Hi, this is my message, and I'm sending it to you! . echo "My message" | sendmail -s subject Recipient_mail_id But didn't get any mail to the recipient's mail address. SMTP…
Gayathri K
  • 441
  • 2
  • 4
  • 11
9
votes
4 answers

Strange emails from Cronjob. (No such file or directory)

I'm a fool in linux. So i tried to set up some things on my root. Well and after time a suspicious cron job started to bomb me. i get about 1 email every 10 minutes saying: Cron test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail…
Philipp Spiess
  • 3,263
  • 4
  • 26
  • 34
9
votes
2 answers

Send email on testing docker container with php and sendmail

I'm on ubuntu 16.04. I have a (testing) docker (docker-compose) container running php 5.6 and apache 2.4. On the production platform (without docker) the mail is sent with sendmail. How to send test email on docker container (with sendmail)? Thanks…
ratm
  • 913
  • 1
  • 11
  • 20
9
votes
2 answers

Handlebars as an email template

I've just inherited a codebase, and it's using handlebars as an email templating language. I've googled around to try and get more information, but I can't find anyone else doing this. I was just wondering if anyone could supply me some…
Ollie
  • 1,104
  • 7
  • 24
  • 45
9
votes
3 answers

Externally hosted email and using PHP to send email

I will be using G Suite (formally Google Apps) to host the email of a site that runs off a separate host. However, there is a contact form on the website, I haven't looked at it yet, but I assume it will use the standard mail() function. As I…
Brett
  • 19,449
  • 54
  • 157
  • 290
9
votes
1 answer

php takes 1+ minute to send mail with sendmail & maildev

Maildev is running with maildev -s 25 PHP is setup with [mail function] SMTP = 127.0.0.1 smtp_port = 25 When I try to send mail (with PHPMailer), I see that sendmail is running: 0784 www-data 20 0 4508 748 672 S 0.0 0.0 0:00.00 sh -c…
Hugo H
  • 6,029
  • 5
  • 37
  • 57
9
votes
7 answers

C# yandex mail send error 5.5.4 Error: send AUTH command first

I try to send mail using C# and yandex, but I get an error: Error 5.5.4 Error: send AUTH command first Here is my code. I try with different ports (587, 465..) and SMTP hosts (smtp.yandex.com.tr, smtp.yandex.com, smtp.yandex.ru...) but I get the…
user1688401
  • 1,851
  • 8
  • 47
  • 83
9
votes
2 answers

How to send email from WordPress (contact forms) in Docker container?

I have a little issue with Wordpress image, will be thankful for any help. I have existing database, which I import with dump. My Mysql Dockerfile listing below: FROM mariadb:10.1.20 COPY dump/dump.sql /docker-entrypoint-initdb.d ENV…
Vadim Shvetsov
  • 2,126
  • 2
  • 20
  • 28
9
votes
5 answers

SmtpClient can't send; Thunderbird can

This should be pretty routine, right? public static SmtpClient GetSmtpClient() { var client = new SmtpClient { Host = _smtpServer, UseDefaultCredentials = false, Credentials = new NetworkCredential(_smtpUsername,…
Shaul Behr
  • 36,951
  • 69
  • 249
  • 387
9
votes
2 answers

Gitlab, docker and sendmail ports

I have got gitlab running through docker using this image. In the image documentation there are instructions for how to configure an optional SMTP server for emails, but little information on what happens if SMTP is not set up. The gitlab…
aquavitae
  • 17,414
  • 11
  • 63
  • 106
9
votes
2 answers

Laravel: How to Queue mails to send later

Im trying to use the Mail::queue to send and email, but when I call this function it simple sends the mail, and the response is delayed ... I thought that the point of using Mail::queue was to queue .... I want the response to came instantly, not…
Gabriel Matusevich
  • 3,835
  • 10
  • 39
  • 58
9
votes
4 answers

Preventing Spam; Using Nodemailer; Using Sendmail

I'm using the Nodemailer Node.js module to interface with sendmail. However, my emails go directly to the spam folder when reached by a Gmail account. Why are my emails being shit-canned? It must be something to do with the headers of the email, but…
Sam
  • 6,414
  • 11
  • 46
  • 61
9
votes
1 answer

send mail using xampp in php

I've seen a lot of videos but haven't got a hang of how to send mail in php. I've configured the smtp port and server along with php.ini file and also the sendmail.ini file, changed the auth_username and password. However, the code below still does…
user2280276
  • 125
  • 1
  • 2
  • 7
9
votes
1 answer

Use default PHP mail function with SMTP server on Linux

I am working on a php/c# project which is an Email Server with a web interface to manage the Email Server application. The program is supposed to work on windows and linux but I have been mostly doing my development in windows. I've not come onto…
Boardy
  • 35,417
  • 104
  • 256
  • 447
9
votes
1 answer

mail vs sendmail

I am using the Email class in Codeigniter, and in the manual I see that there are 3 protocols that can be used: mail, sendmail and smtp. What is the dfiference between mail and sendmail? Is it true that using mail protocol will have a higher chance…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830