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
13
votes
4 answers

Quoting/Escaping variables in mail body

I am feeling a bit awkward, because I am generating a mail-body with PHP without escaping the variables. In HTML I am using htmlspecialchars() or similar functions, for command lines escapeshellarg(), but for mails? For example something like…
Trendfischer
  • 7,112
  • 5
  • 40
  • 51
13
votes
2 answers

System.Net.Mail.SmtpException: The operation has timed out. error in asp.net send mail code using godaddy hosting

I am using following peace of code to send mail using godaddy hosting . but its throw System.Net.Mail.SmtpException: The operation has timed out. protected void sendmail() { var fromAddress = "frommailid@site.com"; // any…
rahularyansharma
  • 11,156
  • 18
  • 79
  • 135
13
votes
7 answers

install perl module Net::SSLeay through cpan

I have tried to install Net::SSLeay though cpan to install Email::Send::SMTP::TLS but I am getting the following error. cpan[5]> install Net::SSLeay Running install for module 'Net::SSLeay' Running make for M/MI/MIKEM/Net-SSLeay-1.49.tar.gz Has…
raju
  • 4,788
  • 15
  • 64
  • 119
12
votes
1 answer

Send email in Python like PHP

I noticed that php just has one quick function to send emails and I'm wondering if I can do that in Python. I know that Python has an email module, but I understand that I need to be running an SMTP server to use that, whereas PHP can use…
Tom Leese
  • 19,309
  • 12
  • 45
  • 70
12
votes
5 answers

Php mail: how to send html?

The code below is sending an email correctly but for the body. I need to show html in the body of the message and I cannot make it. The examples in the web won't send the email :( How can I fix my code to send the email with the html in the body?…
lleoun
  • 477
  • 3
  • 6
  • 15
12
votes
12 answers

Does your email client let you add custom headers programmatically?

I'm working on an anti-spam project (centmail) that involves having the sender use a client plugin that adds a custom header (as well as a signature, but that part's easier). The general problem is to add an email header to your outgoing mail where…
dreeves
  • 26,430
  • 45
  • 154
  • 229
12
votes
2 answers

PHP mail() using Sendmail on Mac OS X Leopard (10.5.8)

I've been struggling to get a really basic PHP function working on my iMac, the PHP mail() function. I've used it countless times, albeit on a Windows platform and now I'm trying to get it running on Mac. I've installed XAMPP v1.01 maybe because I…
paperclip
  • 2,280
  • 6
  • 28
  • 39
12
votes
5 answers

PHP mail() function returns true, but doesn't send mail

I know that this question was asked before. When I call the PHP mail() function, it returns true. I checked my php.ini (I'v running CentOS): SMTP = localhost smtp_port = 25 sendmail_path = /usr/sbin/sendmail -t -i mail.add_x_header = On I read in…
Florian
  • 216
  • 1
  • 3
  • 10
12
votes
5 answers

Amazon SES SMTP Connection timed out

I have been trying to set up an email notification for my application using Sendmail along with SES on CentOS 6.5. As per AWS document, I have configured sendmail with SES, The maillog says, sendmail[29711]: s2QFCjnu027924: to=,…
Thiyagarajan Varadharaj
  • 10,154
  • 5
  • 21
  • 18
11
votes
2 answers

Trigger Build in Jenkins By EMAIL

I am Currently using Jenkins in Windows 7 . I have recently ran some build in jenkins . I am Able to run the build by SVN Post commit . Now i have to triiger the build in Jenkins by email. I am a windows user and as per my knowledge Sendmail and…
mannu singh
  • 879
  • 3
  • 13
  • 22
11
votes
7 answers

How do I specify to PHP that mail() should be sent using an external mail server?

I have my email hosted at Rackspace Email and would like to use that as my mail server for the contact form on my website. Looking at the php.ini file, I'm only able to specify the sendmail_path on UNIX systems, from which I've read points to the…
Matt
  • 5,547
  • 23
  • 82
  • 121
11
votes
1 answer

sendmail_path in php.ini for unix [full name of email sender]

I have a Unix base server and a php base website on it. I am trying to set full name and email address for the sendmail_path in php.ini. When I set it as below (without name) it works fine sendmail_path = /usr/sbin/sendmail -t -i…
Javad
  • 4,339
  • 3
  • 21
  • 36
11
votes
6 answers

Troubleshooting PHP Mail

How can I check a problem with mail being sent on my server? I run a simple test: if(mail($to, $subject, $message)) { echo 'Mail Sent'; } which the test outputs the text; but, no mail ever arrives. How can I go about tracking down the issue?
Richard Testani
  • 1,474
  • 4
  • 15
  • 29
11
votes
1 answer

sending html mail if app allows

I want to send a html mail from my application. I know that not all mail clients allow html tags. But I found the constant Intent.EXTRA_HTML_TEXT in the API (http://developer.android.com/reference/android/content/Intent.html#EXTRA_HTML_TEXT). My…
owe
  • 4,890
  • 7
  • 36
  • 47
10
votes
1 answer

Error: SMTPRecipientsRefused 553, '5.7.1 #while working on contact form in django

im trying to make a contact form in django 1.3, python 2.6. Whats the reason of following error? error: SMTPRecipientsRefused at /contact/ {'test@test.megiteam.pl': (553, '5.7.1 : Sender address rejected: not owned by user…
mmln
  • 2,104
  • 3
  • 24
  • 33