Changing the headers to not show employer's email...

shanep - January 20, 2009 - 20:37
Project:Job Posting
Version:5.x-1.4
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Any suggestions? I think this is where I need to change it, thanks!!

function job_posting_mail_alter(&$key, &$to, &$subject, &$body, &$from, &$headers) {
global $user;
// intercept and alter confirmation mail only
switch ($key) {
case 'confirmation':
$confirmation = 'Thank you for your interest in a career at our company. "'
."\n\n".'You don\'t need to do anything'
.' further with this message (except maybe save it for your records).';
$headers['Content-Type'] = 'text/plain; charset=UTF-8; format=flowed;';
$body = t('!message', array('!message' => $confirmation), $user->language);
break;
}
}

#1

shanep - January 20, 2009 - 20:39

Or even to be able to make the From and Reply-to emails be something static but not where they are sent. Like a masked email or something.. like the email is sent to NewJobs@domain.com and the From/Reply-to prints Careers@domain.com.. Make sense? Thanks for any assistance!

#2

shanep - January 27, 2009 - 14:42
Category:support request» feature request

Is there no easy way to do this? I think I saw a similar post with the WebForm module, I'll see if I can find anything there. I changed this to a Feature Request. Thanks!

#3

gmarus - September 30, 2009 - 17:18
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.