Copied to clipboard

Flag this post as spam?

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


  • Lee 95 posts 115 karma points
    Nov 11, 2011 @ 11:52
    Lee
    0

    Doc2Form and smtp settings and not receiving mail!

    Hi

    I have set up a contact page that uses Doc2Form (I know, but I can't afford courier!), but I simply don't receive any emails other than setting up my web.config

    <network host="smtp.hosts.co.uk" userName="mydomain.co.uk" password="*******" defaultCredentials="true" />

    and setting the parameters, is there anything else I need to do to get it working?

     

     

    <form runat="server">
            <umbraco:Macro DocumentType="1345"
              TabName="contact form"
              PageTabs="0"
              HideTabNames="1"
              ShowDescriptions="0"
              RequiredText=""
              SubmitButtonText="Submit"
              PreviousButtonText=""
              NextButtonText=""
              TextOnSubmit="Thankyou for your enquiry"
              RedirectToNode="-1"
              StorePropertiesInCookies=""
              SendEmailResponse="0"
              ResponseSubject=""
              ResponseMessage=""
              ResponseEmailFieldAlias=", "
              ResponseCopyTo=""
              EmailForm="0"
              FormSubject=""
              FormMessage=""
              FormToEmailAddress="info@mydomain.co.uk"
              FormFromEmailAddress="lee@somebodysdomain.co.uk"
              UseAjax="0" DefaultValueNode=""
              Alias="Doc2FormEmail"
              runat="server"></umbraco:Macro> 
           
           
            </form>

     

    Cheers

  • Mike Chambers 636 posts 1253 karma points c-trib
    Nov 11, 2011 @ 13:21
    Mike Chambers
    0

    think you need default credentials="false" inorder to use the username and pwd you have added...

    another test is..

    exchange

            <smtp>
    <network host="XXX" userName="XXX" password="XXX" defaultCredentials="false" />
    </smtp>   
                
         

    for

            
         <smtp deliveryMethod="SpecifiedPickupDirectory">
    <specifiedPickupDirectory pickupDirectoryLocation="C:\TestMailMessages\" />
    </smtp>           
           

    assuming your host allows writing to the file system...

    this checks to make sure that the message is getting out and then the issue is with you smtp settings/provider.

  • Lee 95 posts 115 karma points
    Nov 11, 2011 @ 14:55
    Lee
    0

    Thanks Mike

     

    I changed the web.config to

     <smtp deliveryMethod="SpecifiedPickupDirectory">
                <specifiedPickupDirectory pickupDirectoryLocation="C:\TestMailMessages\" />
            </smtp>

     

    But nothing appears in the folder?

  • Mike Chambers 636 posts 1253 karma points c-trib
    Nov 11, 2011 @ 15:22
    Mike Chambers
    0

    looks like it could be an issue wih the actual code then.. :-(  ie mails aren't even being attempted to be sent.

     

  • Lee 95 posts 115 karma points
    Nov 11, 2011 @ 15:57
    Lee
    0

    Do you mean there is an issue with Doc2Form?

  • Mike Chambers 636 posts 1253 karma points c-trib
    Nov 11, 2011 @ 21:22
    Mike Chambers
    0

    if you aren't getting anything in the pickupdirectory then it suggests that the process is failing even before it hits the smtp server... so somewhere before the call to mail.send() in the code...

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies