send email sample

send email sample

  
Hi,

I downloaded the sample of the send email.

When i fill the fields i send the email and i get this error msg:

No such host is known at System.Net.Dns.GetAddrInfo(String name)
at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
at System.Net.Sockets.TcpClient.Connect(String hostname, Int32 port)
at OutSystems.NssRichMail.SMTPMail.SendMail()

Any ideia why this is happening?

Thank you,

Ricardo
Hi Ricardo,

1 - Do you have access to that SMTP server from the machine where OutSystems Service Center is installed? Is there any firewall preventing this connection?

2 - Also some SMTP servers require authentication, in that case you might need to change the eSpace to also use RichMails's RichMailAuthenticate action before sending. Beside your credentials you'll also need to specify the authentication kind which should be either "PLAIN" or "LOGIN".

Cheers,
Tiago Simões