Tk Library Source Code

View Ticket
Login
Ticket UUID: 3151099
Title: fail to send when addr is like [email protected]
Type: Bug Version: None
Submitter: sickpig Created on: 2011-01-04 11:29:46
Subsystem: mime Assigned To: mrose
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2013-07-04 17:25:31
Resolution: Not Applicable Here Closed By:
    Closed on:
Description:
smtp::sendmail fails to send email that
looks like [email protected].

As far as I know having an email address with a dot (".") as the 
last char before @ should be RFC compliant. 

I checked email address using this regexp:

regexp {^[a-z0-9\.\-\_]+\@[a-z0-9]([a-z0-9\-\_]+\.)+[a-z0-9\-\_]+$} $mail

I'm using tcllib 1.12 (ubuntu 10.10).

This  the actual error message: 

Sending to [email protected]: prova.pdf
error in To: expecting colon to terminate route (found end-of-input)
    while executing
"error "error in $who: $aprops(error)""
    (procedure "smtp::sendmessage" line 260)
    invoked from within
"smtp::sendmessage $multiT -servers yoursmtpserver.com -header [list From "[email protected]"]  -header [list To $rcpt]  -header [list Subject "this is the subject..."
    ("foreach" body line 13)
    invoked from within
"foreach rcpt $recipients {

       set this_image $file
       # create an image and text
       set imageT [mime::initialize -canonical \
           ..."