Problem with smtp_client-1.1
Tue Jul 4 13:07:55 CEST 2006
Bengt Kleberg <bengt.kleberg@REDACTED> wrote:
>On 2006-07-01 05:17, Roberto Saccon wrote:
>> I try to use smtp_client (inside yaws, but also standalone) to send
>> e-mails, but I get an error when the SMTP-FiniteStateMachine starts to
>> send the message:
>> mfrom_error "501 Bad address syntax\r\n"
>> the from-address in this case is: rsaccon@REDACTED , and I don't
>sorry, but i have been unable to reproduce this error.
>moreover, from reading the code
>(yaws-1.63/applications/mail/src/smtp.erl) i can not find how that error
Presumably the error comes from the SMTP server - e.g. the SMTP protocol
spec requires that the addresses given as arguments to "MAIL From:" and
"RCPT To:" are enclosed in < > brackets. Many/most MTAs aren't picky
about that, but some may be - in particular these days some people find
that strict enforcement of standards may block messages from badly
written spamware with little or no "collateral damage". It might be a
good idea to have smtp.erl add the brackets (if they aren't there
already) - or make sure that it always talks to a local SMTP server that
still follows the old "be liberal in what you accept" adage.
More information about the erlang-questions