Copied to clipboard

Flag this post as spam?

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


  • asad 39 posts 113 karma points
    May 17, 2016 @ 00:24
    asad
    0

    Email not Receiving

    Email not Receiving

    Currently i integrated Formulate form.I am just exploring it.Right now i am not receiving any email.I am using just single field. I am testing it on my local system using visual studio.

  • Biagio Paruolo 1594 posts 1825 karma points c-trib
    May 17, 2016 @ 06:54
    Biagio Paruolo
    0

    Have you configurete email into web.config?

    <system.net>
        <mailSettings>
            <smtp>
                <network host="127.0.0.1" userName="username" password="password" />
            </smtp>
        </mailSettings>
    </system.net>
    
  • asad 39 posts 113 karma points
    May 17, 2016 @ 07:22
    asad
    0

    Hi,

    I did not configured.But after your reply i configured.But still i am not receiving any email.

  • Biagio Paruolo 1594 posts 1825 karma points c-trib
    May 17, 2016 @ 09:55
    Biagio Paruolo
    0

    Have you create the email handler in formulate?

    http://www.formulate.rocks/simple-form

  • asad 39 posts 113 karma points
    May 17, 2016 @ 13:22
    asad
    0

    Yes,I created the handler and followed the mentioned instructions as well.

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    May 17, 2016 @ 16:04
    Nicholas Westby
    0

    Can you send me the files you have stored in ~/App_Data/Formulate/Json (that is where form definitions and handler configurations are stored)? That will help me troubleshoot this.

    Also, are emails being sent from Umbraco otherwise (e.g., when you subscribe to a node and publish it)?

  • asad 39 posts 113 karma points
    May 18, 2016 @ 11:03
    asad
    0

    Hi

    Normally i use smtp setting and use surface controller or .chtml file for sending email.Which work fine for me. Formulate is new package and i thought i need to explore it .I configure the smtp setting as Biagio Paruolo mentioned above.Right now i can not see any attachment option here.Can you tell me how i can send you the files?

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    May 18, 2016 @ 15:26
    Nicholas Westby
    0

    If you were to use the SMTP settings exactly as Biagio recommended, that would not work. You have to enter proper credentials. If emails still aren't sending, I recommend checking the Umbraco log to see if there are email-/SMTP-related errors.

    Can you tell me how i can send you the files?

    Some file sharing services you might try include: Google Drive, Dropbox, Box.com. I personally tend to use Box.com (I have a paid account with them).

  • asad 39 posts 113 karma points
    May 18, 2016 @ 15:38
    asad
    0

    Hi ,

    I configured the smtp setting.Can you share me the email address where i can share you the files.Google drive is a good option i believe .

    I saw the log file and i found the exception below

    System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. e8sm1329640wjm.23 - gsmtp at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response) at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode) at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) at formulate.app.Forms.Handlers.Email.EmailHandler.HandleForm(Form form, IEnumerable1 data, Object configuration) in C:\r\formulate\src\formulate.app\Forms\Handlers\Email\EmailHandler.cs:line 171 at formulate.app.Forms.FormHandler1.HandleForm(Form form, IEnumerable`1 data) in C:\r\formulate\src\formulate.app\Forms\FormHandler.cs:line 132 at formulate.api.Submissions.<>cDisplayClass5_0.6() in C:\r\formulate\src\formulate.api\Submissions.cs:line 112

  • Biagio Paruolo 1594 posts 1825 karma points c-trib
    May 18, 2016 @ 15:42
    Biagio Paruolo
    0

    My code was only for example. Asad need to change server, login and password with your real data.

  • asad 39 posts 113 karma points
    May 18, 2016 @ 15:44
    asad
    0

    Yes i changed it.

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    May 18, 2016 @ 16:22
    Nicholas Westby
    1

    Based on that stack trace, I'd say that your SMTP configuration is incorrect.

    Try configuring it for delivery to the file system by following the instructions here: http://www.formulate.rocks/smtp-configuration

    Ensure that whatever folder you indicate in that configuration exists on your file system. That will deliver emails to your file system as .eml files rather than sending them to actual email inboxes.

    You can then use this tool to view those email files: https://www.encryptomatic.com/viewer/

  • Linda 4 posts 34 karma points
    Oct 17, 2016 @ 22:38
    Linda
    0

    Hi Nicholas,

    After I configured the SMTP in the web.config as your link suggest, I truly got the deliver emails into the file system as .eml files.

    However how can I get them in the actual email inbox?

    Do I need add the following codes in the web.config?

    <mailSettings>
        <smtp from="[email protected]">
            <network host="smtp.ourexchangeserver.dk" userName="[email protected]" password="secret" port="26" />
        </smtp>
     </mailSettings>
    

    Thanks.

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Oct 18, 2016 @ 01:34
    Nicholas Westby
    0

    You would need to sign up for some email provider (Gmail, Amazon SES, etc.) and enter the credentials as indicated by that provider. And you are correct that it would look similar to the configuration you have shown for demonstration purposes. If you have your own exchange server (as your example seems to imply), you could also use that.

  • asad 39 posts 113 karma points
    May 24, 2016 @ 11:13
    asad
    0

    Hi Guys,

    Still unable to track the problem.How i can access this url? Request URL:http://localhost:12948/umbraco/formulate/submissions/submit

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    May 24, 2016 @ 15:04
    Nicholas Westby
    0

    Still unable to track the problem.

    As I mentioned above, your SMTP appears to be misconfigured. You can use this tool to test your SMTP configuration: https://github.com/rhythmagency/rhythm.win-smtp-client (download available here: https://github.com/rhythmagency/rhythm.win-smtp-client/releases)

    How i can access this url? Request URL:http://localhost:12948/umbraco/formulate/submissions/submit

    Not sure what you mean. That looks like the URL Formulate submits data to using HTTP POST requests. It may not even respond to HTTP GET requests (the type of request that is performed when you visit a URL in your browser). I'm also unsure of why you'd want to "access" that URL manually, as it appears Formulate is successfully submitting data to that URL and then the email is failing because you have misconfigured SMTP in the web.config.

Please Sign in or register to post replies

Write your reply to:

Draft