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

What is the best way to send emails from PHP script? [2]

I hope this question wont be too specific. But I really need to ask. We all know that we cannot fully prevent our emails to go to spam box right? But I guess we can decrease the #of emails that goes there. Till now, I use PHP's built-in function…
user1259711
5
votes
4 answers

PHP mail() works from command line but not apache

I'm trying to figure out why the mail function in PHP fails when called via web browser (i.e. apache), but I can run the same script from the command line using php -f mailtest.php This is one of my client's Fedora servers, so I don't grok it…
matt
  • 846
  • 2
  • 10
  • 13
5
votes
1 answer

Can we trust `reply-to` to be respected

Our webapp sends out mails on behalf of its users. The header fields are set as following: HEADERFIELD MAILADDRESS NAME ------------------------------------------------ from: [our mail address] [users name] reply-to: [users…
Muleskinner
  • 14,150
  • 19
  • 58
  • 79
5
votes
1 answer

Unable to send secure emails on Sendgrid using webapi

I am unable to send "secure" emails on Sendgrid using web api. (Platform - .Net/C#, SendgridMail) It works fine with http url (http://sendgrid.com/api/mail.send) but with https (https://sendgrid.com/api/mail.send) it fails. private void…
5
votes
1 answer

Sending an EMail using Wordpress

I have tried so many different approaches, but cannot successfully send an EMail through SMTP in PHP using the mail() function.
user1811549
  • 59
  • 1
  • 3
5
votes
5 answers

send dynamic table or div content as an email body content

I have a page (somePage.aspx) and I need the content that has been generated as an Email body
LoneXcoder
  • 2,121
  • 6
  • 38
  • 76
5
votes
2 answers

Drupal 7 drupal_mail stripping out HTML?

I have a custom module that I'm trying to generate an HTML email from using the drupal_mail function (D7). Mail is coming through, and even shows text/html, however something somewhere appears to be stripping out the HTMl before it gets to an inbox.…
Cory Fischer
  • 111
  • 2
  • 8
5
votes
2 answers

How to get extra error information from PHP's mail() failure?

When mail() fails, there not much info about what went wrong. I understand that the best course of action is to check your sendmail logs, or whatever mailer has PHP used. But from a programming and pragmatic, point of view: on a Linux hosted…
Remus Rusanu
  • 288,378
  • 40
  • 442
  • 569
4
votes
5 answers

Disabling PHP sendmail for development environment

I'm in a LAMP environment working on a system that sends out a lot of email notifications. I'd like a way to keep PHP from sending out actual emails in my development environment. Right now, I'm commenting out all of the mail() lines, but this is…
random21
  • 579
  • 1
  • 5
  • 15
4
votes
1 answer

Action Mailer not working with sendmail

I'm trying to send a mail with sendmail. When sending the mail, I don´t get any errors in the logs, but when I look into my mailbox, the mail isn´t there, not even in the spam folder. I get some infos in the mail.log file from my var/log directory,…
4
votes
1 answer

Send e-mail with PHP to Facebook group mail address

1, I tried to send e-mail in PHP to my Facebook group email, but these updates, doesn't appear. If I send the e-mail from my yahoo mail, it posted instantly. What kind of information should I add to the mail header? 2, Is is possible to add images…
Pmillan
  • 563
  • 4
  • 9
  • 22
4
votes
1 answer

php mail function not sending emails / taking too long to send emails

I have a rackspace cloud where I want to set up LAMP. the server has CentOS. I have sendmail installed and the php mail function use this, but it takes too long to send an email using the php mail function
nivanka
  • 1,352
  • 6
  • 23
  • 36
4
votes
1 answer

Retrieve Primary account name to send the mail in android 2.1

i am developing an application where i want to send the mail to number of receptions using my own API. i had achieve to send mail them, but for that i had hard coded my Email ID and Password. now i want to use the users inbuilt Primary account to…
user674427
4
votes
1 answer

simple email causes stack level too deep

I have mailer: class AdminMailer < ActionMailer::Base default :from => "pejottest@gmail.com" def message mail(:to => "pejottest@gmail.com",:subject => "test") end end When I i use them from the controller : def create …
speedingdeer
  • 1,236
  • 2
  • 16
  • 26
4
votes
0 answers

how to eliminate error got from emayili package in R

R error in 'emayili' package. # Create a message object.. # Add addresses for the sender and recipient. # Add a subject. # Add a text body. to_send<- envelope(to = "xxx@gmail.com", from = "xxx@gmail.com", subject = "ALERT", …
tyk
  • 45
  • 3