创建一个可以在电子邮件中自动回复的脚本，该脚本发送自定义消息并将收件人的姓名插入该消息中。
Dear <Recipient's Name>,
Thank you for your email. I am currently out of office until <return date> and will respond to your email upon my return. If you need immediate assistance, please contact <emergency contact name and email>. Best regards,
<Your Name>
以下是可以在电子邮件中自动回复的脚本（Python）：

```
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText

def send_auto_reply(recipient_name, return_date, emergency_contact_name, emergency_contact_email):
  # Create message template
  message_template = f"Dear {recipient_name},
Thank you for your email. I am currently out of office until {return_date} and will respond to your email upon my return. If you need immediate assistance, please contact {emergency_contact_name} ({emergency_contact_email}).

Best regards,
<Your Name>"

  # Set up email sender
  sender_email = "<your email address>"
  sender_password = "<your email password>"

  # Set up email message
  message = MIMEMultipart()
  message["From"] = sender_email
  message["To"] = "<recipient email address>"
  message["Subject"] = "<auto-reply subject>"
  message.attach(MIMEText(message_template, "plain"))

  # Send email
  with smtplib.SMTP("smtp.gmail.com", 587) as smtp:
    smtp.starttls()
    smtp.login(sender_email, sender_password)
    smtp.sendmail(sender_email, "<recipient email address>", message.as_string())

# Call function with recipient's name, return date, emergency contact name, and emergency contact email
send_auto_reply("<Recipient's Name>", "<return date>", "<emergency contact name>", "<emergency contact email>")
```

您需要使用自己的电子邮件地址和密码替换 `sender_email` 和 `sender_password`。如果您正在使用 Gmail，则需要启用“低安全性应用程序访问权限”才能使用此脚本。