PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > sending email+attachement with http protocol
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

sending email+attachement with http protocol

Réponse
 
LinkBack Outils de la discussion
Vieux 28/07/2005, 12h47   #1
ranjitkum@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut sending email+attachement with http protocol

hi to all,
how can we attach a file to email using http post method?

  Réponse avec citation
Vieux 29/07/2005, 14h49   #2
David Efflandt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sending email+attachement with http protocol

On 28 Jul 2005 03:47:38 -0700, ranjitkum@gmail.com <ranjitkum@gmail.com> wrote:
> hi to all,
> how can we attach a file to email using http post method?


Basically you would use file upload field(s) for the attachment(s) in a
multipart form, properly process it into a valid e-mail format with
attachment(s) on the server, and either handle the SMTP or hand it off to
something that does.

I have done that with a combination of Perl's CGI module to generate and
process the form, MIME::Lite module to formulate the mail with attachment,
then either Mail::Sendmail module or sendmail program. You can run into
snags if the web server either blocks certain ports or does not allow you
to send mail. The CGI module is included with Perl, but I had to install
MIME::Lite and Mail::Sendmail (if used) in my own directory.

You did not say what scripting or programming language you are using on
the web server, but looking at these Perl modules might at least give you
some hints.
  Réponse avec citation
Vieux 30/07/2005, 06h28   #3
ranjitkum@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sending email+attachement with http protocol

thks for u r responce;
i am trying to write http get and post methods using c-launguage;

i am explaning in detail my problem bellow:
suppose i want to access yahoo mail;
so i send request http:mail.yahoo.com to server through my proxy server
;
after that i am getting tht page and i sign-in and composed an email
and
i attached an file to my email;

problem:
when i am attaching a file to my email then it is keep on attaching
finally proxy server and client connections closed--why?;
plase answer this question;
David Efflandt wrote:
> On 28 Jul 2005 03:47:38 -0700, ranjitkum@gmail.com <ranjitkum@gmail.com> wrote:
> > hi to all,
> > how can we attach a file to email using http post method?

>
> Basically you would use file upload field(s) for the attachment(s) in a
> multipart form, properly process it into a valid e-mail format with
> attachment(s) on the server, and either handle the SMTP or hand it off to
> something that does.
>
> I have done that with a combination of Perl's CGI module to generate and
> process the form, MIME::Lite module to formulate the mail with attachment,
> then either Mail::Sendmail module or sendmail program. You can run into
> snags if the web server either blocks certain ports or does not allow you
> to send mail. The CGI module is included with Perl, but I had to install
> MIME::Lite and Mail::Sendmail (if used) in my own directory.
>
> You did not say what scripting or programming language you are using on
> the web server, but looking at these Perl modules might at least give you
> some hints.


  Réponse avec citation
Vieux 03/08/2005, 01h22   #4
David Efflandt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sending email+attachement with http protocol

On 29 Jul 2005 21:28:17 -0700, ranjitkum@gmail.com <ranjitkum@gmail.com> wrote:
> thks for u r responce;
> i am trying to write http get and post methods using c-launguage;
>
> i am explaning in detail my problem bellow:
> suppose i want to access yahoo mail;
> so i send request http:mail.yahoo.com to server through my proxy server
> ;
> after that i am getting tht page and i sign-in and composed an email
> and
> i attached an file to my email;
>
> problem:
> when i am attaching a file to my email then it is keep on attaching
> finally proxy server and client connections closed--why?;
> plase answer this question;


That is a bit more complicated. Your c program would need to interact
with the compose web page to properly upload the attachment, which then
returns to the compose page, which then is submitted to send the e-mail
with attachment.

It would probably be much easier if you had utilities or macros to
properly compose the e-mail with proper headers and encoded attachment,
and send that through an SMTP server.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h48.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 1,66958 seconds with 12 queries