London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Mail sending error on episerver 7.5

Vote:
0

Is there a particular format to provide smtp server details on web.config. I need to set my local smtp to my epi sebsite. I'm always getting an error while sending an email from XForm.

I have provided my smtp settings in web.config as follows:

<system.net>
<mailSettings>
<smtp from="EMAIL_Address">
<network host="serverName" port="25" userName="" password=""/>
</smtp>
</mailSettings>
</system.net>

#82415
Mar 12, 2014 7:26
Vote:
0

Does it work if you configure it for PickupDirectory instead?

#82416
Mar 12, 2014 7:31
Vote:
0

Where do I configure this PickupDirectory ? Sorry, I'm new to EPiServer development.

#82418
Mar 12, 2014 7:53
Vote:
0

No worries. It's also in your web.config, I believe something like below. It will create files from your emails and put them in the directory instead of sending them.

<system.net>
  <mailSettings>
    <smtpdeliveryMethod="SpecifiedPickupDirectory"from="no-reply@example.com">
      <specifiedPickupDirectorypickupDirectoryLocation="C:\path\to\pickupdirectory" />
    </smtp>
  </mailSettings>
</system.net>
#82422
Mar 12, 2014 8:38
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.