Results 1 to 10 of 10
Like Tree2Likes
  • 1 Post By randyths
  • 1 Post By randyths

Thread: Send Email to Contact Email on Claim instead of Author

  1. #1
    Thread Starter
    Expired Customer randyths's Avatar
    Join Date
    Aug 2015
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Send Email to Contact Email on Claim instead of Author

    Hello, i'm starting a new directory site with vantage, but i already have some listings from an old site which i'd like to include in my new site, after i do so, i would like people to claim their listings. In order to do that i would to email them once i create each listing in the site, right now it sends a claim email to the author of the listing, since i'm the author they email are going to my inbox, i would like these emails to go to the contact email i'm setting up for each listing instead, found this code in /vantage/includes/emails.php

    Code:
    /**
     * Sends notification to user when his listing has been approved.
     *
     * @param object $post
     *
     * @return void
     */
    function va_send_approved_notification( $post ) {
    	$recipient = get_user_by( 'id', $post->post_author );
    
    	$content = '';
    
    	$content .= html( 'p', sprintf( __( 'Hello %s,', APP_TD ), $recipient->display_name ) );
    
    	$content .= html( 'p', sprintf( __( 'We are thrilled to let you know that your listing %s is now active on our website.', APP_TD ), $recipient->display_name) );
    
    $content .= html( 'p', sprintf( __( 'If you have any additional listings, please feel free to add them at anytime by logging into your account and clicking “Add a New Listing”.', APP_TD ), $recipient->display_name) );
    
    
    $content .= html( 'p', sprintf( __( 'Keep in mind we have other great ways to reach health-minded Canadians. Reply to this email if you would like to learn more.', APP_TD ), $recipient->display_name) );
    
    	$blogname = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES );
    
    	$subject = sprintf( __( 'The Healthy Shopper - Your Listing is Active!', APP_TD ), $blogname, $post->post_title );
    
    	appthemes_send_email( $recipient->user_email, $subject, $content );
    }
    I think i should change user_email to populate with the email field in the metabox, any idea how? Many thanks in advance.

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Expired Customer randyths's Avatar
    Join Date
    Aug 2015
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    aj270303's Avatar
    Join Date
    Dec 2011
    Location
    United Kingdom
    Posts
    2,106
    Thanks
    56
    Thanked 99 Times in 81 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    Thread Starter
    Expired Customer randyths's Avatar
    Join Date
    Aug 2015
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    aj270303's Avatar
    Join Date
    Dec 2011
    Location
    United Kingdom
    Posts
    2,106
    Thanks
    56
    Thanked 99 Times in 81 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #8
    Thread Starter
    Expired Customer randyths's Avatar
    Join Date
    Aug 2015
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    aj270303 likes this.

  9. #9
    Thread Starter
    Expired Customer randyths's Avatar
    Join Date
    Aug 2015
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #10
    Thread Starter
    Expired Customer randyths's Avatar
    Join Date
    Aug 2015
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    aj270303 likes this.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: July 4th, 2015, 05:13 AM
  2. Claim Listing - Send automated email with URL to claim listing
    By vickyj in forum Help Using Vantage (Legacy)
    Replies: 2
    Last Post: April 28th, 2014, 12:10 PM
  3. Samcy contact form don't send email to author!
    By yanam in forum Report ClassiPress Bugs
    Replies: 9
    Last Post: March 19th, 2014, 12:26 PM
  4. filtering email address to send from sidebar-contact
    By guilleush in forum ClassiPress General Discussion
    Replies: 0
    Last Post: August 20th, 2013, 04:27 PM
  5. Send email to author trouble
    By aledan in forum ClassiPress General Discussion
    Replies: 0
    Last Post: September 28th, 2009, 08:04 AM