[Zope] problem with mailfrom

Tres Seaver tseaver@palladion.com
Wed, 05 Apr 2000 15:30:08 -0500


"Lorenzo Rondelli" <Lorenzo_Rondelli@gidi.it> wrote:
> 
> I'm trying to create a mailform but I always have this error :
> 
> Zope Error
> 
>          Zope has encountered an error while publishing this resource.
> 
>          Error Type: SMTP Error
>          Error Value: Recieved error code 503 from SMTP: 503 No recipients have
>          been specified.
> 
> I don't understand what is the recipient. Can someone help me ?
> thanks in advance
> 
> ......................This is the main ........................
> 
> <dtml-var standard_html_header>
> 
> <!--#var standard_html_header-->
>                      <H2>We want your input!</H2>
> 
>                      <form action="SendFeedback" method="post">
>                      Your Name: <input type="text" name="name" size="40">
>                      <br>
>                      <textarea name="comments" rows="10" cols="50">
>                      Inserisci la tua richiesta in questa finestra
>                      </textarea><br>
>                      <input type="submit" value="Send Feedback">
>                      </form>
>                      <!--#var standard_html_footer-->
> <dtml-var standard_html_footer>
> 
> ................... SendFeedback..........
> 
> <!--#var standard_html_header-->
> 
>            <!--#sendmail mailhost="MailHost"-->
>            To: Feedback Recipient gino@gate
>            From: Zope Feedback Form lorenzo.rondelli@gate
>            Subject: Feedback from the web
> 
>            Feedback from : <!--#var name-->
>            Comments:
>            <!--#var comments-->
>            <!--#/sendmail-->
> 
>            <h1>Thank you for your input!</h1>
>            <p>Your comments have been sent.</p>
> 
> <!--#var standard_html_footer-->
> 
> ...................my  MailHost is this .....................
> 
> Id: MailHost
> Local Host : linux (the name where zope running on)
> SMTP Host : gate
> SMTP Port : 25

SMTP requiers that headers start with no leating whitespace (leading whitespace
actully signals continutaion from the preceding line).

Move your To:, From, and Subject: headers to the left margin, then wrap the
actual email addresses in <> (or leave off the full names).

-- 
=========================================================
Tres Seaver  tseaver@digicool.com   tseaver@palladion.com