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

How to create an Email queue mechanism in ASP.NET In case of network goes down?

I am developing a website by using ASP.NET. In there I am sending emails to users. Currently I am using this code to send email asynchronously to user. Emails are sending in background. public static void SendEmail(string Path, string EmailTo) { …
Prageeth Liyanage
  • 1,612
  • 2
  • 19
  • 41
6
votes
4 answers

Django send_mail results in error 61 refused on Mac OSX

Running into a very stange error. I'm running Django on my Mac OSX and when I tried to send an email from my application it hangs and gives me this error: "Error 61 Connection Refused" Any ideas? I don't have my firewall turned on. I can upload an…
mymmaster
  • 826
  • 1
  • 9
  • 17
6
votes
1 answer

Send email with Mailgun with Javascript

I'm working with JS and I have the follow code: var XHRResponse = XHR.send("POST", "https://api.mailgun.net/v2/sandbox224f28ae45a8499d84184fd4c48e62ee.mailgun.org/messages",{ "parameters": { "from": "Mailgun Sandbox…
user3729460
  • 61
  • 1
  • 2
6
votes
2 answers

PHP: mail() function with runtime ini_set() for SMTP and SMTP_PORT not working on Linux

I have used a PHP code for Mailing using a SMTP HOST as given below: ini_set('SMTP','myserver'); ini_set('smtp_port',25); $to = $email; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1" .…
Padyster
  • 993
  • 3
  • 11
  • 21
6
votes
1 answer

I changed the SMTP and SMTP Port but it still says Failed to connect to mailserver at "localhost" port 25

I am currently using xampp 1.7.0 and my php version is 5.2.8 I changed my php.ini file to: [mail function] ; For Win32 only. SMTP = smtp.gmail.com smtp_port = 465 and my send_email.php file looks like: $to = "myemail@gmail.com"; $subject = "Test…
Vijaya Pandey
  • 4,252
  • 5
  • 32
  • 57
6
votes
1 answer

Send PartialView content as email

I have a PartialView that contains a HTML code with Razor annotations. It generates to me a page that I want to send by email to anyone. Is there a way to translate this PartialView into HTML content to send it?
Kiwanax
  • 1,265
  • 1
  • 22
  • 41
6
votes
3 answers

How to know mail is send and read by user when sending mail using SMTP,PHPmailer

is anybody know any solution for below problem in my project, i am send email to client using smtp and php mailer and gmail script. so when i am send mail gmail send mail to particular client. for that i am passing gmail login and user name which is…
Jigar Oza
  • 115
  • 1
  • 1
  • 8
6
votes
4 answers

mailx change sender name

I understood that for changing sender's name with mailx I should do the following: mailx -r newmail@mail.com -s "some subject" my@email.com But when I do that, I get: mailx: invalid option -- r Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b…
hudac
  • 2,584
  • 6
  • 34
  • 57
6
votes
1 answer

System.Security.Cryptography.CryptographicException: The handle is invalid

I am getting exception while sending mail through C# for SmtpClient client = new SmtpClient() as System.Security.Cryptography.CryptographicException: The handle is invalid. MailMessage mail = new MailMessage(from,to); …
user
  • 793
  • 4
  • 14
  • 23
6
votes
4 answers

How can I monitor outgoing email from Unix and Sendmail?

I am running a FreeBSD server and I have been sent a warning that spam has been sent from my server. I do not have it set as an open relay and I have customized the sendmail configuration. I'd like to know who is sending what email along with their…
Brennan
  • 11,546
  • 16
  • 64
  • 86
6
votes
2 answers

Sendmail issue: successfully sent but never arrives

I'm trying to send mail via the PHP mail() function which as far as I have understood uses sendmail to deliver the goods. Now my problem is that mail() returns true but there is not even a trace of the mail in my mailbox (yea i checked spam too). So…
Andreas Hagen
  • 2,335
  • 2
  • 19
  • 34
5
votes
1 answer

PHP Mail function taking 60+ seconds to execute (using sendmail)

So I just moved to a new VPS host and the PHP Mail function basically never ends (although oddly enough it usually sends the email). I set this in my php.ini: sendmail_path = /usr/sbin/sendmail -i -t Anyone have any ideas why this would be taking so…
Geesu
  • 5,928
  • 11
  • 43
  • 72
5
votes
2 answers

Swiftmailer mails go into SPAM Folder

$headers = "\r\n" . "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $message = Swift_Message::newInstance() ->setSubject($subject) ->setFrom(array('from@mail.com' =>…
user434509
  • 425
  • 8
  • 20
5
votes
3 answers

Message-Id is being replaced when sending mail via JavaMail

I have tried to find a solution to this with any luck, so i decided to post it here. The problem is, when i send a message with javaMail, it automatically generates a Message-Id (The one i store into my database to then identify replies to this…
Juan
  • 467
  • 1
  • 5
  • 19
5
votes
5 answers

Laravel 9 SymfonyMailer error - An email must have a "To", "Cc", or "Bcc" header

I've got problems with sending emails after updating a Laravel 8 project using the Metronic 8 theme to Laravel 9. I didn't change any of my code related to emails, but now I got this error using the Sendmail driver : An email must have a "To",…
Ankh
  • 61
  • 1
  • 7