Yii Framework Forum: YiiMail - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

YiiMail problem to detect failure delivery Rate Topic: -----

#1 User is offline   Steve4891 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 10-February 12

Posted 10 July 2012 - 12:36 PM

Hello guys,

i'm having a problem with this extension that use the powerfull Swiftmailer.

it's very powerfull because i can send mails perfectly, but i would detect when an email returns me delivery failure.

looking at the documentation should be easy beacuse it says that i would write this code:

if (!$mailer->send($message, $failures))
{
  echo "Failures:";
  print_r($failures);
}


unfortunately the $failures variable is always empty... even though i received many DELIVERY FAILURE on my email.

anyone knows why this happens? as i said, reading the documentation should be easy enough.. but it doesn't work for me..
thanks to everyone.
0

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 10 July 2012 - 02:55 PM

Then it would probably be a good idea to check what 'send' returns.
If it's 'DELIVERY_FAILURE', then check against that in the conditional.
"Less noise - more signal"
0

#3 User is offline   Steve4891 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 10-February 12

Posted 10 July 2012 - 04:00 PM

View Postjacmoe, on 10 July 2012 - 02:55 PM, said:

Then it would probably be a good idea to check what 'send' returns.
If it's 'DELIVERY_FAILURE', then check against that in the conditional.


the send function return always 1, insted it shloud return 0 if something goes wrong... i really don't understand
0

#4 User is offline   Bynton 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 09-July 12

Posted 10 July 2012 - 04:33 PM

View PostSteve4891, on 10 July 2012 - 04:00 PM, said:

the send function return always 1, insted it shloud return 0 if something goes wrong online merchant account... i really don't understand



Please remove the extension and than re-install it again. I hope so you problem will be sort out.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users