Mailrelay Auto-Subscribe from Contact Form

Mailrelay Auto-Subscribe from Contact Form
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 );




Download
  • Developed by OpenCart Community
  • 12 Months Free Support
  • Documentation Included

Rating

Compatibility
1.5.6, 1.5.6.1, 1.5.6.2, 1.5.6.3, 1.5.6.4

Last Update
21 Jul 2020

Created
27 Feb 2020
8 Downloads
0 Comments
comprido
comprido
Member since: 25 Jun 2012

View all extensions Get Support