Web.config SMTP Settings

Hi I wants to replace SMTP configuration while deployment.

<system.net>
		<mailSettings>
			<smtp from="test@test.com">
				<network enableSsl="false" host="11.11.11.11" port="25" userName="test@test.com" password="test@123" />
			</smtp>
		</mailSettings>
	</system.net>

I wants to replace value of email id, host, port, userName and password. How this can be done?
Please help me.

Regards,
Shyam

Hi Shyam,

Thanks for reaching out. There’s a couple of ways to do this in Octopus:

Best regards,
Dalmiro

Hi Dairo,

Thank you for support.
I have created a powershell script which replaces value of web config using variables.

Regards,
Shyam