jupjupp

Topic: disabled sending mail. Any mistake?

i deleted some code, because i dont want to send mail. Is there any mistake?

Thank you, if say something.

<?php
    $job = new Job($id);

    $isNewPost = $job->mIsTemp;
    $postRequiresModeration = !$job->IsApprovedPosterEmail() && ENABLE_NEW_POST_MODERATION;

    if ($isNewPost)
        $job->Publish();
----------------------------------------------------------
//    $postMan = new Postman();
-------------------------------------------------------------
    $jobInfo = $job->GetInfo();
    $jobInfo['isNewPost'] = $isNewPost;
    $jobInfo['postRequiresModeration'] = $postRequiresModeration;
   
    if (!$job->mIsActive)
    $job->Activate();
--------------------------------------------------------------------------------------------
/*    $postMan->MailPublishToAdmin($jobInfo);

    if ($postRequiresModeration)
    {
        if ($isNewPost)
            $postMan->MailPublishPendingToUser($job->mPosterEmail);

        $html_title = $translations['jobs']['add_success'] . ' / ' . SITE_NAME;
    }
    else
    {
        if (!$job->mIsActive)
            $job->Activate();

        if ($isNewPost)
            $postMan->MailPublishToUser($jobInfo);

        $html_title = $translations['jobs']['publish_success'] . ' / ' . SITE_NAME;
    }
*/
--------------------------------------------------------------------------------------------------
    $smarty->assign('postRequiresModeration', $postRequiresModeration);

    redirect_to(BASE_URL . 'confirm/' . $job->mId . '/' . ($postRequiresModeration ? 1: 0) . '/');
    exit;
?>

I really don't say anyone, that i was so stupid !! And I never forget, how stupid i am.

jupjupp

Re: disabled sending mail. Any mistake?

Anybody says any idea. Very interesting. smile

I really don't say anyone, that i was so stupid !! And I never forget, how stupid i am.

jupjupp

Re: disabled sending mail. Any mistake?

I have big head. very big. neutral

I really don't say anyone, that i was so stupid !! And I never forget, how stupid i am.