Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0"System.Web.Mail.SmtpMail.Send" fails with large attachments"System.Web.Mail.SmtpMail.Send" fails with large attachments
Previous
 
Next
New Post
4/4/2009 2:51 AM
 

The mail was sent with the attachments of 10286 KB (10.04 MB)

But, The mail was not sent with the attachments of 15356 KB (14.99 MB) but the attachments were attached to the application successfully and I did not receive any error.

I have done the following in my ASP.Net application

            Web.Mail.SmtpMail.SmtpServer = "10.2.3.6"

            mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", 1)
            mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "xxx@xxx.com")
            mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "xxxxxxxxx")

            mail.To = "xxx@xxx.com"

            mail.From = "xxx@xxx.com"

            mail.Subject = "text"
            mail.Bodyformat = System.Web.Mail.Mailformat.Html
            mail.Priority = System.Web.Mail.MailPriority.Normal
            Dim strHTML As String

            strHTML = "<html><head></head><body><a href="url" target=_new>" & "Click Here</a></body></html>"
            mail.Body = strHTML

            Dim Dr1 As SqlDataReader
            SqlCmd.Connection = SqlConn
            Dr1 = GetRecordSet(SqlCmd, "procedure name")
            While Dr1.Read
                If Dr1.Item("OriginalFile") <> "" Then
                    mail.Attachments.Add(New MailAttachment(baseLocation & Dr1.Item("JobID") & "_" & Dr1.Item("OriginalFile")))
      'baseLocation is string which contains the path
                End If
            End While

            Dr1.Close()

            Web.Mail.SmtpMail.Send(mail)


I have uploaded the file to the server and stored the path in the DataBase

I have checked the SMTP Mail servers mail message size limit using same SMTP server and user name, password in the outlook express. I checked by sending an email with 20.56 MB attachments using outlook express. It was sent and received successfully.

I have also unchecked "Limit message size to and Limit session size to" checkboxes under the "Messages" tab of the "Default Virtual Server SMTP Properties" dialog in the IIS 5.1.
 

I have done the following in the machine.config,

 <configuration>
  <system.web><httpRuntime executionTimeout="18000" maxRequestLength="2097151"/>
  </system.web>
  </configuration>

 

But its not working, instead I am getting the following error while sending mail with 22.33 MB of attachments

 "Your email message to <advertising@wimaonline.com> with the subject of ABC00700 - New Job From (Yost) was unable to be sent because the connection to your mail server was interrupted. Please open your email client and re-send the message from the Sent Messages folder

and I have also tried the following in my asp.net code, 

mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout", 18000)

and tried the following also,

mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout", 60)

but still I am getting the "connection to your mail server was interrupted" error from "Symantec email proxy"


Any help would be appreciated

Thanks.
Balaji S

 
New Post
4/4/2009 4:16 AM
 

 If you are using .Net send, you should look for answers at MSDN and forums.asp.net for an answer. 


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/4/2009 4:48 AM
 

Thanks for reply. I have posted it in forums.asp.net and not found the solution. I have searched a lot in web and msdn and found nothing to solve the problem.

 

Any other have any idea?

 

Thanks

Balaji

 
New Post
4/4/2009 6:53 AM
 

 "Symantec email proxy" is a virus scanner that intercepts messages and scans them before passing them to the mail server. You didn't mention if this is happening on your local machine or on a remote server. Potentially the path from your local outlook client to the mail server is different than the on-server path. In any case I would recommend looking at the Symantec site for information about their anti-virus SMTP proxy. It may have different server configured message size limits, or just the time it takes it to scan a message of that size is too long, or it doesn't let you send messages with the extension you're using. For the later issue you may try changing the extension to .zzz and see if that makes a difference.

 
New Post
4/4/2009 7:52 AM
 

Thanks for your information and I apologize for the miscommunication

I am getting the Symantec email proxy's connection interrupted error from my local machine.

and I checked the SMTP Server's message size limit in the remote server outlook express.

1) Will the connection interrupted error it happen in production also?

But as I told earlier, the mail was not sent with large attachments in production also without any errors.


Potentially the path from your local outlook client to the mail server is different than the on-server path.

I could not understand, what do you mean by "on-server path"

As I told, the mail successfully sent with the same PDF attachments that are not sent successfully.
I have listed below the mail status with attachments(all are PDF)

1) mail was sent successfully with the attachments of 12335 KB (12.04 MB)

1. 3530 KB (3.447 MB)
2. 3530 KB (3.447 MB)
3. 3530 KB (3.447 MB)
4. 1745 KB (1.70 MB)

2) mail was not sent with the attachments of 22874 KB (22.33 MB)

1. 3530 KB (3.447 MB)
2. 3530 KB (3.447 MB)
3. 3530 KB (3.447 MB)
4. 3530 KB (3.447 MB)
5. 3530 KB (3.447 MB)
6. 1745 KB (1.70 MB)
7. 1481 KB (1.446 MB)
8. 790 KB
9. 750 KB
10. 458 KB

 

Thanks

Balaji

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0"System.Web.Mail.SmtpMail.Send" fails with large attachments"System.Web.Mail.SmtpMail.Send" fails with large attachments


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out