Skip to Content Skip to Menu

email notifications are sent, except for my msg...

15 years 3 weeks ago #112170 by ProvaStyle
Thanks,

Did you mean crypt.class.php?

I only find config.class.php in the administrator/components, but it didn't work.

When I use crypt.class.php the page will load.

I was looking around in uddeim.api.php:
function sendNewMessage($fromid, $toid, $message, $sendnotification=0, $updatelastsent=0)

I took out the "=0"'s & here's what I have for my code:

require_once("components/com_uddeim/crypt.class.php");
require_once("components/com_uddeim/uddeim.api.php");
$uddeim = new uddeIMAPI();
$fromid=$user->id;
$toid=$toid;
$message=$wildmsg;
$uddeim->sendNewMessage($fromid, $toid, $message, 1, 1);

The code runs through to the end, but I don't get any email. I've checked all settings, & I test by sending myself a PM (& I still get that email).

Is there something I'm missing? Am I way off? Is there any docs I should read?

Thanks,
-David

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
15 years 3 weeks ago #112173 by slabbi
I will check the code tomorrow. Maybe its a bug.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

15 years 3 weeks ago #112174 by ProvaStyle
OK. If I can help at all, let me know.

Also, if you'd like. After I get this working, I'll write up a short note on how to do it, in case anyone else tries.

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
15 years 3 weeks ago #112189 by slabbi
I have fixed the problem, so you can download the fixed version from the trunk (/trunk/com_uddeim/).

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

15 years 3 weeks ago #112253 by ProvaStyle
Thanks,

I've downloaded the new uddeim.api.php & put it on the server
I'm running this code right where I want the email to be sent:

require_once("components/com_uddeim/uddeim.api.php");
$uddeim = new uddeIMAPI();

$fromid=63;
$toid=62;
$message="test email";
$uddeim->sendNewMessage($fromid, $toid, $message, $sendnotification=0, $updatelastsent=0);

It's not sending. Am I missing something? Obviously I could be wrong, but wouldn't $sendnotification=0 mean don't send? I didn't see any other files were updated in the trunk.
Do you have working files I could look at, piece apart, & mimic?

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
15 years 3 weeks ago #112255 by slabbi
Try:

[code:1]$fromid=63;
$toid=62;
$message="test email";
$uddeim->sendNewMessage($fromid, $toid, $message, 1, 1 );[/code:1]

You should really check the php manual what "$x=0" in a function parameter means.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum