Subscribe/Unsubscribe

I am building a subscribe/unsubscribe app in PHP with
Dreamweaver CS3.
I am following step by step the article on
http://www.adobe.com/devnet/dreamweaver/articles/subscribing_unsubscribing_with_php.html
On page 4 of this article, I used the following code:
<?php
$id = $row_rsSubscriber['ID'];
$to = $row_rsSubscriber['SubEmail'];
$subject = "Subscription confirmation";
$body = "<html><body>" .
"<h2>Thank you for subscribing to our
newsletter!</h2>" .
"<p>To unsubscribe, click <a href=\"
http://[MY SERVER & PATH
HERE]/confirm_unsubscribe.php?ID=" .
$id . "\">here</a>.</p>" .
"</body></html>";
$headers = "From: Subscription Manager
<[email protected]>\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-type: text/html; charset=UTF-8";
if (!mail($to, $subject, $body, $headers)) {
header( 'Location:
http://[MY SERVER & PATH
HERE]/error_subscribe.php' ) ;
?>
When I test the application ( publishing the pages to m web
server, going to subscribe.php and entering my e-mail address ) , I
was taken to the error page:
http://[MY SERVER & PATH
HERE]/error_subscribe.php
I know that the e-mail function in the above code didn't work
properly (I have checked all other possibilities)
Please help ! How to debug !
Amanda Nguyen

Hi,
Go through these links it may help u
For a user (SharePoint object) to receive notifications when the underlying data has changed, the user must subscribe to the notifications for an entity. To allow this, the BDC Model schema has been extended to include the
Subscribe stereotype. The Subscribe stereotype is used by SharePoint to let the external system know that the sender is requesting to be notified of changes to the underlying data.
http://msdn.microsoft.com/en-us/library/office/jj164024%28v=office.15%29.aspx#bkmk_eventsubscriber
http://blogs.technet.com/b/wbaer/archive/2010/05/07/site-subscriptions-in-sharepoint-2010.aspx
Please mark the Answer and vote me if you think that above solution can help you to resolve the issue

Similar Messages

  • Subscribe Unsubscribe functionality in sharepoint?

    Hey dear developer I am looking for the sample that can describe the subscribe /unsubscribe functionality in SharePoint.
    i want to take user information and want to send a mail to authorized email and after unsubscribe notify the User and admin...

    Hi,
    Go through these links it may help u
    For a user (SharePoint object) to receive notifications when the underlying data has changed, the user must subscribe to the notifications for an entity. To allow this, the BDC Model schema has been extended to include the
    Subscribe stereotype. The Subscribe stereotype is used by SharePoint to let the external system know that the sender is requesting to be notified of changes to the underlying data.
    http://msdn.microsoft.com/en-us/library/office/jj164024%28v=office.15%29.aspx#bkmk_eventsubscriber
    http://blogs.technet.com/b/wbaer/archive/2010/05/07/site-subscriptions-in-sharepoint-2010.aspx
    Please mark the Answer and vote me if you think that above solution can help you to resolve the issue

  • Subscribe/unsubscribe PHP/Mysql Adobe Tutorial Issue

    I've been following the Adobe Dreamweaver CS3 tutorial known
    as "Building a subscribe/unsubscribe app in PHP with Dreamweaver
    CS3"
    here is the tutorial link
    http://www.adobe.com/devnet/dreamweaver/articles/subscribing_unsubscribing_with_php.html
    Basically I'm having a major problem that boils down to me
    creating the "Subscription" Submit form/ button within my actual
    template. Not the "main" section of the page... the template
    itself.
    Here's an example of a similar site like mine that has a
    subscribe box within its template.
    http://www.free-stuff.co.uk/
    When i type in an email address and try to send it. Rather
    than going to the confirmation page, the page goes know where, it
    just refreshes itself.
    My client wants the subscription form within the template and
    i am at a loss as to how to get my index page and other pages
    (which are attached to the template), to respond appropriately.
    PS: I know that the cause of the problem is the form being
    within the template, because when i put the subscribe form in the
    "main" section of my index page. It works fine.
    Thanks for your time, and if you think you have an answer,
    but are unsure of anything I've explained, I promise to get back to
    you ASAP, to explain in more detail.
    Thanks a lot.

    geschenk wrote:
    > did you download the "cafe_php.zip" sample file
    mentioned on page 1 ? The tutorial.sql file is in there, just
    checked it
    Uh... no. I thouht I looked there, but turns out I was at the
    bottom of
    pg 4 - Copy the sample PHP files.
    Thanks.
    Harvey

  • Basic database question, and subscribe/unsubscribe code

    Hi there
    Although I've created and manage a website, and about a million years ago I worked with databases, I'm still a bit green and in need of some help ...
    I have the website based on my local machine (laptop).  I want to use a subscribe/unsubscribe for a newsletter via the website.
    Before I go ahead with this, I need to clarify a very basic database issue ... would I have to always leave my laptop running in order for people to be able to subscribe to the newsletter on the website, i.e. will it still connect to the database if the laptop is not running?
    I'm using Dreamweaver 3, so I hope I can use this version to connect with a database?  I did install Dreamweaver 4 on one occasion with the intent of upgrading the website to it, but because I'm still a bit unsure of myself and was unfamiliar with the changes the newer version created, I decided to leave it on Dreamweaver 3 rather than risk stuffing the website up completely!
    I also have Dreamweaver UltraDev but for some reason it won't install.
    I'm hoping to follow instructions given on Dreamweaver Developer Centre for setting up a PHP development environment (http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html).
    If anyone would be so kind as to advise whether I'm on the right track with all this, using Dreamweaver 3, that'd be great!
    Also, I'm sure this is unlikely, but is there any way to include a subscribe-unsubscribe without having to actually use a database?
    Many thanks in advance    :-)
    Cheers, Chrissie

    Thanks for your help and advice - much appreciated.  I'm going to go the way
    of hosting, as you suggest, and save myself the heartache  
    Quoting jj12689 <[email protected]>:
    To answer your first question, yes your laptop needs to be powered on
    for users to be able to access the database and subscribe/unsubscribe.
    There is another way of doing it, but it requires more work on your
    part. You could make an online program that would generate SQL
    statements and place them in a text document on the server. Every time a
    user subscribes/unsubscribes it would add them to the end of the text
    document. Then you could make an update button on a back-end admin page
    that you would have to push that would take that text file, open it and
    take the sql statements and submit it to the database on your computer.
    I would advise against this method, since it is time consuming, and not
    very fast for today's world. I would recomend using a server based
    database, if the host you currently have dose not have a database, I
    would recomend finding another host. I use surpasshosting.com for my
    hosting because they are cheap, reliable, and have all the requirements
    I need.
     
    Hope this helps...
    >

  • Showing subscribed/unsubscribed podcasts in list view

    With past iTunes in List view I could quickly see to the right of the Podcast name, to what I am subscribed. Equally important I could note a desirable podcast that is currently unsubscribed.
    I do not see an easy way to do this with the current iTunes.
    Any suggestion or work around?

    Check if this helps
    http://stackoverflow.com/questions/20988935/sharepoint-list-data-format
    function (data)
    if (data.d != undefined)
    //Check if the list has data
    if (data.d.results.length > 0)
    //Iterate through each items fetched from the list
    $.each(data.d.results, function(index, item)
    var fieldVal= item.fieldName;
    Or use Data view webpart
    http://summit7systems.com/who-needs-a-data-view-web-part-sharepoint-rest-and-datatables-net/
    http://blogs.technet.com/b/fromthefield/archive/2013/09/05/working-with-sharepoint-list-data-odata-rest-and-javascript.aspx
    Here we are using a foreach loop; so for each object that is returned, we want to append the specific properties into HTML; into an existing element with the ID of 'oDataSuppliers'. The HTML that we want to render will basically look like this:
    <ul>
        <li>
            <h1> item.Title </h1>
            <h2> item.Region </h2>
        </li>
    </ul>

  • Capturing flex client's subscribe, unsubscribe event on server.

    Hi
    In my app, I have Flex client Consumer subscribed to BlazeDS server. Server allocates some resources when client subscribes. Server needs to free up resources when client Consumer unsubscribes. I am not able to figure out the way to hookup in those events. Please tell me if there is any listener (or any other mechanism) available on server side.

    Hi Jitendra,
    Take a look at the code example for the MyBlazeDSListener in this thread on the forums.
    http://www.adobeforums.com/webx/.3c064925/4
    A MessageClient is created when a Flex client Consumer subscribes to a destination on the server and is destroyed when the Consumer unsubscribes, so to tell when the client subscribes and unsubscribes you can use a MessageClientListener.
    Hope that helps.
    -Alex

  • Bulk Subscribe/Unsubscribe a Service to devices/device profiles

    Hi,
    I want to subscribe a xml service to 1000 devices and device profiles.
    I know how to do it one by one to a device or to a device profile.
    Is there any way to perform the task by any bulk type of action so as that I can do it to all the devices /device profiles at a sinle go.
    Thanks
    Pranjol

    For devices, I believe bulk admin allows you to do that.
    For device profiles, I'm afraid you're going to have to write your own application.
    First you extract the UDP name of all the UDPs you want to update, then you do a getDeviceProfile for each, check if the services already contains the one you want to add, if not, add it, then perform an updateDeviceProfile and repeat.

  • Subscribing/unsubscribing call is blocking (lock?)

    Hi,
    we have a client using AQ to dequque messages, currently implemented in both OCI and OCCI. With OCI everything allways works, but with OCCI we have some problems.
    For registering a subscriber, we use a stored procedure. The code for executing that is like this:
    stmt = conn->createStatement();
    stmt->setSQL(sql);
    stmt->executeUpdate();
    conn->commit();
    conn->terminateStatement(stmt);
    We also have code for registering the callback:
    sub = new Subscription(env);
    sub->setSubscriptionNamespace(oracle::occi::aq::Subscription::NS_AQ);
    sub->setProtocol(oracle::occi::aq::Subscription::PROTO_CBK);
    sub->setCallbackContext((void *)this);
    sub->setSubscriptionName(queue_name + ":" + config["subscribername"]);
    sub->setPresentation(oracle::occi::aq::Subscription::PRES_DEFAULT);
    sub->setNotifyCallback(&messagequeueclient_occi::event_message);
    subs.push_back(*sub);
    conn->registerSubscriptions(subs);
    This works most of the time, but it seems that on some computers/some times, either the registerSubscriptions or the execution of the stored procedure freezes/blocks. When I then try to call the same stored procedure in e.g. sqlplus, it also blocks. This makes me think I have somehow managed to put a lock on the queue/subscriber?
    Any suggestions on how to debug this would be appreciated. The OCI implementation executes the stored procedure in the same way, and never seems to block. I am temped to think that "Oracle is broken", but I'm pretty sure thats not the case...
    Regards,
    Sverre

    Hi,
    do the clients have the same subcription name?
    In the documentation see this link:
    http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10785/jm_create.htm#i1005628
    EDIT (Sorry i assumed that you use JMS ;-(
    Can you tell me, what is the statement which shows up in the dbconsole in the top activity when the (dead)lock appears? (I hope you use 10g)
    Message was edited by:
    HEWizard

  • Look up to check contact global unsubscribe status?

    Hi,
    Is it possible to look up global subscribe/unsubscribe status in E10?
    Thanks,
    Adamv

    Hi Adam,
    We have a post that demonstrates How to Search for Contacts using the API. The "IsSubscribed" property on the Contact record contains the information you're looking for.
    Hope this helps.
    Thanks,
    Fred

  • OBIEE 11g: Subscribe to Agents through Dashboard page?

    Hi all,
    I have created a set of agents which would deliver personalized content to subscribing users based on their OBIEE username. The agents work great, however I am stuck at finding a simpler way to allow various users to subscribe to said agents.
    The standard subscription method is cumbersome: Go to Catalog, browse to where agents are, Click More, select Subscribe. I don't want my users wandering around through a pretty thick catalog only to subscribe to an agent. Chances are they'll wander off, mess up, fail to subscribe or not even bother to try in the first place. What I would rather do is have them go to a dashboard and click on something to subscribe directly, without caring where the agents are located.
    A dodgy workaround I have implemented is to put up a link to an URL which is the catalog location of the agents. Users would click on that link and they will see the list of agents, allowing them to subscribe/unsubscribe. Still, I would like to simplify this further, if possible. Any ideas?

    Hi All,
    I am trying to display ‘help’ section on every dashboard or Create a separate Help Dashboard Page …
    Tried using "Link or Image" object option and Uploaded the pdf’s to Help file *(/Shared Folders/Help)* – Let say the PDF Name is Employee_Expenses.pdf
    So I am using the URL for link object as
    URL= saw.dll?downloadFile&path=%2Fshared%2FHelp%2FEmployee_Expenses.pdf
    Image = fmap:Images/help.gif (Do I need to have help.gif in /Shared Folders/Help folder Cause I don’t have it…)
    It’s not working – Any Ideas….
    Thanks,
    Syed
    Edited by: 963239 on Dec 12, 2012 11:35 AM

  • De-subscribing/subscribing to IMAP shared folders

    Hi!
    In Mail.app I haven't found a way to select/deselect which of the IMAP shared folders (on a Cyrus IMAP server) I want to subscribe to.
    And the main problem with this is that it insists on subscribing to log folders with thousands of unread messages showing up all the time, and then it always tries to cache all this on my laptop ... (I know I can prevent it from caching email, but that's a poor solution, as I am then no longer able to work offline ...)
    I found a posting on Maxosxhints dated 2005, stating that this functionality (being able to subscribe/unsubscribe to shared IMAP folders) should be available in Mail.app shortly ... But I guess it still isn't?
    flips 8)

    As far as I know, you simply control click on the account that you wish to manage subscriptions for.
    Then:
    1) Select "Get Account Info"
    2) Click on Subscription List.
    3) Deselect/select public/shared folders.
    I hope this helps!
    Cheers,
    Rodney

  • Can't Log in with regular user & pass

    I am trying to get a question answered. I was always able to access this forum with my usual username and password. Now the forums won't allow me to log in; instead they require that I re-register as a new user under my .Mac address. Though I have done that, I don't understand why they are putting me through all this fuss. I am unable to use my usual alias...duh! because I am already registered under that alias! But I'm not allowed to log in under it. When I click the login link I get a register as new user page with my address already set to my .Mac address. Can anyone explain this?

    Greetings,
    sorry to report same problem here, despite being very familiar with registering & use of web forums
    and other sites requiring user sign up... in fact, this type of snafu has never happened to me over
    years of use across dozens/hundreds of sites. Site Admins--Any clues or info based on some recent change of this forums config??
    10.27.07: initially registered new account & alias (MeanPony) for use in the discussion forums;
    can't access that account or retrieve password;
    11.02.07: have now got 2nd new account with 2nd alias (switt44) apparently linked to the same email??
    don't need two accounts & two aliases, even-though that is now the case!
    Please, help me sort this out, so I can access the original account with the MeanPony alias.
    very hesitant to publicly post email, so admin please contact me via the currently registered email,
    to update MeanPony account and/or delete this switt44 account, because i don't need it or plan to use a new .mac email address. I'd actually like this whole post deleted, once this issue is solved if possible!
    kind regards,
    current alias: switt44 (needed to make this post)
    previous alias: MeanPony (would like to access/update profile, subscribe/unsubscribe to previous posts etc.)

  • BluStreak 2, is it useful for Encore users?

    Pressing 'Reply' sends your message to the entire DVDList. To reply to the author only, you must enter their address manually.
    Rivergate Software is pleased to announce the beta release of BluStreak
    Premaster 2, soon to be followed by the formal release. The release is
    accompanied by a complete on-line user manual:
    http://www.rivergatesoftware.com/
    (Click the documentation link at the top).
    BluStreak Premaster 2 will sell for $595. It provides complete integrated
    playback, tracing, editing, and premaster output functionality.
    BluStreak Tracer 2 will sell for $395. It provides all of the functions or
    Premaster 2, except for BDCMF output.
    There will be an upgrade path to BluStreak Premaster 2 for current BluStreak
    Premaster 1.x owners. There will also be an upgrade path from BluStreak Tracer
    2 to BluStream Premaster 2.
    There will be no discount for DVDAfterEdit owners.
    BluStreak Tracer 1.0 was never released because of playback SDK licensing
    issues. It has been in use internally for over a year.
    BluStreak 2 uses libraries from the FFmpeg project under the LGPLv2.1 for
    video and audio playback. See the documentation for codecs supported.
    BluStreak 2 supports full Premastering functionality for projects containing
    BD-J, but does not support playback or editing of the BD-J content.
    BluStreak 2 does not support 3D premastering or playback.
    There will be a limited beta test period. Use the contact form at the top of
    our web site, or a private email if you wish to take part in the beta testing.
    Beta testers who wish to purchase the released application will be expected to
    pay full price.
    Regards,
    Larry Applegate & Robin Henson
    Owners of Rivergate Software, Inc.
    This message is from the [email protected]
    Contents Copyright (C) 2010 by Geoffrey Tully and the email originator.
    List archive and subscribe/unsubscribe information is at http://www.tully.com/DVDList

    It is not possible.
    http://social.technet.microsoft.com/Forums/lync/en-US/85eb2da6-1795-466f-9b18-f994ca540339/how-to-show-lync-presence-in-sharepoint-2010-sites?forum=ocsclients
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • AppleScript for marking messages read in specific mailboxes

    Hello
    I'd like to ask whether there is someone out there with a good AppleScript knowledge who could help me out with this problem.
    As far as I know, Mail currently does not support subscribing / unsubscribing to IMAP folders, which is why my "spam" folders are also being used to show the total number of unread messages in my mailboxes.
    My idea is to use a script to mark all messages from specific mailboxes (namely "INBOX/spam" on all accounts) as read, as soon as they are received. All the spam mails are filtered by my provider and put into the "spam" mailbox with a subject containing "*SPAM*" automatically.
    Anybody an idea?
    Regards
    Peter.
    Message was edited by: peschehimself

    Try this:
    tell application "Mail"
    repeat with each_account in accounts
    tell each_account
    repeat with each_mailbox in mailboxes
    if name of each_mailbox contains "spam" then
    set (read status of messages of each_mailbox whose subject contains "*SPAM*") to true
    end if
    end repeat
    end tell
    end repeat
    end tell
    But if you have a lot of '*SPAM*' messages in those folders it will still have to evaluate all of them and may be slow as a result.
    H

  • Add user to multiple mailman lists at once

    I have multiple mailman lists at my organization that employees need to be added to (when hired) or removed from (when terminated). Is there a terminal command or some other way to add and/or remove one or more addresses to multiple Mailman list at one time? This would really helpful!
    Thanks,
    Ben

    I am already familiar with the mass subscribe/unsubscribe admin page for an individual list. That is what I use currently. My question was is there something similar to do that will apply to multiple lists at once? So that I do not have to visit 6 unsubscribe pages, login/logout each time just to remove a single address from those lists when they no longer work for us?

Maybe you are looking for

  • Change standard view: remove event time

    In iCal, a lot of visual space is wasted listing the time of an event. Fortunately, the time is unlisted in some cases (e.g., a half hour event in 'week' view), but for 1 hour events or more, the view of the event description is occluded by the start

  • Problem in BDC for VA31

    Hi Experts , I am creating BDC for VA31 transaction. If there are multiple line items then i have to select first line item and then go to forcast delivery schedule button . I have to do this procedure for every line item. Is there any way or functio

  • Where can I get an older version of Mainstage?

    I am a worship leader and would like to use Mainstage to run loops and backing tracks during a live setting. My MacBook is a 2006 A1811 with a core 2 duo processor, running 10.6.8 . It can not download Mainstage 3, where can I get an older version? P

  • Posting Back

    I am new to java and in the past I have used asp.net with c#. I have previously used the postback method, anyways I have a page where when you first look at it you can see all these radio button options for all states, then there is a scroll box with

  • Apple tv updating problem.

    when i was updating my apple tv the power were cut off now the device is not displaying anything also the white light at its front is flashing. can anyone help me ?