mysmallbizu Posted January 7, 2009 Share Posted January 7, 2009 I'd like an action hook that sends a specifically formated email to my autoresponder created when a client completes an order... but not on a recurring payment. The email should look like: The “remote control” email must be sent to remote@yourdomain.com (insert your own domain in the place of yourdomain.com) and it must have a subject line in the format shown below. Unknown entries can be omitted. owner=p1+password=p2+action=p3+name=p4+email=p5+autoresponder=p6+p7+TRAp8+ip=p9+drop=p10 The parameters p1 to p10 are explained here p1: Your owner name : Required p2: Your password : Required p3: subscribe or unsubscribe p4: Your subscriber's name p5: Your subscribers email address p6: Your autoresponder's subscription address (without the domain) p7: plain or html p8: The tracking tag to be associated with the subscription p9: The IP address to be associated with the subscriber's record. p10: Set to yes if you want the drop rules for the autoresponder to be actioned by this subscription. For example, the following subject line would be valid: owner=abc+password=12345+action=subscribe+name=John+email=john@johndoe.com+autoresponder=info+ip=10.10.0.3 I thought there was checkout script that did this before action hooks but I haven't seen anything similar for action hooks... Any suggestions or can someone get me started here??? Thanks... 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted January 10, 2009 Author Share Posted January 10, 2009 Anyone know how to have the action hook send an email? 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted January 12, 2009 Author Share Posted January 12, 2009 I took this bit of code from the old checkout script and tried to modify if for actionhooks... So far this is what I've added to the actionhooks.php but it stalls when run.... Can anyone point me in the right direction to get this working? function actionhook_ClientSignup($vars) { $sendEmail = "my name <name@emailaddress.com>"; $emailto = "name@anotheremailaddress.com"; $subject = "owner=owser+password=password+action=subscribe+name=$vars["FirstName"] $vars["LastName"]+email=$vars["Email"]+autoresponder=autorespondername+p7+p8+p9+p10 $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text; charset=iso-8859-1' . "\r\n"; $headers .= "From: $sendEmail" . "\r\n"; $headers .= "Content-type: text/plain; charset=iso-8859-1" . "\r\n"; $datetimefull = date("l F dS, Y - h:i A"); $message = " "; mail($emailto, $subject, $message, $headers); # This function runs when a new client is added # $vars["ClientID"] # $vars["FirstName"] # $vars["LastName"] # $vars["CompanyName"] # $vars["Email"] # $vars["Address1"] # $vars["Address2"] # $vars["City"] # $vars["State"] # $vars["Postcode"] # $vars["Country"] # $vars["PhoneNumber"] # $vars["Password"] } If someone could help me with this I'd greatly appreciate it.. 0 Quote Link to comment Share on other sites More sharing options...
Matt Wade Posted January 12, 2009 Share Posted January 12, 2009 This line is invalid php syntax: $subject = "owner=owser+password=password+action=subscribe+na me=$vars["FirstName"] $vars["LastName"]+email=$vars["Email"]+autoresponder=autorespondername+p7+p8+p9+p10 You need to learn how to include variables inside quotation marks: http://us2.php.net/manual/en/language.types.string.php Look for 'Variable parsing', specifically 'Complex (curly) syntax'. 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted July 16, 2009 Author Share Posted July 16, 2009 I don't want to learn php I just want the hook working! I purchased the email marketing module that arcdigital was offering... but It isnt' working with 4.0 and I dont' think they are going to release any fixes for it. Bottom line is that I need to get this working - just a specifically formated email sent out when a new user registers or a new order is placed... If anyone could take a quick look at the above posts I'd greatly appreciate it.. 0 Quote Link to comment Share on other sites More sharing options...
BryanB Posted July 25, 2009 Share Posted July 25, 2009 I'm looking for the same thing... I'm trying to send an email to my aweber address so it automatically subscribes someone when they create an account 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted July 26, 2009 Author Share Posted July 26, 2009 I'll let you know when it's up and running and I've tested it out... 0 Quote Link to comment Share on other sites More sharing options...
rudberg Posted October 12, 2009 Share Posted October 12, 2009 Any news? it's a neat and certainly useful idea... 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted December 21, 2009 Author Share Posted December 21, 2009 What did you end up doing to get the email marketing module working? Or did you? 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted March 21, 2010 Author Share Posted March 21, 2010 What did you end up doing to get the email marketing module working? Or did you? and never did!!!! Anyone else able to help here??? 0 Quote Link to comment Share on other sites More sharing options...
simonj Posted March 21, 2010 Share Posted March 21, 2010 I'm looking at this also... hope to have something soon. 0 Quote Link to comment Share on other sites More sharing options...
mysmallbizu Posted April 2, 2011 Author Share Posted April 2, 2011 Has anyone created a module for email marketing yet? Either a built in autoresponder or link to a 3rd party app like the one I outlined above? 0 Quote Link to comment Share on other sites More sharing options...
Okoji Posted November 6, 2011 Share Posted November 6, 2011 Any news on this? 0 Quote Link to comment Share on other sites More sharing options...
Loraine321 Posted November 8, 2011 Share Posted November 8, 2011 I'm looking for the same thing... I'm trying to send an email to my aweber address so it automatically subscribes someone when they create an account 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.