Skip to main content

Web Forms for Marketers: Send Email

To have the save action for your form actually send email, you will need to change one of the settings, otherwise you will receive this error whenever submitting the form:

We experience a technical difficulty while processing your request. Your data may not have been correctly saved.

Also in your log (/data/logs/newest log file) you will see this error after the form has been submitted:

Exception: System.Net.WebException
Message: The remote name could not be resolved: 'example.host'
Source: System
at System.Net.ServicePoint.GetConnection(PooledStream PooledStream, Object owner, Boolean async, IPAddress& address, Socket& abortSocket, Socket& abortSocket6, Int32 timeout)
at System.Net.PooledStream.Activate(Object owningObject, Boolean async, Int32 timeout, GeneralAsyncDelegate asyncCallback)
at System.Net.PooledStream.Activate(Object owningObject, GeneralAsyncDelegate asyncCallback)
at System.Net.ConnectionPool.GetConnection(Object owningObject, GeneralAsyncDelegate asyncCallback, Int32 creationTimeout)
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)
WARN Web Forms for Marketers: an unhandled exception: Failure sending mail. has occured while trying to execute an action.

In your content tree, browse down to: /sitecore/system/Modules/Web Forms for Marketers/Settings/Actions/Save Actions/Send Mail


Under that item there will be a submit section with parameters:


wffmpara


Just replace example.host with your SMTP host information for the server, and form@example.host with the address you want to send mail from – save, and republish!


That should correct the error above and, barring any other issues, hopefully the form will be working as intended!

Comments

  1. There is the situation happens when you need one place for configuring SMTP host name for all web forms in your solution. You can do it in the following way: just remove tags from those forms you need to have the same configuration and set correct SMTP host name in web.config ("MailServer" setting) and that's it :)

    ReplyDelete
  2. did you try the gmail smtp ? I'm facing an issue with it , when I opened the log I found this error
    "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 "
    Do you have any idea how to solve it?

    ReplyDelete
  3. We were facing a similar issue with Gmail SMTP (security)


    We ended up having to go to another SMTP for now

    http://stackoverflow.com/questions/3724506/sending-sitecore-emails-through-gmail

    ReplyDelete
  4. You're a life saver! :)

    ReplyDelete
  5. Amy, need help...
    Can we conditionally change field validation (optional to required and vice versa) in web form for marketers?
    I need to change validation of a field depending on a droplist field selected value.

    Thanks in advance.
    Vikrant

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Hey Amy I am getting the same error after replacing host and from tag? Then what is the solution for this?

    ReplyDelete
  8. Domain hosting wiki: for bloggers, business owners and webmasters looking for starting, maintaining and knowing more about domains and hosting
    hosting

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. One tip: always verify email address of all entries in your email list. That way your email marketing campaigns will use fewer resources and will be more effective.

    ReplyDelete
  11. Stunning, this is truly intriguing perusing. I am happy I discovered this and got the chance to peruse it. Extraordinary occupation on this substance. I like it.
    online marketing services

    ReplyDelete
  12. Wow this was amazing. I was just about to look for some expert and educative content like this, I am grateful that I have frequented here! visit website

    ReplyDelete
  13. This content is written very well. Your use of formatting when making your points makes your observations very clear and easy to understand. Thank you. privacidadenlared

    ReplyDelete
  14. It is imperative that we read blog post very carefully. I am already done it and find that this post is really amazing. vpn for expats

    ReplyDelete
  15. wow this good but ,I like your post and good pics may be any peoples not like because defrent mind all poeple , https://www.lemigliorivpn.com

    ReplyDelete
  16. The CSOne is web-based maintenance management software designed for maintenance and repair service providers. It is specifically designed to fulfill the requirements for these services and successfully improved productivity of thousands of users around the world https://vpnveteran.com/

    ReplyDelete
  17. I would recommend my profile is important to me, I invite you to discuss this topic.
    mason soiza

    ReplyDelete
  18. Much appreciated such a great amount for this data. I need to tell you I agree on a few of the focuses you make here and others might require some further survey, however I can see your perspective. getmoreprivacy

    ReplyDelete
  19. I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. allertaprivacy.it

    ReplyDelete
  20. Wanna suggest one more app for email verification – https://mailcheck.co
    They more relay to social profiles connected to mail, less on direct SMTP checks. It allows to get more info and determine is email owner active in gravatar, Gmail, etc.

    ReplyDelete
  21. That's just amazing, personally I also use https://mailcheck.co
    They more relay to social profiles connected to mail, less on direct SMTP checks. It allows to get more info and determine is email owner active in gravatar, Gmail, etc.

    ReplyDelete
  22. Just saying thanks will not just be sufficient, for the fantasti c lucidity in your writing. I will instantly grab your rss feed to stay informed of any updates. 토토안전사이트

    ReplyDelete
  23. You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. 토토사이트

    ReplyDelete
  24. Thank you so much for sharing all this wonderful info with the how-to’s!!!! It is so appreciated 토토사이트

    ReplyDelete
  25. Your blog has the same post as another author but i like your better.~:’*: 안전놀이터

    ReplyDelete
  26. thank you for your interesting infomation. 메이저놀이터

    ReplyDelete
  27. Our prior goal is to surpass all the expectations of our client by providing outstanding customer support service, greater value and increased flexibility which in results optimize system functionality and improve operation efficiency. 안전놀이터추천

    ReplyDelete
  28. This article gives the light in which we can watch the truth. This is exceptionally pleasant one and gives indepth data. Much obliged for this decent article. 먹튀폴리스

    ReplyDelete
  29. Say, you got a nice article post. Will read on... 먹튀폴리스

    ReplyDelete
  30. Great article Lot's of information to Read...Great buddy Keep Posting and update to People..Thanks 먹튀폴리스

    ReplyDelete
  31. Cảm ơn bạn đã giúp mọi người có được thông tin họ cần. Những thứ tuyệt vời như thường lệ. Kịp các công việc tuyệt vời!!! 안전놀이터

    ReplyDelete
  32. Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place 사설토토

    ReplyDelete
  33. The way you have written your post is so nice. Very professional . Keep writing this amazing post Click the link below 토토사이트

    ReplyDelete
  34. given person wants to succeed in business and get some handsome returns at all times. Due to this fact, business people will do anything just as this may help you.
    보증업체

    ReplyDelete
  35. but I believe it will help a lot in my country Please always write good comments 토토커뮤니티

    ReplyDelete
  36. Thank you for sharing your thoughts. I really appreciate your The Design looks very good 먹튀검증업체

    ReplyDelete
  37. but I believe it will help a lot in my country 안전놀이터 Thank you for your always good posts

    ReplyDelete

Post a Comment

Popular posts from this blog

Using the Source Property

For each of the properties in your template you can set a source for it, this isn’t always used but can improve user experience drastically when done throughout a site. The source field comes in to play whenever you are using any of the following fields: Droplink, Droplist, Droptree, File, Grouped Droplink, Grouped Droplist, Image, Multilist, Treelist, Rich text field and a number of others. There are various ways of setting these up to achieve different results – but in general you are using the source to limit the set of items that can be used, and this requirement can also help you determine what kind of field to use. For example, if you have a Set of items all split down into sub folders and want the content editor to make use of the tree, you could use a TreeList or Drop Tree, but if you just want a set of items without the opportunity to see where those items are – multilists or droplinks are the way to go. For Images you’re generally just specifying where to look for and put th

Getting More from the RTE: Snippets and Styling

Developers often push aside the rich text editor because we would rather of use separate components with data sources. However, sometimes we need to rely on the rich text editor to empower the content editor to edit more directly or to reduce complexity on the page. We can use snippets to reduce complexity or give the editor more options by inserting some predefined HTML into the rich text editor. In this example, we will learn how to get more out of the rich text editor by changing which editor we use, adding new snippets, and styling the added content. First we need to switch from the default basic rich text editor to either one of the other existing editors or to a custom editor. The Rich Text Default view - just the basics: We can change the default editor on a field-by-field basis. Update the Source Property for the Rich Text field so that it references the specific rich text editor we want to use in the core database: On your template, enter the item path for the