Emails are not sending by server, PHP script working fine.

Hello guys,

I am trying to send emails by CakePHP class sendEmail that uses mail() mail functions of PHP.

the script working fine, no error and no warning. but no message or email received by any email id on which it has been sent, i have tried my all ways.

looking forward to solutions.

Thanks in Advance

Ajay

2 Replies

Do you have a Mail Transfer Agent installed? There are many topics on this forum covering the same subject.

Beside advising to not use cakephp, I strongly advise not to use PHP's mail() function. It is one of the cornerstones of bad PHP design and implementation and is rife with problems. Please use a normal mailing library such as SwiftMailer.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct