latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Sign Conf Email stopped sending

Home Forums Community Forum Sign Conf Email stopped sending

This topic contains 45 replies, has 2 voices. Last updated by  Cristián Lávaque 3 years, 5 months ago.

Topic Author Topic
Posted: Tuesday Jun 11th, 2013 at 4:19 pm #51781

Each time someone buys a product from Clickbank they receive the email from Clickbank, plus an email from my site. The email from my site is no longer sending…..?

It was working now it isn’t – only thing that I have changed has been the fact that I have added ‘sign up tracking codes’ for google analytics.

Any ideas? Do you need a log or something?

List Of Topic Replies

Viewing 25 replies - 1 through 25 (of 45 total)
Author Replies
Author Replies
Posted: Tuesday Jun 11th, 2013 at 5:23 pm #51785

I removed the Sign up tracking code and the email now sends?

This is the code I was using that I hoped would track signups into google analytics? (i x’d out my UA code for the purposes of this forum) Is there a problem with it that would cause my sign up confirmation email not to send?

<script type="text/javascript">

  var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_addTrans',
    '%%subscr_id%%', // transaction ID - required
    'traktortips.com', // affiliation or store name
    '%%initial%%' // total - required
  ]);
  
  _gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
  
(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
Posted: Thursday Jun 13th, 2013 at 2:37 am #51847

I see you modified a bit the code given in this article: Knowledge Base » Google® Analytics ECommerce Tracking

I’ll ask Jason about this, he’s the one that wrote the article and is more familiar with the Google Analytics integration.

Posted: Thursday Jun 13th, 2013 at 3:35 am #51861

Thank you – For now however – I have deleted this code and built my own thank you page, using the divert as outlined in the instructions. This new method works great in testing, just waiting for the next realtime purchase, usually one ever other day or so.

Despite this, I would still like to know if I need to add the tracking code in that same box and if so, how this would best integrate with GA. I have now set up my thank you page as a goal in GA, but am having a huge headache in figuring out how to e-commerce track with values etc etc.

I am sure Jason will be able to direct me to the relevant topics. (I am drowning in google instructions on ‘cross-domain tracking’??

Thanks for your help?

Posted: Thursday Jun 13th, 2013 at 3:36 am #51863

Sorry – that wasnt meant to be a question mark…..

Thanks for your help.

Posted: Thursday Jun 13th, 2013 at 3:51 am #51865

Got it. Okay, I’ll let you know when Jason gets back to me.

Did you try the code Jason gives in the article without modifications? Did it work? Knowledge Base » Google® Analytics ECommerce Tracking

Posted: Monday Jun 17th, 2013 at 11:47 pm #52060

This is what Jason said:

I’m not seeing a connection between Signup Tracking Codes (which occur client-side via JavaScript code); and Signup Confirmation Emails which occur server-side behind-the-scene via s2Member’s ClickBank IPN handler. Therefore, I suspect this is perhaps due to a confusion during testing. I’m not aware of any way that Signup Tracking Codes would impact s2Member’s IPN handler for ClickBank.

Regarding the eCommerce tracking code. They are missing some of the code snippet in the instructions I provided in the article. They will need to follow instructions provided by Google on this; and I would ask them to be sure to add an Item as well; because their current implementation is missing the snippet that pushes a transaction Item to the stack. See: http://www.s2member.com/kb/ga-ecommerce-tracking/

Posted: Tuesday Jun 25th, 2013 at 2:56 am #52535

Thank you Christian – I will deal with the e-commerce tracking at a later date. For the time being though, I am still having the issues with the Sign up confirmation email not sending!

Removing the tracking code did appear to fix this initially, however, it seems to now be a problem again. Is there any logs I can send you that might indicate as to why this is happening.

It also appears that emails are not sending when I register for them. So it maybe some conflict with another plugin perhaps? It seems that maybe i need to update the S2 member plugin also….. something I am very nervous to do? (i currently have v130221 but it says I have v130617 available. Maybe this upgrade will solve my issues?

Thanks

Posted: Tuesday Jun 25th, 2013 at 5:37 pm #52556

Well, it is best to run the latest release, so you rule out any known issues that were resolved in those releases.

About the emails not sending, got it, then that problem was unrelated to tracking.

Since you mention having problems with the new user email too, I’d try these:
Knowledge Base » Troubleshooting Email Delivery Problems

And if those aren’t enough, I’d try all these:
Knowledge Base » Common Troubleshooting Tips

And if even then you still have the problem, please submit the site’s info so I can take a look. Please leave me a note here after you do, so I look for it. Thanks! s2Member® » Private Contact Form

Ah, please have logging enabled, so we get more information from test transactions. The transactions can be for 1 cent during testing. [hilite path]Dashboard -› s2Member® -› Log Files (Debug) -› Logging Configuration[/hilite]

Posted: Wednesday Jun 26th, 2013 at 12:53 pm #52626

Hi Christian – I have submitted details for you to access the site.

I changed the email to be hosted on my main server with dreamhost rather than going through the gmail account (This didnt fix it.)
I then went through the processes in the email article above – used the mail logs plugin (didnt get a log)
Then I set up the WP mail smtp plugin (the test email sent, but still didnt function on a test)
I then decided to bck up the database and site ready to upadate the S2member plugin and the wordpress. Left it backing up overnight.
This morning – i decided to a do one last test before updating the framework and the email came through!!!!

I’m not sure why this would be the case? Is there anything in the logs that would indicate whether this is now stable or, if it’s going to be an intermittent problem??

Thanks so much.

Posted: Thursday Jun 27th, 2013 at 3:05 am #52646

Maybe the change in the email configuration just needed some time to complete. Just keep an eye on it, test it often, to see if you still get the emails.

I’m glad you solved it. Thanks for the update. :)

Posted: Thursday Jun 27th, 2013 at 1:15 pm #52687

Definitely will do – thanks Christian….. ;-)

Posted: Friday Jun 28th, 2013 at 6:02 am #52722

Cool. :)

Posted: Friday Jun 28th, 2013 at 2:49 pm #52755

Ok – I know you guys are going off for the weekend which is why I hope to catch you. The email stopped sending!!!

I therefore updated the S2 member framework and the pro software.

I then ran the WP smtp email plugin and the test email sends.

I have the from address in the email conf signup set to the same as the one in the smtp plugin.

No email (i receive the clickbank receipt but not the sign up conf)

ALSO:

Since update I have lost the customized clickbank order for template – this is my button code:-

<a href="[s2Member-Pro-ClickBank-Button cbp="1" level="1" ccaps="" desc="My Product Access / description and pricing details here." custom="mysite.com" tp="0" tt="D" rp="1" rt="L" rr="0" image="default" output="url" /]&cbskin=4786" /><img src="http://mysite.com/wp-content/uploads/2013/03/tt-buy-now-button.png" /></a>

But it now just links to the standard order form!

Thanks – i hope you can help today?!!

Posted: Friday Jun 28th, 2013 at 9:32 pm #52767

I checked your logs and found this:

2 => ‘Unable to verify `$_SERVER[“HTTP_HOST”]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.’,

I went to see your salespage with the CB buttons (page ID 3294), looked at its code in the text editor and noticed that the s2Member shortcodes are all broken. You need to fix them and then test again, please.

Also, [hilite mono]cbskin[/hilite] is now supported in the shortcode. See: [hilite path]Dashboard -› s2Member® -› ClickBank® Buttons -› Shortcode Attributes -> cbskin[/hilite]

So your shortcode would look like this:

[[s2Member-Pro-ClickBank-Button cbp="1" level="1" ccaps="" desc="My Product Access / description and pricing details here." custom="mysite.com" tp="0" tt="D" rp="1" rt="L" rr="0" image="http://mysite.com/wp-content/uploads/2013/03/tt-buy-now-button.png" output="anchor" cbskin="4786" /]]

I hope that helps!

Posted: Friday Jun 28th, 2013 at 9:39 pm #52768

By the way, I see you have the same button several times in the page. So the shortcode doesn’t need to be parsed each time, you could parse it once and then use the output several times with a bit of PHP, like this:

<?php $s2_cb_button = do_shortcode('[[s2Member-Pro-ClickBank-Button cbp="1" level="1" ccaps="" desc="My Product Access / description and pricing details here." custom="mysite.com" tp="0" tt="D" rp="1" rt="L" rr="0" image="http://mysite.com/wp-content/uploads/2013/03/tt-buy-now-button.png" output="anchor" cbskin="4786" /]]'); ?>

Then you just echo [hilite mono]$button[/hilite] where you want it:

<?php echo $s2_cb_button; ?>

Remember you’ll need a PHP execution plugin for that to work in your WP page, and not to use the Visual editor or it’ll break the PHP code. Knowledge Base » ezPHP Plugin for WordPress®

Or you could do something like this: Knowledge Base » ClickBank buttons outside the site with s2Member

Posted: Saturday Jun 29th, 2013 at 2:03 pm #52806

Thanks Christian – I am using the new code – (The code wasn’t broken before, maybe it broke because you went into visual mode) The custom template with cbskin is now working Thanks.

Still no emails!?

I have also updated to the latest wordpress and have set the wp mail smtp up properly so that I am even receiving the test email.

I have submitted a ticket to Dreamhost to see if the problem lies with them……? (Tracking number for their support is 5830442)

I have tried disabling various plugins, but I can’t seem to solve this one!!! It’s so strange – could there be anything to do with mailchimp integration??

I am at a loss….

Posted: Saturday Jun 29th, 2013 at 7:11 pm #52809

I did receive a reply from Dreamhost, saying that the emails are getting bounced due to some new anti-spam setting they recently put in place.

They directed me to this help article http://wiki.dreamhost.com/Sender_Domain_Policy_and_Spoofing#Sender_domain_policy._What_is_it.3F

Before changing anything I decided to run a test, which was successful and then another real purchase came through, which was also successful.

I have had 2 successful emails now! I have changed nothing since my last message. I’m losing confidence in the set up of the plugin combined with dream host and can’t relax not knowing whether it’s going to continue working.

For now I will keep my fingers crossed that the emails continue to be sent…… watch this space….. thanks

Posted: Saturday Jun 29th, 2013 at 8:53 pm #52810

Cool, I’m glad you are making progress. I’ll keep an eye on this for your updates.

Thanks Christian – I am using the new code – (The code wasn’t broken before, maybe it broke because you went into visual mode) The custom template with cbskin is now working Thanks.

No, when I went to edit the page, the Visual one was the default and I changed to the Text one to see the codes. But the way the shortcodes were broken, didn’t look like something I’ve seen the Visual editor do before either. Who knows what it was, but I’m glad you fixed it and that the new code is working well.

Posted: Saturday Jun 29th, 2013 at 8:58 pm #52813

Thank you so much for keeping your eye on this – I really do appreciate your help.

didn’t look like something I’ve seen the Visual editor do before

It does this every time I switch from visual to text – ever since i figured that out, I always just leave it in text mode.

Thanks – will keep you posted with any changed to the sign up confirmation email. ;-)

Posted: Saturday Jun 29th, 2013 at 9:24 pm #52815

Cool. :)

It does this every time I switch from visual to text – ever since i figured that out, I always just leave it in text mode.

I see. Well, the tip I gave you in the other reply should help with that, then, since you won’t need to mix HTML with shortcode. If you use just shortcodes it’ll be fine, if you use PHP you’ll still have to avoid the visual editor, but the other tip would let you use a normal URL to the hack. At least you have choices now.

Posted: Sunday Jun 30th, 2013 at 3:32 am #52821

I’ll definitely spend some time figuring out that tip – thanks.

Just ran a test before replying to this and (touch wood) it seems to be back on track. i have my fingers crossed that it was just dreamhost server issues with their anti-spam and things settling down now! I’m still not 100% relaxed about the process, but i am very happy with your diligent support, help and tips.

I’m looking forward to your future updates that enable multiple (non-teired) products. Thanks again for the great service!

Posted: Sunday Jun 30th, 2013 at 3:44 am #52822

Great! I’m glad it’s looking good. Keep tabs on it and let me know how it goes (hopefully all well).

And thanks for the kudos! Glad to be of help. :)

Posted: Thursday Jul 11th, 2013 at 12:59 pm #53302

I’m sorry – but I’m back! The email has stopped sending again?! I have tried changing the email address to another dreamhost hosted address and I have also checked the “Set the return-path to match the From Email” in the WP Mail SMTP plugin and tested i with that too. Still no joy……

I’m at a loss……

I even tried a different smtp plugin instead of ‘WP Mail smtp’ – I tried ‘Configure SMTP’ – both send the test email fine, but still nothing when running a test purchase?

I have also submitted another support ticket to Dreamhost!

Posted: Friday Jul 12th, 2013 at 6:46 am #53331

So, is it just the s2Member signup confirmation email not being sent, but the WP new user one is?

Did you check the spam folder to see if the signup confirmation is there?

Do you have logging enabled? What does it mention the confirmation email being sent in one of the log entries for the transaction? [hilite path]Dashboard -› s2Member® -› Log Files (Debug) -› Logging Configuration[/hilite]

Have you followed all the suggestions in these?
Knowledge Base » Troubleshooting Email Delivery Problems
Knowledge Base » Common Troubleshooting Tips

Posted: Friday Jul 12th, 2013 at 11:28 am #53355

Don’t know if this helps – but there’s a bunch of these >

LOG ENTRY: Thu Jul 11th, 2013 @ precisely 6:43 pm UTC
PHP v5.3.13 :: WordPress® v3.5.2 :: s2Member® v130617 :: s2Member® Pro v130617
Memory 34.03 MB :: Real Memory 34.25 MB :: Peak Memory 34.10 MB :: Real Peak Memory 34.25 MB
traktortips.com/?s2member_pro_clickbank_return=1&s2member_pro_clickbank_return_success=http%3A%2F%2Ftraktortips.com%2Fbasics_course_thank-you&item=1&cbreceipt=9RJ3F43E&time=1373568210&cbpop=C794084F&cbaffi=EDTUCKER&cname=alan+tester&cemail=adc181%40hotmail.com&ccountry=CA&czip=V0R2Z0&cbskin=4786&cbfid&cbur&cbf&s2_invoice=1&s2_p1&s2_p3&s2_desc=My+Product+Access+%2F+description+and+pricing+details+here.&s2_custom=traktortips.com&s2_customer_ip=216.57.186.189&s2_referencing=1&_s2member_sig=1373568179-a62ea48d19216a2e404fd7952f271df1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1
array (
  'state' => 'response',
  'transport_class' => 'WP_HTTP_curl',
  'args' => 
  array (
    'method' => 'GET',
    'timeout' => 20,
    'redirection' => 5,
    'httpversion' => '1.1',
    'user-agent' => 'WordPress/3.5.2; http://traktortips.com',
    'reject_unsafe_urls' => false,
    'blocking' => true,
    'headers' => 
    array (
      'Accept' => 'application/json',
      'Authorization' => 'DEV-A2EBDB8BFACF413850EB65BD553148A068BC:API-2A3A9A6A32EEC504FF0736A53C1A0CDEB359',
      'Accept-Encoding' => 'deflate;q=1.0, compress;q=0.5',
    ),
    'cookies' => 
    array (
    ),
    'body' => NULL,
    'compress' => false,
    'decompress' => true,
    'sslverify' => false,
    'stream' => false,
    'filename' => NULL,
    's2member' => '130617',
    '_redirection' => 5,
    'ssl' => true,
    'local' => false,
  ),
  'url' => 'https://api.clickbank.com/rest/1.2/orders/9RJ3F43E',
  'response' => 
  array (
    'headers' => 
    array (
      'date' => 'Thu, 11 Jul 2013 18:44:13 GMT',
      'server' => 'Apache/2.2.24 (FreeBSD) mod_jk/1.2.37 mod_ssl/2.2.24 OpenSSL/0.9.8y',
      'set-cookie' => 'JSESSIONID=43F4F64D7E28FDD37A4A5D430560B9A6.AW2; Path=/api; Secure; HttpOnly',
      'vary' => 'Accept-Encoding',
      'transfer-encoding' => 'chunked',
      'content-type' => 'text/html',
    ),
    'body' => '

<html>
<body>
    HTTP Status 410, The requested resource is no longer available at the server.<br/>
    
        <b>API v1.0 - v1.2 deprecated. Please use v1.3. For more information please see: http://bit.ly/10M8Hg2</b>
    
</body></html>',
    'response' => 
    array (
      'code' => 410,
      'message' => 'Gone',
    ),
    'cookies' => 
    array (
      0 => 
      WP_Http_Cookie::__set_state(array(
         'name' => 'JSESSIONID',
         'value' => '43F4F64D7E28FDD37A4A5D430560B9A6.AW2',
         'expires' => NULL,
         'path' => '/api',
         'domain' => NULL,
         'secure' => '',
         'httponly' => '',
      )),
    ),
    'filename' => NULL,
  ),
)

ALSO dreamhost is saying something is not working with the email sending as it’s bouncing, but I have followed all the steps and set up everything as both their and your support articles suggest. I am now beginning to think there is something in my contact.php that could be messing it all up?

Any ideas?

<?php
/**
 * Template Name: Contact
 * The main template file for display contact page.
 *
 * @package WordPress
*/


/**
*	if not submit form
**/

if(!isset($_GET['your_name']))
{

if(!isset($hide_header) OR !$hide_header)
{
	get_header(); 
}
?>
		<br class="clear"/>

		<!-- Begin content -->
		<div id="content_wrapper">
			
			<div class="inner">

				<!-- Begin main content -->
				<div class="inner_wrapper">
				
				
					<div class="sidebar_content">
					
						<?php echo dimox_breadcrumbs(); ?>
					
						<h2 class="widgettitle header"><?php the_title(); ?></h2>
						
						<div class="page_fullwidth">
						<?php 
							if ( have_posts() ) while ( have_posts() ) : the_post(); ?>		

									<?php the_content(); ?>

						<?php endwhile; 
						?>
						
						<form id="contact_form" method="get" action="<?php echo curPageURL(); ?>">
						    <input id="your_name" name="your_name" title="<?php echo _e( 'Name', THEMEDOMAIN ); ?>*" type="text" style="width:47%"/>
						    <br/><br/>
						    <input id="email" name="email" type="text" title="<?php echo _e( 'Email', THEMEDOMAIN ); ?>*" style="width:47%"/>
						    <br/><br/>
						    <textarea id="message" name="message" title="<?php echo _e( 'Message', THEMEDOMAIN ); ?>*" rows="7" cols="10" style="width:97%"></textarea>
						    <br/><br/>
						    <input type="submit" value="<?php echo _e( 'Send Message', THEMEDOMAIN ); ?>"/><br/><br/>
						</form>
						<div id="reponse_msg"></div>
						
						</div>
					</div>
					
					<div class="sidebar_wrapper">
						<div class="sidebar">
							
							<div class="content">
							
								<ul class="sidebar_widget">
								<?php dynamic_sidebar('Contact Sidebar'); ?>
								</ul>
								
							</div>
						
						</div>
					</div>
				
				</div>
				<!-- End main content -->
							
				<br class="clear"/>
				
<script>
$j(document).ready(function(){ 
    $j.validator.setDefaults({
    	submitHandler: function() { 
    		var actionUrl = $j('#contact_form').attr('action');
    	    
    	    $j.ajax({
  		        type: 'GET',
  		        url: actionUrl,
  		        data: $j('#contact_form').serialize(),
  		        success: function(msg){
  		        	$j('#contact_form').hide();
  		        	$j('#reponse_msg').html('<br/>'+msg);
  		        }
    	    });
    	    
    	    return false;
    	}
    });    
    	
    $j('#contact_form').validate({
    	rules: {
    	    your_name: "required",
    	    email: {
    	    	required: true,
    	    	email: true
    	    },
    	    message: "required"
    	},
    	messages: {
    	    your_name: "<?php echo _e( 'Please enter your name', THEMEDOMAIN ); ?>",
    	    email: "<?php echo _e( 'Please enter a valid email address', THEMEDOMAIN ); ?>",
    	    message: "<?php echo _e( 'Please enter some message', THEMEDOMAIN ); ?>"
    	}
    });
});
</script>
				
<?php
if(!isset($hide_header) OR !$hide_header)
{
?>	
			</div>
			
			<br class="clear"/>
		</div>
		<!-- End content -->
				

<?php get_footer(); ?>

<?php
}
?>
				
<?php
}

//if submit form
else
{

	/*
	|--------------------------------------------------------------------------
	| Mailer module
	|--------------------------------------------------------------------------
	|
	| These module are used when sending email from contact form
	|
	*/
	
	//Get your email address
	$contact_email = get_option('pp_contact_email');
	$pp_contact_thankyou = get_option('pp_contact_thankyou');
	
	//Enter your email address, email from contact form will send to this addresss. Please enter inside quotes ('myemail@email.com')
	define('DEST_EMAIL', $contact_email);
	
	//Change email subject to something more meaningful
	define('SUBJECT_EMAIL', 'Email from contact form');
	
	//Thankyou message when message sent
	define('THANKYOU_MESSAGE', $pp_contact_thankyou);
	
	//Error message when message can't send
	define('ERROR_MESSAGE', 'Oops! something went wrong, please try to submit later.');
	
	
	/*
	|
	| Begin sending mail
	|
	*/
	
	$from_name = $_GET['your_name'];
	$from_email = $_GET['email'];
	
	$mime_boundary_1 = md5(time());
    $mime_boundary_2 = "1_".$mime_boundary_1;
    $mail_sent = false;
 
    # Common Headers
    $headers = "";
    $headers .= 'From: '.$from_name.'<'.$from_email.'>'.PHP_EOL;
    $headers .= 'Reply-To: '.$from_name.'<'.$from_email.'>'.PHP_EOL;
    $headers .= 'Return-Path: '.$from_name.'<'.$from_email.'>'.PHP_EOL;        // these two to set reply address
    $headers .= "Message-ID: <".$now."webmaster@".$_SERVER['SERVER_NAME'].">";
    $headers .= "X-Mailer: PHP v".phpversion().PHP_EOL;                  // These two to help avoid spam-filters
	
	$message = 'Name: '.$from_name.PHP_EOL;
	$message.= 'Email: '.$from_email.PHP_EOL.PHP_EOL;
	$message.= 'Message: '.PHP_EOL.$_GET['message'];
	    
	
	if(!empty($from_name) && !empty($from_email) && !empty($message))
	{
		mail(DEST_EMAIL, SUBJECT_EMAIL, $message, $headers);
	
		echo THANKYOU_MESSAGE;
		
		exit;
	}
	else
	{
		echo ERROR_MESSAGE;
		
		exit;
	}
	
	/*
	|
	| End sending mail
	|
	*/
}

?>
Viewing 25 replies - 1 through 25 (of 45 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.