• Resolved mrachmad

    (@mrachmad)


    Hello Support awsm_job_openings,

    How to add function to change sender mail and name with HR Email, without change default site email address? Tks

    • This topic was modified 5 years, 7 months ago by mrachmad.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support vidyakv

    (@vidyakv)

    Hi @mrachmad,

    Currently, we don’t provide any settings to change that.

    If you are a developer, you can use these filter hooks, awsm_jobs_applicant_notification_mail_headers and awsm_jobs_admin_notification_mail_headers to change sender mails.
    You have to modify these values from your theme(child theme is recommended) or using an add-on plugin.

    Thanks
    Vidya k v

    Thread Starter mrachmad

    (@mrachmad)

    Hi @vidyakv,

    Thanks for support, but can you give example to implement this code:
    1.awsm_jobs_applicant_notification_mail_headers
    2.awsm_jobs_admin_notification_mail_headers

    Thanks

    • This reply was modified 5 years, 7 months ago by mrachmad.
    Thread Starter mrachmad

    (@mrachmad)

    i just put this code:

    function awsm_jobs_applicant_notification_mail_headers() {
    return ‘[email protected]’;
    }
    add_filter(‘wp_mail_from’, ‘awsm_jobs_applicant_notification_mail_headers’);

    but not working. any help?

    Plugin Support vidyakv

    (@vidyakv)

    Please try the below code

    function awsm_jobs_applicant_mail_headers( $headers ) {
    $headers[‘from’] = sprintf( ‘From: %1$s <%2$s>’, ‘Company Name’, ‘[email protected]’ );
    $headers[‘reply_to’] = sprintf( ‘Reply-To: %1$s <%2$s>’, ‘Company Name’, ‘[email protected]’ );
    return $headers;
    }
    add_filter( ‘awsm_jobs_applicant_notification_mail_headers’, ‘awsm_jobs_applicant_mail_headers’ );

    function awsm_jobs_admin_mail_headers( $headers ) {
    $headers[‘from’] = sprintf( ‘From: %1$s <%2$s>’, ‘Company Name’, ‘[email protected]’ );
    return $headers;
    }
    add_filter( ‘awsm_jobs_admin_notification_mail_headers’, ‘awsm_jobs_admin_mail_headers’ );

    Thread Starter mrachmad

    (@mrachmad)

    Hi @vidyakv,

    Thanks very much for your support, I’ve implemented your code above. But still nothing happens and the ‘reply-to’ disappeared from email header. (https://prnt.sc/ondxf5)

    I think this is a problem because I use the WP Mail SMTP plugin. What do you think?

    But if I uninstall the plugin SMTP, I can not process the e-mail.

    • This reply was modified 5 years, 7 months ago by mrachmad.
    • This reply was modified 5 years, 7 months ago by mrachmad.
    Plugin Support vidyakv

    (@vidyakv)

    Hi @mrachmad

    Make sure that Force From Email is unchecked in WP Mail SMTP
    https://cl.ly/ff4b9a38899d

    Thread Starter mrachmad

    (@mrachmad)

    Hi @vidyakv,

    If I unchecked Force From Email in WP Mail SMTP, the email from aws job openings can’t be received or any email can’t be processed. Any ideas?

    Thanks

    Plugin Support vidyakv

    (@vidyakv)

    Hi,

    It may be because you are using the default PHP mail service. If you can, please consider changing the mail service in the WP Mail SMTP plugin. Maybe it can help solve your issue. We have tested this with WP Mail SMTP plugin but couldn’t replicate it.

    Thanks

    Thread Starter mrachmad

    (@mrachmad)

    Hi @vidyakv,

    Sorry, what means of “couldn’t replicate it.”? Does that mean email sender address from awsm_job_openings can’t be changed to be HR Email Address (only for awsm_job_openings)? Without change default email admin.

    I’ve tried the steps above, but can’t change the awsm_job_openings email address to be HR Email Address only.

    Thanks

    • This reply was modified 5 years, 7 months ago by mrachmad. Reason: add paragraf
    Plugin Support vidyakv

    (@vidyakv)

    Hi,

    We have tested our plugin with WP Mail SMTP following the same scenarios. But, we couldn’t replicate the same issue. We have no problem with sending mail from another email.
    Please make sure that HR mail is allowed to send mail from your server. Sometimes you have to register this email (in Cpanel). If you use other services such as Sendgrid or Mailgun, then it won’t be a problem. Hope it solves your confusion.

    Thank you
    Vidya k v

    Thread Starter mrachmad

    (@mrachmad)

    Hi @vidyakv ,

    Awesome plugin, your code is magic.

    function awsm_jobs_applicant_mail_headers( $headers ) {
    $headers[‘from’] = sprintf( ‘From: %1$s <%2$s>’, ‘Company Name’, ‘[email protected]’ );
    $headers[‘reply_to’] = sprintf( ‘Reply-To: %1$s <%2$s>’, ‘Company Name’, ‘[email protected]’ );
    return $headers;
    }
    add_filter( ‘awsm_jobs_applicant_notification_mail_headers’, ‘awsm_jobs_applicant_mail_headers’ );

    function awsm_jobs_admin_mail_headers( $headers ) {
    $headers[‘from’] = sprintf( ‘From: %1$s <%2$s>’, ‘Company Name’, ‘[email protected]’ );
    return $headers;
    }
    add_filter( ‘awsm_jobs_admin_notification_mail_headers’, ‘awsm_jobs_admin_mail_headers’ );

    The fault is in me, now everything has working succeeded fully… Yeeaaaaahh … horaiiiii… ??

    Thanks for your custom function code.
    Achmad S

    • This reply was modified 5 years, 7 months ago by mrachmad.
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Application Notifications’ is closed to new replies.