Hi folks,
Usually when you send emails to your users, the display name defaults as your From email address. Most often, you would like to set a custom display name to represent your organization or the context of the email. You can mask or customize the display name (From Address) using Deluge script as long as the From email address has been verified. This would be very useful to you if you want to send bulk emails to a large audience.
Let's say you have a Student Registration form for your dance academy. Assume your form has the following fields:
- Student Name (Single Line Field)
- Email Address (Email Field)
- Are you a new student? (Decision box field which is updated as true using On Success Script whenever a new student registers)
You can use the below-given function to send welcome emails(in bulk) to all the new students informing them about their classes.
Note: This below-given script would be supported only in the free-flow scripting mode.
Sample syntax : “Display-name <"+ zoho.adminuserid or zoho.loginuserid +”>".
- void sendemailtonewstudents()
- {
- for each rec in Student_Registration_Form[Are_you_a_new_student == true]
- {
- sendmail
- [
- from :"Welcome to Karen's Dance Academy <" + zoho.adminuserid + ">"
- to :rec.Email
- subject :"Karen's Academy Welcomes You."
- 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>"
- content type :HTML
- ]
- }
- }
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.