Copied to clipboard

Flag this post as spam?

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


  • Lee 1130 posts 3088 karma points
    Aug 04, 2009 @ 12:17
    Lee
    0

    Runway Contact Form

    I'm trying to use the generic Runway contact form on a simple site - I have added my mail info into the web.config

          <system.net>
            <mailSettings>
                <smtp from="[email protected]">
                    <network host="smtp.theserver.co.uk" password="thepass" userName="theuser"/>
                </smtp>
            </mailSettings>
        </system.net>

    And when I test the form I get no errors - But the email doesn't seem to be getting to me?  Any ideas?

  • Lee 1130 posts 3088 karma points
    Aug 04, 2009 @ 13:50
    Lee
    0

    Anyone :S ....  Double checked everything and still a bit mystified, would it catch the error anywhere?

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Aug 04, 2009 @ 14:12
    Sebastiaan Janssen
    1

    Are you allowed by your smtp host to actually relay mails like this?

    Try having a look at the stacktrace by adding ?umbDebugShowTrace=true to your querystring.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Aug 04, 2009 @ 14:52
    Douglas Robar
    1

    A couple things to look into to sort this one out.

    1. If you have access to the mail server's Event Viewer, look for an error to give more info about the cause of the problem

    2. Look in the umbraco database at the umbracoLog table, you might find something helpful there

    3. Send to an email address within the domain of the mail server (to be sure you don't have a relay problem in the mail server setup)

    Anything helpful?

     

    One other thing to try, and it is a left-over from umbraco 3 so I don't think it is relevant but it can't hurt to try... but add this to your web.config:

    <add key="umbracoSmtpServer" value="smtp.theserver.co.uk"/>

    That was the old way of specifying the mail server for the umbraco.library.SendMail() function, which is what the contact form is calling.

     

    Let us know what you find out.

    cheers,
    doug.

  • Lee 1130 posts 3088 karma points
    Aug 05, 2009 @ 16:18
    Lee
    0

    Thanks Doug.. I am getting this error?

    umbraco.library.SendMail: Error sending mail. Exception: System.Net.Mail.SmtpException: Failure sending mail. ---> System.FormatException: Invalid length for a Base-64 char array.

       at System.Convert.FromBase64String(String s)

       at System.Net.NTAuthentication.GetOutgoingBlob(String incomingBlob)

       at System.Net.Mail.SmtpNtlmAuthenticationModule.Authenticate(String challenge, NetworkCredential credential, Object sessionCookie)

       at System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port)

       at System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port)

       at System.Net.Mail.SmtpClient.GetConnection()

       at System.Net.Mail.SmtpClient.Send(MailMessage message)

       --- End of inner exception stack trace ---

       at System.Net.Mail.SmtpClient.Send(MailMessage message)

       at umbraco.library.SendMail(String FromMail, String ToMail, String Subject, String Body, Boolean IsHtml)

     

    Anyone know what this actually means?  I have read this can be caused by large viewstate?

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Aug 05, 2009 @ 16:38
    Sebastiaan Janssen
    0

    Oh actually, no I think I know what this is. You are using authentication and in order to do that, I think you need to set the network key like this:

    <network host="smtp.theserver.co.uk" password="thepass" userName="theuser" defaultCredentials="false"/>
  • Lee 1130 posts 3088 karma points
    Aug 05, 2009 @ 17:03
    Lee
    0

    Hi Sebastiaan - Thanks for replying, I am still getting the same error?  any ideas?

    I am loving Umbraco but have to say slightly annoyed that something so simple as sending an email is just a tad disappointing!!

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    Aug 05, 2009 @ 17:06
    Sebastiaan Janssen
    0

    I'm not sure where the error comes from then, I'm not familiar enough with this contact form.

    As a last resort, you could just try my simple contact form package :-)

  • Pete 152 posts 176 karma points
    Feb 19, 2010 @ 11:37
    Pete
    0

    Sorry for the bump but anyone got more info on this?

     

    I can confirm that:

    - the smtp settings in my web.config are the same as those that work in another umbraco project (via .net)

    - there are no errors in my umbracolog table

     

    Also, just wondering what email address the emails are sent from?

  • Bill 6 posts 26 karma points
    Mar 13, 2010 @ 05:06
    Bill
    0

    I am also having trouble, same (actually several different) smtp settings; My log files are unclear to me.:

    Error indexing node: (System.IO.FileNotFoundException: Could not find file 'C:\....\data\_systemUmbracoIndexDontDelete\_1t.fnm'. File name: 'C:\...\data\_systemUmbracoIndexDontDelete\_1t.fnm' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at Lucene.Net.Store.FSIndexInput.Descriptor..ctor(FSIndexInput enclosingInstance, FileInfo file, FileAccess mode) at Lucene.Net.Store.FSIndexInput..ctor(FileInfo path) at Lucene.Net.Store.FSDirectory.OpenInput(String name) at Lucene.Net.Index.FieldInfos..ctor(Directory d, String name) at Lucene.Net.Index.SegmentReader.Initialize(SegmentInfo si) at Lucene.Net.Index.SegmentReader.Get(Directory dir, SegmentInfo si, SegmentInfos sis, Boolean closeDir, Boolean ownDir) at Lucene.Net.Index.IndexWriter.MergeSegments(Int32 minSegment, Int32 end) at Lucene.Net.Index.IndexWriter.Optimize() at umbraco.cms.businesslogic.index.Indexer.IndexNode(Guid ObjectType, Int32 Id, String Text, String UserName, DateTime CreateDate, Hashtable Fields, Boolean Optimize))

    What's that mean?

     

Please Sign in or register to post replies

Write your reply to:

Draft