提问人:Shyam Kumar 提问时间:8/14/2023 最后编辑:KonradShyam Kumar 更新时间:8/14/2023 访问量:40
电子邮件格式不共享
email format not coming in sharing
问:
我需要在共享链接中使用电子邮件共享一些数据,数据需要直接粘贴到电子邮件中,并且标题数据在angular ts文件中是动态的,
this.emailText = 'mailto:?subject= 🌟 点燃你对学习的热情!加入我们 ${this.event?.title}&body=准备好踏上前所未有的知识、灵感和成长之旅!我们很高兴向您发出特别邀请,参加我们即将到来的 ${this.event?。标题}。
Whether you're seeking to enhance your expertise, explore new passions, or simply enrich your academic journey, ${this.event?.title} has something extraordinary to offer you.\n
Date: ${this.event?.start_date}\n
Venue: ${this.event?.is_online?this.event?.online_event_details?.platform:this.event?.venue_name}\n\n
Mark your calendar and get ready to experience a dynamic blend of knowledge, networking, and excitement. Don't miss out on this golden opportunity to redefine your photography journey.\n
We can't wait to welcome you to ${this.event?.title} and witness your brilliance shine!\n
Joint at ${this.eventlUrl}/${this.event?.id}\n\n
Best regards,\n
${this.event?.institute}\n
[Your Title]
[Contact Information]`;
但是\n无法正常工作,我尝试了\n
标记和'',但不起作用,我正在使用Angualr
我期待 Fromat 中的数据在 gmail 正文中具有完整的格式。
答:
-1赞
iamrishan
8/14/2023
#1
我建议您尝试使用html标签<br>
或%0D%0A
修改代码后,代码可能如下所示:
Whether you're seeking to enhance your expertise, explore new passions, or simply enrich your academic journey, ${this.event?.title} has something extraordinary to offer you.%0D%0A
Date: ${this.event?.start_date}%0D%0A
Venue: ${this.event?.is_online?this.event?.online_event_details?.platform:this.event?.venue_name}%0D%0A%0D%0A
Mark your calendar and get ready to experience a dynamic blend of knowledge, networking, and excitement. Don't miss out on this golden opportunity to redefine your photography journey.%0D%0A
We can't wait to welcome you to ${this.event?.title} and witness your brilliance shine!%0D%0A
Joint at ${this.eventlUrl}/${this.event?.id}%0D%0A%0D%0A
Best regards,%0D%0A
${this.event?.institute}%0D%0A
[Your Title]
[Contact Information]`;
评论
<br>
而不是\n