[Mono-list] send a mail using mono
Christian López Espínola
penyaskito at gmail.com
Tue Sep 9 21:03:23 EDT 2008
Hi Rolando,
On Tue, Sep 9, 2008 at 6:19 AM, Rolando Martinez
<rolandomartinezg at gmail.com> wrote:
> Hi,
> I would like what is way to send a mail. Currently I got the "time out"
> error message using this code:
> public static string sendMail ( string to, string cc,
> string subject, string body)
> {
>
> MailMessage mail = new MailMessage();
>
> mail.From = new MailAddress("xxxx at gmail.com");
> mail.To.Add(to);
>
> mail.Subject = subject;
> mail.Body = body;
>
> SmtpClient smtp = new SmtpClient("smtp.uach.cl", 465);
>
> smtp.Credentials = new NetworkCredential("xxxx at gmail.com",
> "xxxxx");
> smtp.Send(mail);
>
> return "email exitoso";
> }
>
> Any Ideas or alternatives solutions?
Does a telnet to smtp.uach.cl:465? Do this work with MS.net? Are
gmail.com users valid for this SMTP server?
> Regards,
> Rolando.
>
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
--
Cheers,
Christian López Espínola <penyaskito>
More information about the Mono-list
mailing list