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

Attachment's name is wrong decoded if norwegian letters are used

I have this piece of code which creates an attachment and sends email. If name of the file contains æ, ø or æ, the name is totally destroyed. If I remove norwegian letters, everything is ok var stream = new MemoryStream(); …
podeig
  • 2,597
  • 8
  • 36
  • 60
8
votes
2 answers

Create new outgoing message with applescript in Microsoft Outlook

I'm trying to create a new outgoing message with Microsoft Outlook 2011 for mac, using AppleScript. The following example worked in 10.6.8: tell application "Microsoft Outlook" set newMessage to make new outgoing message with properties…
Nava Carmon
  • 4,523
  • 3
  • 40
  • 74
8
votes
2 answers

PHP sendmail works in Ubuntu command line, but not from a php file

I installed sendmail with PHP and apache on Ubuntu. When I try the following command-line php -r "mail('test@gmail.com', 'test', 'test')"' it successfully sends the email. However, running the file "test_send_mail.php"…
Tim
  • 81
  • 1
  • 1
  • 2
8
votes
3 answers

Python send mail inside docker container with local SMTP server

I want to send mail with smtp lib on python. I understand that it uses local smtp service on port number 25. I have below codes. These codes run on my local without any problem and mail sends successfully. But when I move them to docker container,…
kamilyrb
  • 2,502
  • 3
  • 10
  • 25
8
votes
3 answers

How to send HTML body email with multiple text attachments using sendmail

I want to send a HTML file as message body and want to attach multiple text files to this email message. Since html file needs to be sent, sendmail has to be used ( I could not do it using mailx ). How do you send HTML body email and multiple text…
vaichidrewar
  • 9,251
  • 18
  • 72
  • 86
8
votes
3 answers

Configuring sendmail behind a firewall

I'm setting up a server which is on a network behind a firewall and I want programs on this computer to be able to use sendmail to send emails to any email address. We have an SMTP server running on this network (let's call it…
Eli Courtwright
  • 186,300
  • 67
  • 213
  • 256
8
votes
3 answers

Make jenkins send email via sendmail

I got a nullmailer setup to a 3rd party SMTP relay. It's working well. How can I tell jenkins to send his email through the sendmail system function ? I tried setting the SMTP credentials directly in jenkins, but it's a mess with TLS (none of the…
sf_tristanb
  • 8,725
  • 17
  • 74
  • 118
8
votes
4 answers

Sendmail is not working with crontab (bash)

I have created one disk cleanup script which after cleanup sends a status email. now when I run this through command line, it executes perfectly but through cronjob its not able to send staus mail rest the script is working fine though. I have read…
KnowledgeSeeeker
  • 620
  • 1
  • 9
  • 14
8
votes
4 answers

xp_smtp_sendmail blank space added to html randomly

I have a proc where I generate small html doc with a link and send it out via xp_smtp_sendmail proc. Link is generated based on query results and is long. This works in most cases. However, sometimes the link gets broken due to spaces being inserted…
8
votes
5 answers

Relay access denied 5.7.1

I've got the error "Relay access denied", but I can connect my account with some email programs. My code: SmtpClient smtpClient = new SmtpClient(); NetworkCredential basicCredential = new NetworkCredential("xx@xx.com",…
Mustafa KIRILMAZ
  • 131
  • 1
  • 3
  • 7
8
votes
7 answers

Send email with Ruby without SMTP server installed/running?

On Mac, I can send email from command line using the command mail, but definitely I don't have SMTP server installed on my MacBookPro. So, it is possible to send email with Ruby without an SMTP server? I don't care about the speed, I just want a…
Howard
  • 19,215
  • 35
  • 112
  • 184
8
votes
1 answer

Using sendmail from command line

I'm trying to write a bash script, to be run by a cron task, which will send me an email under certain circumstances. In order to try and get sendmail working with my Sendgrid SMTP settings, I've edited the /etc/postfix/main.cf file with the…
josef.van.niekerk
  • 11,941
  • 20
  • 97
  • 157
8
votes
2 answers

How to send an email using Zend_Mail, sendmail, and localhost?

I'm developing a zend framework application that includes a simple email function. The development version is running on my computer, which is running Ubuntu. The production version is going to run on a production server. When trying to send a test…
Andrew
  • 227,796
  • 193
  • 515
  • 708
8
votes
1 answer

mail() doesn't work on new server

May be it's a dumb question, but I can't find the reason why php mail function doesn't work I have a nginx server on debian squeeze, I moved to it recently. I tried simple mail execution but it return false. if(mail('test@email.com', 'test-subject',…
Dima Deplov
  • 3,688
  • 7
  • 45
  • 77
8
votes
3 answers

sendmail error 452 Too many recipients received this hour

We are sending hell lot of e-mails to our BREW devices ( in sprint network ) and after a while our mail server queues the messages and gets stuck. When we try to flush them, we get following from the server. Is there a solution to this problem? Is…
Jay Patel
  • 657
  • 1
  • 6
  • 14