CodeIgniter Forums

Full Version: Not getting mails
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum


I have installed swift api to send mails. But I am not getting customer mails to my personal mail address which I want. Here is my code
$smtp =& new Swift_Connection_SMTP("My domain ", );
        $swift =& new Swift($smtp);
        $fromAdd=new Swift_Address($email,"Name");
        $message =& new Swift_Message("Message", $mail_body);
        $swift->send($message, 'mypersonalmailId', $fromAdd);

I have also tried email class library to send mail but did not succeed.
here is the code using email class library


$config['protocol'] = 'sendmail';
$this->email->from($email, $name);





I have also tried two more options but did not succeed. I m newbie to CI.
Please help me in this matter.

Thanks in advance

El Forum


Is there anyone who can help me please.


El Forum

[eluser]Simian Studios[/eluser]
Few things to check:
* Do you DEFINITELY have the correct email settings for your server? Check them all twice as they are easy to get wrong, especially as some hosting companies have weird setups.
* Have you tried using "echo $this->email->print_debugger();" to see what that says?
* What provider is your personal email address on? It may be that the emails are being sent fine, but they're being blocked by your mail provider.