-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
closing-soonThis issue will automatically close in 4 days unless further comments are made.This issue will automatically close in 4 days unless further comments are made.
Description
Hi
Not sure if this is the write forum for this
I'm trying to insert a HREF reference into an email and sending it through ses send-main.
Variable
message="Hi\,<br /> \
You are recieving this email because you AWS Access is $keyIsDaysOld.<br /> \
Our policy request that keys rotated every 90 days.<br /> \
<b>Your key has been DEACTIVATED.</b> <br /> \
<br /> \
Instruction to rotate your keys are <a href=\"https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html\">here</a><br />";
Command
aws ses send-email --from jenkins@******.com \
--destination "ToAddresses=****@t****.com" \
--message "Subject={Data=from ses,Charset=UTF-8},\
Body={Text={Data=,Charset=UTF-8},Html={Data=${message},Charset=UTF-8}}" \
--region us-east-1
Output
Error parsing parameter '--message': Expected: ',', received: '"' for input:
Subject={Data=from ses,Charset=UTF-8}, Body={Text={Data=,Charset=UTF-8},Html={Data=Hi\,<br /> You are recieving this email because you AWS Access is .<br /> Our policy request that keys rotated every 90 days.<br /> <b>Your key has been DEACTIVATED.</b> <br /> <br /> Instruction to rotate your keys are <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html">here</a><br />,Charset=UTF-8}}
^
I've tried many combination of \ ""\ but to no avail!
Any idea what I'm doing wrong?
I'm trying to avoid using a json file for the message component
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
closing-soonThis issue will automatically close in 4 days unless further comments are made.This issue will automatically close in 4 days unless further comments are made.