Email from CGI

Discussion in 'HTML' started by Glen Watkins, Dec 10, 2004.

  1. Glen Watkins

    Glen Watkins Guest

    The following doesn't work (of course)

    <A HREF='mailto:p?body=the content of the text file
    in the cgi folder>click here to send this to the group</A>

    It pretty much says what i am trying to do. I am assuming that what I am
    trying to do can be done, I can't find any solutions to this, as i do try to
    solve my problems myself, I have hit a wall, I'm at a loss..

    I can make the contents appear in a browser window by doing the following...
    http://www2.mypage.com/cgi-bin/publish/webevent.cgi?cmd=showevent&ncmd=listd
    ay&cal=cal1&id=48209etc.

    What I need to do is email that same content by simply clicking a
    link/button.

    The content is read and if approved prior to sending.

    Any masterminds out there who can help me, please.

    Thanks in advance

    Michael
     
    Glen Watkins, Dec 10, 2004
    #1
    1. Advertisements

  2. Glen Watkins

    Sean Guest

    "Glen Watkins" <> wrote in message
    news:5Akud.30989$...
    > The following doesn't work (of course)
    >
    > <A HREF='mailto:p?body=the content of the text file
    > in the cgi folder>click here to send this to the group</A>
    >
    > It pretty much says what i am trying to do. I am assuming that what I am
    > trying to do can be done, I can't find any solutions to this, as i do try
    > to
    > solve my problems myself, I have hit a wall, I'm at a loss..
    >
    > I can make the contents appear in a browser window by doing the
    > following...
    > http://www2.mypage.com/cgi-bin/publish/webevent.cgi?cmd=showevent&ncmd=listd
    > ay&cal=cal1&id=48209etc.
    >


    What language is webevent.cgi in?

    If you can have the link from the page with the content then this can be
    pretty easily done.

    If not...
    You are going to need another cgi program. One that opens the text file and
    prints
    it in a body header of an email. There are several ways to do this. What
    programming
    languages does your system have installed? PERL or Python would be my first
    two
    choices.

    > What I need to do is email that same content by simply clicking a
    > link/button.
    >
    > The content is read and if approved prior to sending.
    >
    > Any masterminds out there who can help me, please.
    >
    > Thanks in advance
    >
    > Michael
    >
    >
     
    Sean, Dec 10, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shailan
    Replies:
    2
    Views:
    1,444
    Shailan
    Dec 15, 2003
  2. John Smith
    Replies:
    0
    Views:
    3,428
    John Smith
    May 15, 2006
  3. LarsenMTL
    Replies:
    4
    Views:
    1,125
    Eric Walstad
    Nov 4, 2004
  4. praba kar

    Python-cgi or Perl-cgi script doubt

    praba kar, Jul 30, 2005, in forum: Python
    Replies:
    1
    Views:
    1,120
    Michael Sparks
    Jul 30, 2005
  5. Amir  Michail

    cgi relay for python cgi script

    Amir Michail, Oct 4, 2005, in forum: Python
    Replies:
    7
    Views:
    774
    Michael Ekstrand
    Oct 4, 2005
  6. Alfred Z. Newmane

    Re: [OT] Re: "use CGI " hangs "CGI time out "

    Alfred Z. Newmane, Jun 23, 2005, in forum: C Programming
    Replies:
    13
    Views:
    863
    Stan R.
    Jun 24, 2005
  7. epsilon
    Replies:
    4
    Views:
    496
    Gabriel Genellina
    Aug 22, 2007
  8. rodmc

    Running CGI from within CGI

    rodmc, Feb 14, 2008, in forum: Python
    Replies:
    3
    Views:
    570
    Bruno Desthuilliers
    Feb 14, 2008
Loading...