Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / [RESOLVED] Empty message body

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

[RESOLVED] Empty message body

More
11 years 5 months ago - 11 years 5 months ago #11497 by catalinads
[RESOLVED] Empty message body was created by catalinads
I get this when i load my site as first user after an ad is not anymore top or featured. I mean when the cron is executed
The idea is that i get this even i am not logged... i open the site like a normal user
The message is :Empty message body

(PHPMAILER_EMPTY_MESSAGE="Empty message body")

In paidsystem i dont have setted to sent any email on expiration of the option .
Indeed the body and the subject are empty for all.. but is No to :
Email to send when bring to top: No
Email to send on option expiration: No
Last edit: 11 years 5 months ago by loic.
More
11 years 5 months ago #11508 by loic
Replied by loic on topic Empty message body
Hello,

I will check that on my test site, I come back to you quickly.

Best regards.
More
11 years 5 months ago #11578 by loic
Replied by loic on topic Empty message body
Hello,

I found the problem.

In the file components/com_paidsystem/api.paidsystem.php, in the function sendOptionExpirationMail at line 887, you need to add 2 lies of code :
if($confpaidsystem->mail_on_option_expiration == 1) {
...
}

After adding them, you will have something like this :
if($confpaidsystem->mail_on_option_expiration == 1) {
        $subject = $confpaidsystem->mail_expiration_subject;
        $body = $confpaidsystem->mail_expiration_body;
 
        // get configuration
        $db = JFactory::getDbo();
        $query = "SELECT * FROM #__adsmanager_config WHERE 1";
        $db->setQuery($query);
        $conf = $db->loadObject();
 
        $model = AdsmanagerModelContent::getInstance('content','AdsmanagerModel');
        $content = $model->getContent($contentid,false);
        $user = JFactory::getUser($content->userid);
 
        switch($type) {
            case "highlight": $typename = JText::_('PAIDSYSTEM_HIGHLIGHT');break;
            case "featured": $typename = JText::_('PAIDSYSTEM_FEATURED');break;
            case "top": $typename = JText::_('PAIDSYSTEM_TOP');break;
        }
 
        //TODO add tag in the help context of paidsystem configuration
        $subject = str_replace("{option}",$typename,$subject);
        $body = str_replace("{option}",$typename,$body);
 
        /*$uri	= JURI::getInstance();
        $root	= $uri->toString( array('scheme', 'host', 'port'));
        $link = $root.TRoute::_("index.php?option=com_adsmanager&view=details&catid=".$content->catid."&id=".$content->id,false);
        $link = str_replace("administrator/","",$link);
        $body = str_replace('{link}',$link,$body);*/
 
 
        $model->sendMailToUser($subject,$body,$user,$content,$conf,"option_expiration");
    }

This fix will be release with the next version.

Best regards.
The following user(s) said Thank You: catalinads
More
11 years 5 months ago #11593 by catalinads
Replied by catalinads on topic Empty message body
Perfect!
More
11 years 5 months ago #11611 by loic
Replied by loic on topic Empty message body
Hello,

I suppose I can update the topci subject to resolved :).

Best regards.
More
11 years 4 months ago #12384 by catalinads
Replied by catalinads on topic Empty message body
I have another problem with messages.
After an ad expired
I get : SMTP connect() failed. when i load the site as a normal user.. not logged one.
The fact that is smtp connect failed ..is because i am on localhost and mai not working. If was working probably the message would : message sent.
So .. the idea is that when cron runs and adsmanager should send mails to the users with expired ads is happening that .
The problem is that this message should not be seen by a unlogged user.
Time to create page: 0.071 seconds
Powered by Kunena Forum