Copied to clipboard

Flag this post as spam?

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


  • Naveed Ali 161 posts 426 karma points
    Aug 04, 2019 @ 13:52
    Naveed Ali
    0

    SMTP settings

    I have added an umbraco contact form but it will not send an email.

    I have done some googlig and people mention settings up the smtp settings

    where or how do i do this??? i do not find any such default mail settings in the web config file

    can somebody please point me to the file path and file i am looking for to make these changes in please

    Thanks

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Aug 04, 2019 @ 15:56
    Chriztian Steinmeier
    0

    Hi Naveed,

    Have a look here: https://our.umbraco.com/documentation/Reference/Config/webconfig/#smtp-settings

    You may need to add the section yourself.

    /Chriztian

  • Naveed Ali 161 posts 426 karma points
    Aug 04, 2019 @ 19:21
    Naveed Ali
    0

    yes i don't have that section anywhere..will add it myself and give that a go.

  • Naveed Ali 161 posts 426 karma points
    Aug 06, 2019 @ 19:19
    Naveed Ali
    0

    I have set an smtp using "MailJet"

    I am now getting this error

        System.FormatException: The specified string is not in the form required for an e-mail address.
       at System.Net.Mail.MailAddressParser.ReadCfwsAndThrowIfIncomplete(String data, Int32 index)
       at System.Net.Mail.MailAddressParser.ParseDomain(String data, Int32& index)
       at System.Net.Mail.MailAddressParser.ParseAddress(String data, Boolean expectMultipleAddresses, Int32& index)
       at System.Net.Mail.MailAddressParser.ParseAddress(String data)
       at System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding)
       at System.Net.Mail.MailMessage..ctor()
       at Umbraco.Forms.Core.Providers.WorkflowTypes.SendRazorEmail.Execute(Record record, RecordEventArgs e)
    

    an ideas?? could it be due to me not having a network host ip address?? I presumed this should be the smtp servers IP address but on MailJet set up they do not provide any ip address only a host

    This is my web.config mail set up:

      <system.net>
       <mailSettings>
            <smtp from="in-v3.mailjet.com">
                <network host="127.0.0.1(standard umbraco one??)" port="587" userName="have taken out" password="have taken out" />
            </smtp>
        </mailSettings>
      </system.net>
    

    I think i am missing a setting here in my web config.. any ideas please

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Aug 06, 2019 @ 19:33
    Chriztian Steinmeier
    1

    Hi Naveed,

    The from attribute should be an email address. The host attribute should hold the SMTP server's hostname (or IP). Looks like you've accidentally put the servername in the from attribute?

    /Chriztian

  • Naveed Ali 161 posts 426 karma points
    Aug 06, 2019 @ 19:45
    Naveed Ali
    0

    ah yes facepalm stupid me

    I am not getting the error no more now..but can see no email is being sent.

    This is proving more difficult then I thought

    is there any thing else I may need to set up I have it like this now:

         <system.net>
       <mailSettings>
            <smtp from= "***@outlook.com">
                <network host="in-v3.mailjet.com" port="587" userName="***" password="***" />
            </smtp>
        </mailSettings>
      </system.net>
    
  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Aug 06, 2019 @ 19:49
    Chriztian Steinmeier
    101

    Hi again - we've all been there (facepalming our way through :-)

    Actually, there could be one last setting - in the umbracoSettings.config file there's a setting for notifications (which is also used by UmbracoForms if no sender mail is configured):

    https://our.umbraco.com/documentation/Reference/Config/umbracoSettings/#notifications

    Otherwise, I'd start double-checking the hostname + port values. But you've probably already triple-checked those, so... :)

    /Chriztian

  • Naveed Ali 161 posts 426 karma points
    Aug 06, 2019 @ 19:53
    Naveed Ali
    1

    legend..that was it ..Thanks a lot for the help..finally got there

  • 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