Link to home
Start Free TrialLog in
Avatar of eeamodei
eeamodei

asked on

Powershell Set Reply message for user

Hello and thanks in advance!

I am looking for the syntax on how to send an email from a powershell script, but in addition to setting the reply-to address, set a preset reply message when the user clicks on a link.

Im guessing the best way to do this would be to format the message in html with the mailto:xxxx@domain.com, however Im not sure how to do that withing the PS script.

Anyone have any ideas?

Thanks!!
ASKER CERTIFIED SOLUTION
Avatar of Chuck Cobern
Chuck Cobern
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of eeamodei
eeamodei

ASKER

hey techpointe,

Thanks for the response. I have that much already and I sending an email and setting the reply-to address is no issue. What im trying to accomplish now is when I user gets that email message, have a hyperlink inside that when the click on it will setup and send a prefabricated message to our helpdesk.

Im trying to automate the reply action.

So that when they click on this link ("Click here to cancel this service"

That upon clicking that link, it will trigger the default email client (Outlook in most cases) to set the reply to address to our helpdesk, set the subject line to whatever I want, and preset the message body for the return message from the user to the help desk.

Thanks again!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of slidingfox
slidingfox
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry, ignore all the:

$txt = Get-Content 'C:\Content.txt'
$body = [string]::Join("`r`n",$txt)

Open in new window

at the top. thats just rubbish from the script I opened to do my testing. thats only really required for Plain text.
hey slidingfox,

I have this format already for sending a message. I am looking to setup a preset message for the user when they click reply though. Akulsh above mentioned this might not be possible due to different types of email clients.

After reading you comment, I was wondering if there was a way to attach the preset message via .txt file to the original message, then when they reply have it use the information in the txt file.

Just a thought, thanks again to all