in reply to Re: Problem parsing json
in thread Problem parsing json

i have tried to combine the original curl and the constructed format to post via perl

this is the original "from": {"address": "noreply@<DOMAIN>"}
when constructed. from => 'noreply@email.com'

the point should be how to write well constructed message to post

because the curl message is not valid as shown

"code":"GE_122","message":"Invalid value found","target":"from"}],"mes +sage":"Unprocessable Entity",

Replies are listed 'Best First'.
Re^3: Problem parsing json
by NERDVANA (Priest) on Apr 11, 2023 at 18:00 UTC
    If you go look at the API doc on https://www.zoho.com/zeptomail/help/api/email-sending.html (which was the first result from googling "zeptomail api") it says "From", "JSON Object", "Allowed value - A valid sender email address with "address" and "name" key-value pairs."

    So, try perl like:

    from => { address => "noreply@email.com", name => "No Reply" },