Copied to clipboard

Flag this post as spam?

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


  • René Andersen 238 posts 684 karma points
    Oct 03, 2012 @ 14:31
    René Andersen
    0

    Form won't send email

    Hi

    Does this email form work with Umbraco 4.9?

    I am currently trying to make I work in version 4.9, but it wont sent emails. I am testing locally with this added in my webconfig file:

    <system.net>
    <mailSettings>
    <smtp deliveryMethod="SpecifiedPickupDirectory" from="">
    <network host="localhost" />
    <specifiedPickupDirectory pickupDirectoryLocation="C:\inetpub\mailroot" />
    </smtp>
    </mailSettings>
    </system.net>

    I have also added the code below in my template. (I have changed [email protected] to my own email address):

    <umbraco:Macro FileLocation="~/macroScripts/CultivContactForm.cshtml" MailFrom="[email protected]" FormLabelName="First and last name" runat="server" />

    Is there something I forgot to do to make it work? When i have filled out the form it just jumps back to my frontpage without any error messages.

    Thank's in advance.

    Kind regards

    René

  • Allan Hawkey 232 posts 303 karma points
    Nov 17, 2012 @ 19:26
    Allan Hawkey
    0

    Hi Rene

    Did you resolve this?  I am also having problems with this not sending emails via 4.9.1 (but it's working fine in the 4.7.1 site that I'm trying to upgrade).

    Thanks
    Allan

  • René Andersen 238 posts 684 karma points
    Nov 21, 2012 @ 12:40
    René Andersen
    0

    Hi Allan

    No unfortunately not but if I resolve it I will post it in here right away. :-) Maybe i will downgrade it to 4.7.1 on this project.

    Kind regards, René

  • Allan Hawkey 232 posts 303 karma points
    Nov 22, 2012 @ 11:29
    Allan Hawkey
    1

    I found why this was not working for me - not sure if this is the same issue for you, but worth checking.  There was a change in Umbraco 4.7.1.1 which caused some macros not to work correctly - actually, apparently this change was a fix for a bug, as they should never have worked if the parameters weren't also set for the macro in the backend.

    See http://our.umbraco.org/forum/developers/razor/27675-Dynamic-parameters-not-working-on-version-4711 - this fixed it for me.

    Good luck
    Allan

  • Stephen Davidson 216 posts 392 karma points
    Dec 14, 2012 @ 10:51
    Stephen Davidson
    0

    Thanks for that Allan, I was having a head scratching moment there with this...I'm running 4.11 so none of this worked until I added the parameters.

    Strangely though my form will send a copy of the message to the user if they select the checkbox but no mail is going to my admin users (specified in the MailFrom parameter)

    Any ideas?

    S

  • Stephen Davidson 216 posts 392 karma points
    Dec 14, 2012 @ 10:54
    Stephen Davidson
    0

    Ignore that...it does work its just that the email I was using doesnt! tried it with my hotmail and it was fine.

    S

  • René Andersen 238 posts 684 karma points
    Apr 18, 2013 @ 13:28
    René Andersen
    0

    Hello

    I am using Umbraco version 6.02

    I know that this is an old topic. But I am still struggeling to make this form work. I am testing on a local machine and I have added this to my web.config file.

    <network host="smtp.googlemail.com" port="587" userName="xxx" password="xxx" defaultCredentials="false"/>

    Is it possible to test with a live email acoount on a local machine?

    Everytime I click the submit button it is redirecting to the frontpage and no email is sent.

    Regarding the web.config file is this the place to setup things like "EnableSsl" like below:

    <network host="smtp.googlemail.com" port="587" userName="xxx" password="xxx" defaultCredentials="false" EnableSsl="true"/>

    As you can see I am not so experienced in making webforms. :-)

    Does anybody have a working ASP.net webform which I can download somwhere?

    //René


  • Anders Schmidt 76 posts 207 karma points
    Oct 12, 2013 @ 20:21
    Anders Schmidt
    0

    Hi 

    Use local test try:

      <system.net>
        <mailSettings>
          <smtp deliveryMethod="SpecifiedPickupDirectory" from="admin@local">
            <specifiedPickupDirectory pickupDirectoryLocation="C:\Users\Anders\Documents\My Web Sites\strongminds\App_Data\mail" />
          </smtp>
        </mailSettings>
      </system.net>

    Use your own pickupDirectoryLocation and remember to create the folder: mail

    Great package by the way. Easy to use and read :-)

     

  • 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