0

I have to automate sending mail and check whether they have been delivered as expected. Inorder to do that i am using mailHog(similar to mailCatcher). I have installed them but i don't know how to make my application send mail to this service instead of normal email sending.

They say that you have to configure your SMTP port to 1025 instead of 25(default). Even after this i am not able to capture those sent mails. Do i need to change my outgoing server name or what else should i do??

This is my web.config file code:

<add key="SmtpServerPort" value="1025" />
<add key="SmtpEmailServer" value="BLRCSWEXV01.in.corp.xxxx.com" />

PS: I am using protractor to write E2E tests. And i dont want to use mailListener, because it slows my test drastically and even it is not able to capture the mails

radio_head
  • 1,306
  • 4
  • 13
  • 28

1 Answers1

0

Have you installed MailHog on BLRCSWEXV01.in.corp.xxxx.com or is it on an other machine? You need to point both, the server and the port to your MailHog instance.

Stephane Paquet
  • 2,315
  • 27
  • 31