views:

13

answers:

1

Hello all

I was wondering what is the difference between sending a basic message and message using SMTP in cakephp

Regards

+1  A: 

A basic message just uses PHP's mail function to drop off the message to whatever mail handler is configured locally. On your local computer this usually means that the machine will try to deliver the message itself, which often results in it either being rejected or going straight into the spam folder of the receiver. On a properly set up hosted server this is usually not a problem though.

Delivering via SMTP lets you specify an SMTP server that will take over the message delivery for you. A well known and established SMTP server has much better chances of delivering a message to the intended recipient.

deceze