Due to the SPAM received through Opencart please find me at the www.websitesbuilder.com.au form for any question as I will not be notified of comments here.
As I'm getting heaps of SPAM from companies that uses bots from my contact form and I work with Mailrelay, I decided to develop this extension to automatically subscribe them once they submit my site form. -very simple when you use the php mail function.
// Mailrelay Subscription VQMod
// Go to Mailrelay - Subscription Form - Custom Subsciption form
$url = 'https://websitesbuilder.ip-zone.com/ccm/subscribe/index/form/w2d2xkncwy';
$myvars = 'email=' . $this->request->post['email'];
//or a specific group
//$myvars = 'groups=4&email=' . $this->request->post['email'];
$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_POST, 1);
curl_setopt( $ch, CURLOPT_POSTFIELDS, $myvars);
curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt( $ch, CURLOPT_HEADER, 0);
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec( $ch );