[Mono-bugs] [Bug 82016][Wis] New - Cannnot send mail from Linux at runtime - smtpmail.send (System.Web.Mail)
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Jul 5 14:56:01 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by david_martinez_perales at yahoo.es.
http://bugzilla.ximian.com/show_bug.cgi?id=82016
--- shadow/82016 2007-07-05 14:56:01.000000000 -0400
+++ shadow/82016.tmp.9435 2007-07-05 14:56:01.000000000 -0400
@@ -0,0 +1,97 @@
+Bug#: 82016
+Product: Mono: Runtime
+Version: 1.2
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: JIT
+AssignedTo: lupus at ximian.com
+ReportedBy: david_martinez_perales at yahoo.es
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Cannnot send mail from Linux at runtime - smtpmail.send (System.Web.Mail)
+
+Good afternoon, I am disposing to explain the next bug found:
+
+
+Problem description: At the runtime, Smtpmail.Send does not works in linux
+but it works perfectly in Windows (library = System.Web.Mail).
+
+The runtime in Linux does not show any error, but the email does not arrive
+to the destination email account.
+
+Compiler used: Borland Delphi 2006 .NET
+
+Execution: mono MyProgram.exe
+
+Linux Version:
+
+Linux noname00 2.6.18.8-0.3-default #1 SMP Tue Apr 17 08:42:35 UTC 2007
+x86_64 x86_64 x86_64 GNU/Linux
+
+Mono Version:
+
+Mono JIT compiler version 1.2.4 (tarball)
+Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
+ TLS: __thread
+ GC: Included Boehm (with typed GC)
+ SIGSEGV: normal
+ Architecture: amd64
+ Disabled: none
+
+
+Used function (source code):
+
+
+Function Yahoo_SendMail_SMTP ( Servidor_SMTP : String; UsuarioYahoo :
+String; DominioYahoo : String; Destinatario : String; Titulo : String;
+Mensaje : String) : Boolean;
+Var
+ Mensaje_SMTP : MailMessage;
+Begin
+
+ {Usage:
+
+ Yahoo_SendMail_SMTP ( 'smtp.correo.yahoo.es', 'MyYahooUser', 'yahoo.es',
+ 'MySubject', 'MyMessage' );
+
+ }
+
+ Mensaje_SMTP := MailMessage.Create;
+ Mensaje_SMTP.From := UsuarioYahoo + '@' + DominioYahoo;
+ Mensaje_SMTP.&To := Destinatario;
+ Mensaje_SMTP.Subject := Titulo;
+ Mensaje_SMTP.Body := Mensaje;
+ Mensaje_SMTP.BodyFormat := MailFormat.Text;
+
+ Mensaje_SMTP.Fields.Add
+('http://schemas.microsoft.com/cdo/configuration/smtpserverport', '25' );
+ Mensaje_SMTP.Fields.Add
+('http://schemas.microsoft.com/cdo/configuration/sendusername', UsuarioYahoo );
+ Mensaje_SMTP.Fields.Add
+('http://schemas.microsoft.com/cdo/configuration/sendpassword', 'MyPassword' );
+
+ SmtpMail.SmtpServer := Servidor_SMTP;
+
+ Try
+
+ SmtpMail.Send(Mensaje_SMTP);
+ Result := True;
+
+ Except
+
+ Result := False;
+
+ end;
+
+ Mensaje_SMTP.Free;
+
+end;
+
+
+Thank you for listening me.
More information about the mono-bugs
mailing list