Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Mail sending error on episerver 7.5

Vote:
 

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:
 

Does it work if you configure it for PickupDirectory instead?

#82416
Mar 12, 2014 7:31
Vote:
 

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

#82418
Mar 12, 2014 7:53
Vote:
 

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.