技巧12:如何在从Zoho Creator发送电子邮件时自定义显示名称。

技巧12:如何在从Zoho Creator发送电子邮件时自定义显示名称。

原文链接:https://help.zoho.com/portal/en/community/topic/tip-12-how-can-you-customize-the-display-name-while-sending-emails-from-zoho-creator



嗨伙计,

通常,当您向用户发送电子邮件时,显示名称默认为您的“发件人”电子邮件地址。通常,您想设置一个自定义的显示名称来代表您的组织或电子邮件的上下文。只要已验证“发件人”电子邮件地址,就可以使用Deluge脚本屏蔽或自定义显示名称(“发件人地址”)。如果您要向大量受众发送批量电子邮件,这对您非常有用。 
 
假设您有舞蹈学院的学生登记表。假设您的表单具有以下字段:

  • 学生姓名(单行字段)
  • 电子邮件地址(电子邮件字段)
  • 你是一个新同学吗?(每当有新学生注册时,决策框字段就会使用“成功脚本”更新为true)


您可以使用下面提供的功能向所有新生发送欢迎电子邮件(批量发送),通知他们有关他们的课程。 

注意:仅在自由流脚本模式下才支持以下提供的脚本。

示例语法:“显示名称<“ + zoho.adminuserid或zoho.loginuserid +”>“。

  1. void sendemailtonewstudents()
  2. {
  3. for each rec in Student_Registration_Form[Are_you_a_new_student == true]
  4. {
  5. sendmail
  6. [
  7. from :"Welcome to Karen's Dance Academy <" + zoho.adminuserid + ">"
  8. to :rec.Email
  9. subject :"Karen's Academy Welcomes You."
  10. message :"Hello,<div style=\"\"></div><style>\nnp.p1 {\n margin: 0px 0px 0px 0px;\n font: 12px \"Helvetica Neue\";\n color: rgb(69, 69, 69)\n}\nnp.p2 {\n margin: 0px 0px 0px 0px;\n font: 12px \"Helvetica Neue\";\n color: rgb(69, 69, 69);\n min-height: 14px\n}\n</style><div><br /></div><div>Welcome to Karen's class!</div><div><br /></div><div>Happy to have you on-board. Click here to find out more about your classes.</div><div><br /></div><div>Regards,</div><div>Karen.</div>"
  11. content type :HTML
  12. ]
  13. }
  14. }

Here's how the display name would look in your welcome email:


 


If you have any doubts or queries regarding this tip, please feel free to add them as comments below. We would be happy to address them all.