diff --git a/jsk_robot_common/jsk_robot_startup/scripts/smach_to_mail.py b/jsk_robot_common/jsk_robot_startup/scripts/smach_to_mail.py index c481c7243e8..8c8da7269f3 100755 --- a/jsk_robot_common/jsk_robot_startup/scripts/smach_to_mail.py +++ b/jsk_robot_common/jsk_robot_startup/scripts/smach_to_mail.py @@ -167,6 +167,8 @@ def _send_mail(self, subject, state_list): if subject: email_msg.subject = subject + elif rospy.has_param("/email_topic/mail_title"): + email_msg.subject = rospy.get_param("/email_topic/mail_title") else: email_msg.subject = 'Message from {}'.format(rospy.get_param('/robot/name', 'robot'))