.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

SMTP SENDMAIL corrupts some emails

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :Sql Server
 
At each month-end, we have several SQL 2000 jobs that mail that send out attached spreadsheets (local volume on the SQL server) to various recipients.  Recently, some of them started showing up unable to be opened.  The error messages usually allow you to click through, but the data is spread across a couple of worksheets and is not formatted properly. If the job is re-run, the attachment is sometimes delivered in a readable fashion, other times it is not. A separate test script that performs the same function seems to always deliver a usable spreadsheet attachment. We have no reason to believe it is the email or local virusscan (TrendMicro OfficeScan, TrendMicro ScanMail for Exchange), since we have appropriate exceptions in place. A search for relavent articles on "SMTP SENDMAIL CORRUPTION" doesn't turn up any obvious hits, so I don't think this is widespread or common. Anybody with some input? Thanks


View Complete Post


More Related Resource Links

SMTP SENDMAIL corrupts some emails

  
At each month-end, we have several SQL 2000 jobs that mail that send out attached spreadsheets (local volume on the SQL server) to various recipients.  Recently, some of them started showing up unable to be opened.  The error messages usually allow you to click through, but the data is spread across a couple of worksheets and is not formatted properly. If the job is re-run, the attachment is sometimes delivered in a readable fashion, other times it is not. A separate test script that performs the same function seems to always deliver a usable spreadsheet attachment. We have no reason to believe it is the email or local virusscan (TrendMicro OfficeScan, TrendMicro ScanMail for Exchange), since we have appropriate exceptions in place. A search for relavent articles on "SMTP SENDMAIL CORRUPTION" doesn't turn up any obvious hits, so I don't think this is widespread or common. Anybody with some input? Thanks

smtp server 5.1 in xp not sending emails

  

hi iam using asp.net 2.0 with c#.net.

in my application when client completes its shopping email will goes to user this works fine when there is internet connection is working fine,
if  there is some problem  in internet connection if one mail stops then all the mails will be stopped even now internet works fine,

how to resend the emails using smtp server, is there any option to resend the emails automatically when internet works fine.


can you give example which helps me.


Can't send SMTP to all emails

  

Hi, I can send email with my asp.net 2.0 to gmail and other domains with my local SMTP server, but if I try and send it to a cellphone like 5551234567@tmomail.net, the mail just gets stuck in the SMTP queue.  I can send a text message via email to that same email address with normal email.  For example, I can send an email through gmail or my company's server to the tmomail.net email, but I can't from my local SMTP server.  I can send email with my local SMTP server to other Internet and Intranet emails, just not the phone.  My local SMTP is working, security is for localhost only, just can't send to this address.

 Thanks for any help.


Emails in SMTP

  

Hi All,

My program sends emails via SMTP, it sends emails with no problem when just a normal email address ie me@hotmail.com but as soon as I try to send it to a pre defined distribution list i get a bounce back message in outlook telling me I dont have permission to send to this list.

I have put in my network credentials into the code but it doesn't seem to make a difference.

Does anyone know if there is any other reason it wont send to a distribution list? The distrbution list was created in Active Directory, it is not a list I have setup in my own outlook.

Any thoughts appreciated.

Thanks


Testing Emails Sending (SMTP) under IIS7 Express (WebMatrix)

  

Hi there,

I don't have web server account yet so I must test my applications with the Web Development Server under VS 2010 with C# but I read that I couldn't send emails under that server but I also read that I can send email with IIS7 Express and that's the main reason why I've install Webmatrix. Maybe someone can confirm this.

So for the moment I am redirecting my emails into a local folder and it is working perfectly.

Here is part of the code I've add to the Web.Config for doing that.

</system.web>
<system.net>
  <mailSettings>
      <smtp deliveryMethod="SpecifiedPickupDirectory">
        <specifiedPickupDirectory pickupDirectoryLocation="D:\Temp"/>
      </smtp>
  </mailSettings>
</system.net>


 

As you can see I am redirecting the emails to the D:\temp

 
The following code for sending emails comes 
from the videos of JOE STAGNER at Microsoft
but beware there is a few typing errors in 
his video like missing > " 

http://www.asp.net/security/videos/implement-the-registration-v

How do I get the emails of all the members of a given group in ActiveDirectory - Need help

  

Hi,

  I have a need to send out emails to all the people who are in a given group say "HR Department". I need to be able to get all the emails through a for loop and then as it retrieves I should send emails to them. Can some one please help me with the code

this is what I came up with but not sure how to go about writing a for loop to get all the emails in the given group.

public static string SendEmails(string loginName)
    {
        string Department = "HR Department"
        string userName = ExtractUserName(loginName);
        DirectorySearcher search = new DirectorySearcher();
        search.Filter = String.Format("(SAMAccountName={0})", userName);
        //search.Filter = String.Format("(SAMAccountName={FAY ImprovmentForm})", userName);
        //LdapSearcher.Filter = string.Format("(&(objectClass=user)(department={0}))", Department); 
        //search.Filter = string.Format("(&(objectClass=group)(SAMAccountName=" + Department + "))", userName);
        search.PropertiesToLoad.Add("cn");
        search.PropertiesToLoad.Add("samaccountname");
        search.PropertiesToLoad.Add("givenname");
        search.PropertiesToLoad.Add("sn");
        sea

SMTP not working if I use web deployment package to deploy my app.

  

Hi all

I use msdeploy to install my web app. deployment package. everything about web app works, but find out email was not working.

I checked telnet smtp is running.

I debug the project, and it was sending out email too.

So my solution was upload the whole project (not complied) to wwwroot, and email works too. Thats why I assume the deployment cause the problem.

at last, I also tried to copy the web deployment web.config to replace the project's web.config, and the email also work, so it wasn't the web.config problem.


Could anyone tell me whats going on?


My environment:

window 2003

iis 6

.net framework 4.0



I cannot send mail using gmail smtp server

  

 Here is my code

Dim message As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage()
        message.To.Add("from textbox field")
        message.Subject = "Testing"
        message.From = New System.Net.Mail.MailAddress("sender email ")
        message.Body = "Just Testing"

        Dim smtp As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient()

        Dim client As SmtpClient = New SmtpClient()
        smtp.Credentials = New System.Net.NetworkCredential("username", "password")
        smtp.Port = 25
        smtp.Host = "smtp.gmail.com"
        smtp.EnableSsl = True
        smtp.DeliveryMethod = SmtpDeliveryMethod.Network
        lblmsg.Text = "Your Email has send"

        Try
        &

SPD workflow, emails sent for one user, not for the other

  

Good day,

I have a SPD workflow (WSS/2007) that take a date field from a document list and when that date occurs it sends an email.  If the date is in the past, it will send the email out right away.  It is working fine for one user, not for another.  Both users have the same permissions.  The workflow goes as follows:

ACTION: Set Variable: vTermdate to DocumentsNotificationDate
       then log Documents:Email Date to the workflow history list

CONDITION: if Variable: vTermdate is not Empty
ACTION: Log term not empty to the workflow history list

CONDITION: if Variable: vTermdate is Empty
ACTION: Set Variable: vTermdate to N/A

ACTION: Add 0 minutes to Documents:Email Date (out to

Email enabld list delay on recieving emails

  

So the situation is, i have a list, that receives emails from a particular account all day long, recently it has started recieving emails "late" being it will mass process emails at various times of the day. Before it proccessed them as soon as they were received.

Event log shows

A critical error occurred while processing the incoming e-mail file C:\Inetpub\mailroot\Drop\e472144001cb44a40000001e.eml. The error was: The process cannot access the file 'C:\Inetpub\mailroot\Drop\e472144001cb44a40000001e.eml' because it is being used by another process..

 

Have this error everywhere.

        -Restarted SMTP

        -Restarted IIS

It seems SMTP is having issues but wanted to come here and get some insight.

 

-I havent changed anythign recently except new cable runs to the switch

-There is no mail in the (Drop, Mailbox,Pickup, Queue) folders

-mail setup settings are

              -incoming is set to "Advanced" , no,  server.domain.com

Outgoing is my exange server.

 

 


smtp is noe sending email instantly,it makes a Queue in my local system

  
I am using a  smtp to send email from asp.net (C#)code.it sending some email instantly but many of email is making a queue in my Inetpub folder at local system.what could be the issue ? please help me to get rid from it.ThankxArvind

.net 3.5 in conjunction with CRM 4.0 email router adding code to subject line of emails causing spam

  
We use CRM 4.0, which is using .net framework 3.5 SP 1.  Emails sent out of CRM go through and email router and the subject line of these emails is getting "=?us-ascii?Q? added to the beginning of the subject line and "?= added to the end of the subject line. This is causing a large amount of our emails getting spammed. I was told by the CRM support that this is an issue with .net 3.5 and won't be fixed until .net 4.0, which CRM won't support for another year.  Is there not a .net 3.5 patch that can address this?

Duplicate emails are being sent

  
Hello I am using SPutility.SendEmail method to send the email to the particular recipient internally using case statement. I mean depending on the dropdown selection I am sending email by making the selected values in case statement. Here the issue is the users are complaining that they are getting multiple emails for the same request. When I checked in my dev server the flow of the code is normal but not the same case with prod. The following is the code. case "mycase":                             {                                 StringDictionary headers = new StringDictionary();                                 headers.Add("from", fromemail);                                 headers.Add("to",   toemail);        

Using Gmail as SMTP Server for SSRS

  
Folks, check the internet, so far not getting to far on using smtp.gmail.com as smtp server. I want  to sent Subscription email using gmail smtp server, but keep getting Failure sending mail: The transport failed to connect to the server. What can I do ? Setup--- SSRS 2008 R2 Windows Server 2008 R2

The SMTP server requires a secure connection or the client was not authenticated.........

  
i am using asp.net & have a emailing modulewhen i use gmail host i amable 2 send the mail but when i am using yahoo host i get  error msgthe yahoo id & password are right  but still getting the below msg ---------------------------Windows Internet Explorer---------------------------  ' The SMTP server requires a secure connection or the client was not authenticated. Authentication Required. '   ---------------------------OK   ---------------------------

MOSS SMTP Issues

  
Hi, Does anyone know how to get around this problem: The user or users have been added successfully, but there was an error in sending the e-mail message. The server may not be set up correctly to send e-mail. To verify that e-mail is configured correctly, contact your server administrator. Thanks You've only got one life; help as many people as you can, and enjoy it while it lasts.

Trying to email through SMTP on server 2008

  
I have the following form and trying to click a button and email through an SMTP server. Any suggestions? Thanks.<table class="style1" bgcolor="#003366" cellpadding="3" cellspacing="3"> <tr> <td class="style2"> Your name:<br /> <asp:TextBox ID="txtHDName" runat="server" Width="161px"></asp:TextBox> <br /></td> </tr> <tr> <td class="style2"> Your email:<br /> <asp:TextBox ID="txtEmail" runat="server" Width="161px"></asp:TextBox></td> </tr> <tr> <td class="style2"> PC name:<br /> <asp:DropDownList ID="DropDownList1" runat="server"> </asp:DropDownList> </td> </tr> <tr> <td class="style2"> Problem:<br /> <asp:DropDownList ID="DropDownList2" runat="server" Width="128px"> </asp:DropDownList> &l
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend