2016-10-19 1 views
7

Définissez set-net avec les valeurs appropriées, mais obtenez ce message lorsque vous essayez d'envoyer un e-mail en utilisant esmtp.r de rebol.org. Des idées sur ce que cela signifie?Rebol 2 esmtp ne peut pas décoder le paramètre AUTH

+0

Ce poste suggère d'utiliser le haut-esmtp dans Rebol2: http://stackoverflow.com/questions/1320021/rebol-esmtp-failure – Respectech

Répondre

3

OK. J'ai essayé et réussi à envoyer un message en utilisant la fonction d'envoi intégrée de Rebol2. Voici une transcription de ma séance:

>> help set-net 
USAGE: 
    SET-NET settings 

DESCRIPTION: 
    Network setup. All values after default are optional. Words OK for server names. 
    SET-NET is a function value. 

ARGUMENTS: 
    settings -- [email-addr default-server pop-server proxy-server proxy-port-id proxy-type esmtp-user 
esmtp-pass] (Type: block) 
>> set-net [[email protected] "mail.sonic.net" "mail.sonic.net" none none none "blechnow" "<removed my password>"] 
>> help esend 
Found these words: 
    resend   function! Relay a message 

>> help send 
USAGE: 
    SEND address message /only /header header-obj /attach files /subject subj /show 

DESCRIPTION: 
    Send a message to an address (or block of addresses) 
    SEND is a function value. 

ARGUMENTS: 
    address -- An address or block of addresses (Type: email block) 
    message -- Text of message. First line is subject. (Type: any) 

REFINEMENTS: 
    /only -- Send only one message to multiple addresses 
    /header -- Supply your own custom header 
     header-obj -- The header to use (Type: object) 
    /attach -- Attach file, files, or [.. [filename data]] 
     files -- The files to attach to the message (Type: file block) 
    /subject -- Set the subject of the message 
     subj -- The subject line (Type: any) 
    /show -- Show all recipients in the TO field 
>> trace/net on ;This turns on tracing so you can see what is going on at the network level 
>> send [email protected] {Test} 
Net-log: ["Opening" "tcp" "for" "esmtp"] 
connecting to: mail.sonic.net 
Net-log: [none "220"] 
Net-log: "220 mail.sonic.net ESMTP [c]" 
Net-log: [["EHLO" system/network/host] "250"] 
Net-log: {250-c.mail.sonic.net Hello exchange.domain.local [50.255.255.211] (may be forged), pleased to meet you} 
Net-log: "250-ENHANCEDSTATUSCODES" 
Net-log: "250-PIPELINING" 
Net-log: "250-8BITMIME" 
Net-log: "250-SIZE 35882577" 
Net-log: "250-DSN" 
Net-log: "250-ETRN" 
Net-log: "250-AUTH PLAIN LOGIN" 
Net-log: "250-STARTTLS" 
Net-log: "250-DELIVERBY" 
Net-log: "250 HELP" 
Net-log: ["Supported auth methods:" [plain login]] 
Net-log: ["WARNING! Using AUTH LOGIN."] 
Net-log: [ 
    "AUTH LOGIN" "334" 
] 
Net-log: "334 VX******c=" 
Net-log: ["Ym******U6" "334"] 
Net-log: "334 UG******==" 
Net-log: ["Mz******Q6" "235"] 
Net-log: "235 2.0.0 OK Authenticated" 
Net-log: ["MAIL FROM: <[email protected]>" "250"] 
Net-log: "250 2.1.0 <[email protected]>... Sender ok" 
Net-log: ["RCPT TO: <[email protected]>" "250"] 
Net-log: "250 2.1.5 <[email protected]>... Recipient ok" 
Net-log: ["DATA" "354"] 
Net-log: {354 Enter mail, end with "." on a line by itself} 
Net-log: [none "250"] 
Net-log: {250 2.0.0 u9******49 Message accepted for delivery} 
Net-log: ["QUIT" "221"] 
Net-log: "221 2.0.0 c.mail.sonic.net closing connection"