EDN Admin
Well-known member
<ol style="margin:0px 0px 1em 30px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
<li style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; word-wrap:break-word
<p style="padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
In our requirement, we are working on an issue
<pre class="lang-cs prettyprint" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; width:auto; max-height:600px; word-wrap:normal <code style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif Issue : The e-mail is not getting delivered to some specific Email Id.[/code][/code]
<li style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; word-wrap:break-word
<p style="padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
In C# we are having a method to send E-mail. Its working fine, but for some clients the email is not getting delivered e.g.client@abc.com.
<p style="padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
c# code (Modified):
<pre class="lang-cs prettyprint" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; width:auto; max-height:600px; word-wrap:normal <code style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif smtpClient = new SmtpClient();
mailMessage = new MailMessage();
mailMessage.Subject = subject;
mailMessage.IsBodyHtml = true;
mailMessage.From = new MailAddress(from);
mailMessage.To.Add(new MailAddress(to));
mailMessage.CC.Add(new MailAddress(cc));
mailMessage.Body = string.Format("{0}", body);
smtpClient.Host = host;
smtpClient.Port = port;
smtpClient.Send(mailMessage);[/code][/code]
<li style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; word-wrap:break-word
<p style="padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
we tried sending the Email to the same client through JAVA code, the email got delivered with out any issue.
<p style="padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
Java Code(modified):
<pre class="lang-cs prettyprint" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; width:auto; max-height:600px; word-wrap:normal <code style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif Session session;
Properties props = System.getProperties();
props.put( "mail.smtp.host", smtpHost);
props.put("mail.smtp.from",smtpHeader);
session = Session.getDefaultInstance( props, null);
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to));
message.setSubject("Testing Subject");
message.setText("Test Email");
Transport.send(message);[/code][/code]
<li style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; word-wrap:break-word
<p style="padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
we are searching for the solution to send the Email through C#.Net code.
</ol>
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Any good solutions are appreciated.
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Note:
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
<span style="color:#444444; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:13px; line-height:17px 1. we are not having access for the destination server log, if it is caught in a spam filter then i dont know how come the same is possible
in java code?
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
<span style="color:#444444; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:13px; line-height:17px 2. The host and port are same as the java code.
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
<span style="color:#444444; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:13px; line-height:17px 3. The host and port are configured properly, actually the method is working properly for other Email id
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Thanks in advance.<br/>
<br/>
View the full article
<li style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; word-wrap:break-word
<p style="padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
In our requirement, we are working on an issue
<pre class="lang-cs prettyprint" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; width:auto; max-height:600px; word-wrap:normal <code style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif Issue : The e-mail is not getting delivered to some specific Email Id.[/code][/code]
<li style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; word-wrap:break-word
<p style="padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
In C# we are having a method to send E-mail. Its working fine, but for some clients the email is not getting delivered e.g.client@abc.com.
<p style="padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
c# code (Modified):
<pre class="lang-cs prettyprint" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; width:auto; max-height:600px; word-wrap:normal <code style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif smtpClient = new SmtpClient();
mailMessage = new MailMessage();
mailMessage.Subject = subject;
mailMessage.IsBodyHtml = true;
mailMessage.From = new MailAddress(from);
mailMessage.To.Add(new MailAddress(to));
mailMessage.CC.Add(new MailAddress(cc));
mailMessage.Body = string.Format("{0}", body);
smtpClient.Host = host;
smtpClient.Port = port;
smtpClient.Send(mailMessage);[/code][/code]
<li style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; word-wrap:break-word
<p style="padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
we tried sending the Email to the same client through JAVA code, the email got delivered with out any issue.
<p style="padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
Java Code(modified):
<pre class="lang-cs prettyprint" style="padding:5px; border:0px; font-size:14px; vertical-align:baseline; background-color:#eeeeee; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif; width:auto; max-height:600px; word-wrap:normal <code style="margin:0px; padding:0px; border:0px; font-size:14px; vertical-align:baseline; font-family:Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,serif Session session;
Properties props = System.getProperties();
props.put( "mail.smtp.host", smtpHost);
props.put("mail.smtp.from",smtpHeader);
session = Session.getDefaultInstance( props, null);
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to));
message.setSubject("Testing Subject");
message.setText("Test Email");
Transport.send(message);[/code][/code]
<li style="margin:0px; padding:0px; border:0px; vertical-align:baseline; background-color:transparent; word-wrap:break-word
<p style="padding-right:0px; vertical-align:baseline; background-color:transparent; clear:both; word-wrap:break-word
we are searching for the solution to send the Email through C#.Net code.
</ol>
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Any good solutions are appreciated.
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Note:
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
<span style="color:#444444; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:13px; line-height:17px 1. we are not having access for the destination server log, if it is caught in a spam filter then i dont know how come the same is possible
in java code?
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
<span style="color:#444444; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:13px; line-height:17px 2. The host and port are same as the java code.
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
<span style="color:#444444; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif; font-size:13px; line-height:17px 3. The host and port are configured properly, actually the method is working properly for other Email id
<p style="padding-right:0px; font-size:14px; vertical-align:baseline; clear:both; word-wrap:break-word; font-family:Arial,Liberation Sans,DejaVu Sans,sans-serif
Thanks in advance.<br/>
<br/>
View the full article