Reputation: 1
I want vivado to automatically send an email to my mailbox after the synthesis is finished. In the W10 environment, there are related tcl statements in the xilinx manual, but they can only be used on the remote side Locally, I tried the following codes, but there are some errors. I wonder if anyone has succeeded?
package require smtp
set smtp_server "smtp.example.com"
set smtp_port 587
set smtp_user "[email protected]"
set smtp_password "password"
set subject "Vivado ok"
set message "Vivado ok"
set to "[email protected]"
smtp::sendmessage $smtp_server $smtp_port
-username $smtp_user -password $smtp_password
-headers [list Subject $subject To $to]
-body $message
Vivado says:Each option must have a value! Invalid option list: 587
(I use outlook email, its smtp port is 587)
Can someone tell me where the tcl code is wrong or other ways to realize the function of automatically sending emails at the end of vivado synthesis?
Upvotes: 0
Views: 115
Reputation: 93
Do you have several lines for the smtp::sendmessage call?
Does putting it in one line:
smtp::sendmessage $smtp_server $smtp_port -username $smtp_user -password $smtp_password -headers [list Subject $subject To $to] -body $message
or using newline substitution at line end:
smtp::sendmessage $smtp_server $smtp_port \
-username $smtp_user -password $smtp_password \
-headers [list Subject $subject To $to] \
-body $message
help?
Upvotes: 0