CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Newsletter Module
Pages: [1]

Author Topic: Newsletter Module  (Read 2757 times)

zesgar

  • I post occasionally
  • **
  • Posts: 107
  • Karma: 2
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5
Newsletter Module
June 13, 2011, 12:24:14 pm
I am trying to build a simple module to use with Vertical Response.  I need the module to perform two simple tasks.  Add a contact to the civi database and send information to VR newsletter database.  I have been trying to use their simple opt-in form that performs a simple post to post to their site.  But I am having troubles grabbing the post info and using the civi api to add a contact.

Here is their simple opt in form  first, last, email
Code: [Select]
<form method="post" action="http://oi.vresp.com?fid=b0a4e83168" target="vr_optin_popup" onsubmit="window.open( 'http://www.verticalresponse.com', 'vr_optin_popup', 'scrollbars=yes,width=600,height=450' ); return true;" >

  <div style="font-family: verdana; font-size: 11px; width: 160px; padding: 10px; border: 1px solid #000000; background: #dddddd;">
    <strong><span style="color: #333333;">Sign Up Today!</span></strong>
    <p style="text-align: right; margin-top: 10px; margin-bottom: 10px;"><span style="color: #f00;">* </span><span style="color: #333333">required</span></p>
    <label style="color: #333333;">Email Address:</label>    <span style="color: #f00">* </span>
    <br/>
    <input name="email_address" size="15" style="margin-top: 5px; margin-bottom: 5px; border: 1px solid #999; padding: 3px;"/>
    <br/>
    <label style="color: #333333;">First Name:</label>
    <br/>
    <input name="first_name" size="15" style="margin-top: 5px; margin-bottom: 5px; border: 1px solid #999; padding: 3px;"/>
    <br/>
    <label style="color: #333333;">Last Name:</label>
    <br/>
    <input name="last_name" size="15" style="margin-top: 5px; margin-bottom: 5px; border: 1px solid #999; padding: 3px;"/>
    <br/>
    <input type="submit" value="Join Now" style="margin-top: 5px; border: 1px solid #999; padding: 3px;"/><br/>
    <br/><span style="color: #333333"><a title="Newsletter by VerticalResponse" href="http://www.verticalresponse.com">Newsletter</a> by VerticalResponse</span>
  </div>
</form>

I tried just adding the simple civi contact create at the bottom but I don't know how to pull the variables or call the function when the form is submitted. 

Any ideas? Thanks

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Newsletter Module
June 13, 2011, 01:27:59 pm
Hi,

Just to be sure: you are aware that civicrm has a newsletter module too (civimail) ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

zesgar

  • I post occasionally
  • **
  • Posts: 107
  • Karma: 2
  • CiviCRM version: 4.3.4
  • CMS version: Joomla 2.5
Re: Newsletter Module
June 16, 2011, 01:09:56 pm
Yes, our recipients are getting them put into their junk mail quite regularly.  It is a college university that has extreme spam rules set on their servers.  So we are having to revert to using an outside company like Vertical response that allows up to 10,000 free emails / month.
 Any ideas on integration?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Newsletter Module
June 17, 2011, 07:33:07 am
What you would want to do is have the user create an account on CiviCRM and then write code for your CMS to send that new information to VR using their API:

http://developers.verticalresponse.com/api/
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Newsletter Module

This forum was archived on 2017-11-26.