Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Max Öhman 42 posts 71 karma points
    Nov 28, 2011 @ 13:29
    Max Öhman
    0

    Send mail extended problem

    I'm trying to attach files using file upload. I've installed the package and added the key below in the web.config.

    <add key="contourContribUseSsl" value="false" />

    I can't manage to send a email when I've selected Send email, extended or Send XSLT Transformed email, extended. There's no problem sending a emails without using extended.

    I've checked the DB log, but can't find anything useful.

    Is there something that I have missed in the installation?

     

     

  • Sebastiaan Janssen 4893 posts 14613 karma points MVP admin hq
    Nov 28, 2011 @ 13:31
    Sebastiaan Janssen
    0

    Any reason you're setting it to false explicitly?

    Try sending it with a completely empty template, then slowly start adding things to it. I found that when there's an XSLT error, the send fails quietly. It's a pain to debug it this way.. 

  • Max Öhman 42 posts 71 karma points
    Nov 28, 2011 @ 16:49
    Max Öhman
    0

    Thank you for your fast reply Sebastiaan,
    I've tried using an empty template with and without any XSLT. I did also try to set the contourContribUseSsl to "true" but it won't send an emails.

  • Sebastiaan Janssen 4893 posts 14613 karma points MVP admin hq
    Nov 28, 2011 @ 17:43
    Sebastiaan Janssen
    0

    Just also make sure that an e-mail still DOES get sent when you use the built-in workflows (I know you say it did before, but please re-check).

    Also make sure that you're setting the reply-to address and the send-from address correctly, mail servers will dump your e-mails if they think you're trying to relay (for example: the from address is not the same domain name as the smtp server expects).

    You can check this best by storing the mail locally and avoiding an SMTP server altogether:

    Put this in your web.config:

      <system.net>
        <mailSettings>
          <smtp deliveryMethod="SpecifiedPickupDirectory" from="info@yourdomain.com">
            <network host="localhost" />
            <specifiedPickupDirectory pickupDirectoryLocation="D:\Websites\mailroot" />
          </smtp>
        </mailSettings>
      </system.net>

    Make sure that your application pool's user (usually NETWORK SERVICE or the group IIS_IUSRS) has modify permissions on the pickupDirectoryLocation and that the location actually exists. Mails will be written as .eml files in that folder and you can read them by opening them in Outlook, Windows Mail or even a text editor.

    If that fails, I'm afraid you're going to have to get the source of the contrib package and debug it. It's been a few months since I worked on it and I can't remember much of the inner workings.

  • davelane 29 posts 73 karma points
    Nov 28, 2011 @ 20:50
    davelane
    0

    Hey guys, I'm having a similar problem. I've never been able to use the send email, extended feature. Nothing happens. The built-in version works, though.

    I guess this would be a server issue? i'm not try to set ssl protection or anything like that.

  • Sebastiaan Janssen 4893 posts 14613 karma points MVP admin hq
    Nov 29, 2011 @ 08:11
    Sebastiaan Janssen
    0

    @davelane Try the above method, if that works then it does seem a lot like it's a server issue.

  • davelane 29 posts 73 karma points
    Nov 29, 2011 @ 14:04
    davelane
    0

    Thanks Sebastiaan! I think it is indeed server-related. Will have to chat with the admin.

    Cheers

  • Max Öhman 42 posts 71 karma points
    Dec 05, 2011 @ 16:09
    Max Öhman
    0

    Hi,
    I've tried your suggestion Sebastiaan with no luck. I still get the default mails but non of the extended. I think I'm gonna need to take a look at the source.

    @Develane
    Did you get this to work?

  • Sebastiaan Janssen 4893 posts 14613 karma points MVP admin hq
    Dec 06, 2011 @ 14:04
  • Stephen Maij 11 posts 36 karma points
    Dec 09, 2011 @ 10:50
    Stephen Maij
    0

    Also, I figured out the Contour Contrib package did not contain the Newtonsoft.Json assemblies.
    When I added those to the bin Folder I was able to debug and the e-mail was sent succesfully.

  • Amir Khan 1138 posts 2378 karma points
    Mar 22, 2012 @ 19:10
    Amir Khan
    0

    Regarding Sebastiaan's post, where is the source for this package?

  • Stephen Maij 11 posts 36 karma points
    Mar 22, 2012 @ 19:13
  • Amir Khan 1138 posts 2378 karma points
    Mar 22, 2012 @ 22:19
    Amir Khan
    0

    Thanks Stephen, do you know if there is a compiled version with that update somewhere?

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Mar 28, 2012 @ 21:31
    Kalle Ekstrand
    0

    Has anyone got this to work? It is really anoying...

  • Amir Khan 1138 posts 2378 karma points
    Mar 28, 2012 @ 21:57
    Amir Khan
    0

    Agreed, I can't get it to compile correctly for some reason.

  • Amir Khan 1138 posts 2378 karma points
    Apr 02, 2012 @ 18:08
    Amir Khan
    0

    I've added the updated dll for this fix here incase anyone's interested: http://contourcontrib.codeplex.com/workitem/768

  • Kalle Ekstrand 181 posts 259 karma points c-trib
    Apr 23, 2012 @ 08:31
    Kalle Ekstrand
    0

    We got it to work now, you need the new DLL and to add the SSL key to web.config.

    However, when using the option to enclose attachments, it seems like the attachments in the mail is corrupt.
    But when you look at the binary file on the disk that one is ok.

    Any ideas?

Please Sign in or register to post replies

Write your reply to:

Draft