Zoho Deluge : How to send an Email

别来无恙 提交于 2021-01-29 12:41:21

问题


I am trying to send an email by using Zoho Custom Function.

My Code :

sendmail
    [
        from: "email@gmail.com"
        to: "email@gmail.com"
        subject: "Test Email"
        message: "This is mail Body"
    ]

Give this error :

In cases where From: address is not a zoho.adminuserid or zoho.loginuserid, the To: address can only be zoho.adminuserid and the sendmail task cannot have any CC: or BCC: address.


回答1:


If you are writing this code for Zoho Creator, It only allows the From Email Address to be zoho.adminuserid (Admin Email) or zoho.loginuserid (Logged-in User Email) system variables.

You can allow more "From" addresses by adding them as Verified Emails. Please refer to https://www.zoho.com/creator/help/forms/set-email-notifications.html#verified%20email%20address.

In the case you provided, you should consider adding "email@gmail.com" as a verified email address.




回答2:


Try This:

sendmail
[
    from: zoho.adminuserid
    to: "email@gmail.com"
    subject: "Test Email"
    message: "This is mail Body"
]

Note: You can not use both custom email address. One Should zoho system variable or both should be zoho system variable.



来源:https://stackoverflow.com/questions/52145113/zoho-deluge-how-to-send-an-email

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!