Sending mail from .NET ap...
Sending mail from .NET application
- Casa
- Pannello di controllo
- Forum della Comunità
- Services
- Email Service
- Sending mail from .NET application
- Forum della Comunità
- Sending mail from .NET application
Argomento: Sending mail from .NET application
I am trying to send emails via Dynu SMTP Relay from a .NET application.See below for the code I am using for sending mail.MailMessage message = new MailMessage(SENDER_ADDRESS, gsEmailAddress);message.Body = "text";message.Subject = "subject";SmtpClient smtp = new SmtpClient("relay.dynu.com");smtp.Credentials = new System.Net.NetworkCredential(SMTP_username, SMTP_password);try { smtp.Send(message);} catch (Exception ex) {}When I execute the code, I receive the error message “SMTP authentication is required”.Is there anything I am missing? Is it not possible to use SMTP Outbound Relay from our own application?
Rispondi con citazione | Segnalare
patsitsolutions wrote:Shouldn't smtp.dynu.com be used instead?
Rispondi con citazione | Segnalare
Autore | Argomento: Sending mail from .NET application |
---|---|
Greenwave Iscritto: 05/10/2022 |
Sending mail from .NET application venerdì 7 ottobre 2022 01:28
I am trying to send emails via Dynu SMTP Relay from a .NET application.See below for the code I am using for sending mail.MailMessage message = new MailMessage(SENDER_ADDRESS, gsEmailAddress);message.Body = "text";message.Subject = "subject";SmtpClient smtp = new SmtpClient("relay.dynu.com");smtp.Credentials = new System.Net.NetworkCredential(SMTP_username, SMTP_password);try { smtp.Send(message);} catch (Exception ex) {}When I execute the code, I receive the error message “SMTP authentication is required”.Is there anything I am missing? Is it not possible to use SMTP Outbound Relay from our own application?
|
patsitsolutions Iscritto: 11/01/2018 |
Sending mail from .NET application venerdì 7 ottobre 2022 12:20
Shouldn't smtp.dynu.com be used instead?
|
Greenwave Iscritto: 05/10/2022 |
Sending mail from .NET application sabato 8 ottobre 2022 00:08
|
Al momento è venerdì 22 novembre 2024 07:34 US Mountain Standard Time
venerdì 22 novembre 2024 07:34