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
7
votes
1 answer

sendmail on OpenShift / PHP / CodeIgniter

I'm looking for OpenShift configuration information for sendmail functionality. It's not totally clear to me what the preferred way of doing it is. Some articles say that one must have the pear/Mail.php modules installed, others say that this…
Maxcot
  • 1,513
  • 3
  • 23
  • 51
7
votes
2 answers

Using mail() causes 504 Gateway Time-out in Nginx

I just installed php, mysql, nginx, sendmail on debian 6. Now the PHP pages work fine. But when I try to use a simple mail() test: Example: mail($to, $sub, $msg) it takes too long to finish (around 30+secs) then get I 504 Gateway Time-out in my…
IMB
  • 15,163
  • 19
  • 82
  • 140
6
votes
6 answers

Failure sending mail via Google SMTP

I'm still getting "Failure sending mail." exception. The inner exception is "Unable to connect to the remote server" and the inner exception of that is "A connection attempt failed because the connected party did not properly respond after a period…
Erhard Martin
  • 63
  • 1
  • 1
  • 3
6
votes
2 answers

How to avoid my mails sent from PHP mail() being marked as spam?

I'm using the following to send registration e-mails: $subject = 'subject is here'; $message_raw = 'e-mail text'; $message = base64_encode($message_raw); $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/plain;…
Frantisek
  • 7,485
  • 15
  • 59
  • 102
6
votes
3 answers

PHP, sendmail and transports - how to speed up mail sending

I just wrote a set of bulk-emailing classes for handling enormous amounts of emails and parsing their content according to passed params. If I test an email on 1000 random recipients and 1000 random senders from my database, up until the point the…
Swader
  • 11,387
  • 14
  • 50
  • 84
6
votes
6 answers

ar_sendmail command not working with ruby 1.9.2

I am not able to run ar_sendmail command from my terminal. I don't think i have missed its configuration. Below is my code; development.rb ++++++++++++++++++++++++++++++++++++++++++++++++++++ ActionMailer::Base.delivery_method =…
ashisrai_
  • 6,438
  • 2
  • 26
  • 42
6
votes
2 answers

In Dialogflow reason for error message: "Permission 'cloudfunctions.functions.setIamPolicy' denied on resource dialogflowFirebaseFulfillment

I was trying webhook to send email in chatbot (dialogflow). Getting following error (log entry) . What may be the reson? message: "Permission 'cloudfunctions.functions.setIamPolicy' denied on resource…
6
votes
3 answers

Send email with .NET Core 2.2

In MVC ASP.NET you can set the smtp configuration in the web.config file like this :
user7849697
  • 503
  • 1
  • 8
  • 19
6
votes
1 answer

How to test PHP send mail on local server with MAMP Pro

I have a small web form that on submission triggers a mail script that sends an email to the address given to verify their email address. I want to test this on my local server using MAMP Pro. I am totally confused from the info I have sourced that…
Steve Joiner
  • 493
  • 2
  • 9
  • 21
6
votes
3 answers

Use PHP sendmail from Docker container to send through host Postfix

I want to send mail from my Alpine-PHP-Fpm container using my host postfix installation. RECAP PHP-Fpm Container -> Sendmail -> PostFix on host -> Sending via SMTP But I get sendmail: can't connect to remote host (127.0.0.1): Connection…
javal88
  • 1,188
  • 3
  • 17
  • 29
6
votes
5 answers

Mailbox unavailable error

When trying to send out an email in a .NET site, the following error is being encountered: Mailbox unavailable. The server response was: No such user here Does this error appear if the code is trying to send to an email address which doesn't…
Leah
  • 2,547
  • 5
  • 23
  • 28
6
votes
2 answers

Getting error `No module named mime.text` [Python]

This code is "suppose" to send an email. import smtplib #SERVER = "localhost" FROM = 'myEmail@email.com' TO = ["toEmail@email.com"] # must be a list SUBJECT = "Hello!" TEXT = "This message was sent with Python's smtplib." # Prepare actual…
Dat Ha
  • 562
  • 1
  • 9
  • 16
6
votes
1 answer

Raspberry PI - Send mail from command line using GMAIL smtp server

How can I send email from Raspberry Pi using my gmail account? I would like to send mail from command line and use this method in my scripts. Envirenment: Hardware: Raspberry PI 3 OS: Jessie SMTP: smtp.gmail.com
mikia
  • 454
  • 1
  • 4
  • 14
6
votes
4 answers

APEX_MAIL.SEND function not working though its not giving any error

Have to send email from oracle apex using APEX_MAIL.SEND() method. I am using the code: BEGIN apex_mail.send(p_to => 'tanmoydawn@gmail.com'/*l_to_addr*/, p_from => 'tanmoydawn@gmail.com'/*l_from_addr*/, …
TKD
  • 61
  • 1
  • 1
  • 4
6
votes
1 answer

Send email through smtp in superlance using crashmail

I'm trying to set up the email sending when a process changes state in supervisord by using crashmail. Having no luck with the default sendmail program which requires quite a lot of setup, I decided to go with a small script in Python that sends…
Son
  • 1,835
  • 2
  • 18
  • 28