Linked Questions

567 votes
30 answers
537k views

PHP mail function doesn't complete sending of e-mail

<?php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $from = 'From: yoursite.com'; $to = '[email protected]'; $subject = 'Customer ...
user3818620's user avatar
  • 5,713
0 votes
1 answer
2k views

PHP mail() Not Working [duplicate]

Possible Duplicate: Troubleshooting PHP Mail I can't seem to get mail using PHP's mail() function. I am working on my client's dev server, which is running a version of Ubuntu. I installed ...
Anonymous's user avatar
464 votes
24 answers
119k views

How do you make sure email you send programmatically is not automatically marked as spam?

This is a tricky one and I've always relied on techniques, such as permission-based emails (i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology. Of ...
Leon Bambrick's user avatar
6 votes
6 answers
14k views

PHP mail stopped working

Some days ago when using mail() I had it working. But now it doesn't work. And I don't know what the problem is. $to = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $...
ajsie's user avatar
  • 78.8k
2 votes
3 answers
12k views

Php Mailer problem - messages marked as spam - [closed]

A few days ago I upgraded Php Mailer and now some email providers my messages mark as spam. This is what I see in the headers of the marked messages: X-SpamTest-Info: {TO: header missing} This is ...
user's user avatar
  • 751
0 votes
3 answers
7k views

How to get information of mail delivery in PHP

I want to send mail by PHP mail() function. Does PHP mail() function return delivery status? If not then what is the way to find whether my mail is delivered or not in PHP?
Ajay_kumar's user avatar
1 vote
4 answers
1k views

Authenticate Email PHP

I have a web app which needs to send emails to clients 'From' staff email addresses. What's the best way to prevent my messages from being flagged as spam? For instance, if I own [email protected], I'...
Charles's user avatar
  • 863
3 votes
3 answers
1k views

My server and php mail() function sends email to the spam folder

is there any way i install SMTP service on my Linux server and use php to send emails through it ? so that emails doesn't show up as spam ? maybe through ssl ? my mail() function is perfect , with ...
TeAmEr's user avatar
  • 4,743
0 votes
4 answers
2k views

php mail function..... Iam getting output as "mail failed". can you please help me to get it done

<?php //define the receiver of the email $to = '[email protected]'; //define the subject of the email $subject = 'Test email'; //define the message to be sent. Each line should be separated with \n ...
pradeepa's user avatar
  • 4,154
0 votes
1 answer
3k views

php mail() error_get_last();

I cannot figure out my mistake. Hopefully you guys can help. $receiver = '[email protected]'; $msg = 'some text goes here'; $msg = wordwrap($msg, 70); $subject = '...
lechnerio's user avatar
  • 943
0 votes
5 answers
2k views

php simple contact form not sending mail even after confirmation

I have been trying to get a php contact form working on my portfolio site (currently on a free megabyet.net account), but on testing it(on the uploaded site) even though i get the thankyou/...
Vishu's user avatar
  • 1
2 votes
1 answer
1k views

Created a registration form with automated email confirmation but emails keep being sent to the junk folder of the recipients email. Any ideas?

Here is the following information i'm sending the user. Sender email: [email protected] Subject: PhotoCrayze - Account Activation Instructions‏ Message: image url goes here ...
Kevin's user avatar
  • 31
0 votes
5 answers
399 views

How to send e-mails for all members of website with the class?

I need to create a PHP class that would send e-mails to all members of the website. Simple mysql_fetch_array and loop doesn't fit because my client wants a class and I actually don't know much about ...
good_evening's user avatar
  • 21.4k
1 vote
1 answer
626 views

Sending emails with CentOS sendemail doesn't work

I'm unable to send emails in php 7.3 using mail() - it returns true but sendmail doesn't work. CentOS 8 Postfix and Sendmail: Installed and running Mail sent with Sendmail: no errors (below) but no ...
Brian Tracy's user avatar
4 votes
2 answers
319 views

Checklist for good email delivery in php

I have a PHP application that sends email using the pear Mail function. Unfortunately all my emails end up in the junk folder. Can i get a checklist for things i should do to make sure my emails are ...
Saif Bechan's user avatar
  • 16.8k

15 30 50 per page