- <cfif IsDefined('form.login')>
- <HTML>
- <HEAD>
- <TITLE>Tes mails</TITLE>
-
- </HEAD>
-
- <H2>Voici tes mails:</H2>
-
- <cfpop action="GETALL" name="pop" generateuniquefilenames="Yes" server="#form.serveur#" port="110" username="#form.login#" password="#form.password#">
-
- <cfloop query="pop">
- <html>
- <HEAD>
- <TITLE>Tes mails</TITLE>
-
- </HEAD>
- <body bgcolor="##CBDFF3" text="##000080">
- <table border="1" width="100%" height="478">
-
- <tr>
- <td width="1%" height="35">To:</td>
- <td width="67%" height="35">#HTMLEditFormat(TO)#</td>
- </tr>
- <tr>
- <td width="1%" height="40">From:</td>
- <td width="67%" height="40">#HTMLEditFormat(FROM)#</td>
- </tr>
- <tr>
- <td width="1%" height="36">Objet:</td>
- <td width="67%" height="36">#HTMLEditFormat(SUBJECT)#</td>
- </tr>
- <tr>
- <td width="1%" height="32">Date:</td>
- <td width="67%" height="32">#DATE#</td>
- </tr>
- <tr>
- <td width="1%" height="33">Cc:</td>
- <td width="67%" height="33">#HTMLEditFormat(CC)#</td>
- </tr>
- <tr>
- <td width="1%" height="34">Reply to:</td>
- <td width="67%" height="34">#HTMLEditFormat(REPLYTO)#</td>
- </tr>
- <tr>
- <td width="1%" height="196">Message:</td>
- <td width="67%" height="196">#BODY#</td>
- </tr>
- </body>
- </html>
-
-
-
-
-
-
-
-
- </CFloop>
- </table>
- </BODY>
- </HTML>
- <cfelse>
- <h1 align="center">Entrez les différentes informations</h1><br><br>
- <cfform action="mail.cfm" method="post">
- Votre serveur mail: <cfinput type="text" name="serveur" required="yes" message="Vous devez rentrer un serveur mail"><br><br>
- Votre login: <cfinput type="text" name="login" required="yes" message="Vous devez rentrer un login"><br><br>
- Votre password: <cfinput type="password" name="password" required="yes" message="Vous devez rentrer un mot de passe"><br><br><input type="submit" name="bonjour" value="Recuperer mes mails"></cfform></cfif>
-
-
<cfif IsDefined('form.login')>
<HTML>
<HEAD>
<TITLE>Tes mails</TITLE>
</HEAD>
<H2>Voici tes mails:</H2>
<cfpop action="GETALL" name="pop" generateuniquefilenames="Yes" server="#form.serveur#" port="110" username="#form.login#" password="#form.password#">
<cfloop query="pop">
<html>
<HEAD>
<TITLE>Tes mails</TITLE>
</HEAD>
<body bgcolor="##CBDFF3" text="##000080">
<table border="1" width="100%" height="478">
<tr>
<td width="1%" height="35">To:</td>
<td width="67%" height="35">#HTMLEditFormat(TO)#</td>
</tr>
<tr>
<td width="1%" height="40">From:</td>
<td width="67%" height="40">#HTMLEditFormat(FROM)#</td>
</tr>
<tr>
<td width="1%" height="36">Objet:</td>
<td width="67%" height="36">#HTMLEditFormat(SUBJECT)#</td>
</tr>
<tr>
<td width="1%" height="32">Date:</td>
<td width="67%" height="32">#DATE#</td>
</tr>
<tr>
<td width="1%" height="33">Cc:</td>
<td width="67%" height="33">#HTMLEditFormat(CC)#</td>
</tr>
<tr>
<td width="1%" height="34">Reply to:</td>
<td width="67%" height="34">#HTMLEditFormat(REPLYTO)#</td>
</tr>
<tr>
<td width="1%" height="196">Message:</td>
<td width="67%" height="196">#BODY#</td>
</tr>
</body>
</html>
</CFloop>
</table>
</BODY>
</HTML>
<cfelse>
<h1 align="center">Entrez les différentes informations</h1><br><br>
<cfform action="mail.cfm" method="post">
Votre serveur mail: <cfinput type="text" name="serveur" required="yes" message="Vous devez rentrer un serveur mail"><br><br>
Votre login: <cfinput type="text" name="login" required="yes" message="Vous devez rentrer un login"><br><br>
Votre password: <cfinput type="password" name="password" required="yes" message="Vous devez rentrer un mot de passe"><br><br><input type="submit" name="bonjour" value="Recuperer mes mails"></cfform></cfif>