jobberBase Community

Welcome to jobberBase Developer Community!

You are not logged in.

Announcement

Announcement for new users: in order to combat the ever increasing spam, we no longer allow new users to post links in the message body. This limitation is automatically lifted once a new user has a specific number of 'valid' posts.

You can post links like google.com which will be rendered as text but you will not be able to post messages that contain complete URLs like www.google.com

Thank you for your understanding!

#1 2008-12-19 02:22:09

Tokyoj
Senior Contributor
Registered: 2008-08-20
Posts: 311

How to add a BCC option to Apply Online

Thanks to Chronos, Putypuruty this works.
I thought BCC would allow applicants to keep a record of the application if they want, without add a Candidate Control Panel.

To give the applicant the option of being BCC'd on the application do this:


Step 1. Add a field and corresponding label for the email address. (I didn't use form validation but can if you want/need to) and then name the field my_email or whatever you want.

Example:
<td><label for="my_email">Your email:</label></td>

<td>
<input {if $smarty.session.apply_errors.apply_email}class="error"{/if} type="text" name="my_email" id="my_email" maxlength="60" size="30" value="{$smarty.session.apply_fields.my_email}" />

<span class="validation-error">{if $smarty.session.apply_errors.my_email}<img src="{$BASE_URL}img/icon-delete.png" alt="" />{/if}</span>   

<span>If you want to be BCC'd please enter your email address here. </span>
</td>



Step 2. Add the my_email string as a BCC to class.Postman.php. Below it's added as the 4th entry.

Example:
// Send online application to employer
     public function MailApplyOnline($data)
    {
        $extra = '\n\n---\nThis email is from' . $_SERVER['HTTP_REFERER'] . 'from YOURSITENAME.';
        $mail = new PHPMailer();
        $mail->From = $data['my_email'];
        $mail->AddBCC($data['my_email']);
        $mail->FromName = $data['apply_name'];                   
    $mail->Body = str_replace(array('\r\n', '\r', '\n'), '<br />', $data['apply_msg'] . $extra);
    $mail->AltBody = $data['apply_msg'] . $extra;
        $mail->Subject = "[" . SITE_NAME . "]'" . $data['job_title'] . "'application";
    $mail->AddAddress($data['company_email'], $data['company_name']);
    }

This code my differ from yours somewhat but the syntax and process works. Just edit it to suit your needs. If you have any problems, please post.


---------------
Tokyoj
"You can't build a reputation on what you're going to do." (Henry Ford)
"Insanity is doing the same thing over and over, expecting different results." (Albert Einstein)

Offline

#2 2009-03-08 05:13:16

hobo
Member
Registered: 2009-03-01
Posts: 447

Re: How to add a BCC option to Apply Online

Hi, I applied this mod and it works great.
Now, this unfortunately reveals the address of job poster to anyone who applies for the job, which is bad I guess.
Is there a way to replace job poster e-mail with something like noreply@mydomain.com?

Offline

#3 2012-06-12 12:14:18

irey_gothic
Member
Registered: 2012-06-12
Posts: 5

Re: How to add a BCC option to Apply Online

i'm still confuse with cc or bcc ..
dont understand, how to? where i must edit,
i'm really need it ..

Last edited by irey_gothic (2012-06-12 12:14:57)

Offline

#4 2012-06-18 15:26:20

dvtservices
DV Tech Services works for jobeerbas custamisation
From: Bangalore, India
Registered: 2011-09-01
Posts: 151
Website

Re: How to add a BCC option to Apply Online

you need to add in the mailar class. please send your requiremt to venkat@dvtservices.com. we will do your job


Thanks &Regards
DV Tech Services Pvt Ltd
Email: venkat@dvtservices.com;   www.dvtservices.com  Bangalore. India
                             We are Ready to Resolve your problems ..... And Ready to work for jobber base customizations

Offline

Board footer

Powered by FluxBB