Technical support This forum is closed.
Version 1.x > Technical support > question in e-commerce View modes: 
User avatar
Member
Member
phan - 7/7/2006 4:53:56 PM
   
question in e-commerce
1) I created a Website with e-commerce from cratch . But when I click on button "Order Now", then that error screen appear :
Exception Details: System.Runtime.InteropServices.COMException: The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for sadf@sdf.sdf

Source Error:

Line 600:
Line 601: // Send e-mail message.
Line 602: MailTemplateSender.SendPage( MetadataProvider.GetMetadataPath() + @"\_MailTemplates\OrderConfirmation", ConfigManager.GetStringValue( "COMSalesNotificationFromEmail" ), email, "", ResMan.GetString( "CommerceWizard.EmailOrderConfirmationSubject" ), replacements );
Line 603: }
Line 604:

2)When I go to "continue as anomymous client" , I specify informations (name,mail,....) , ... then I go back to shop . Can you tell me, how to save my own information , when I go back to " continue as anomymous client" ????


User avatar
Guest
admin - 7/10/2006 9:26:20 AM
   
Re: question in e-commerce
Hello,

1) you need to configure your SMTP server correctly. Please see Kentico CMS Developer's Guide -> Installation and Deployment -> SMTP Server Configuration.

2) Unfortunately, the information is not saved until you complete the checkout.

Best Regards,

User avatar
Member
Member
phan - 7/10/2006 10:42:53 AM
   
Re: question in e-commerce
I have configured all that you say, but that error still remain .
I have tried send mail with my follow code :
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Mail;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
System.Web.Mail.MailMessage objEmail = new MailMessage();
objEmail.To = "phan@office.awsystems.biz";
objEmail.From = "phan@office.awsystems.biz";
objEmail.Subject = "Test Email";
objEmail.Body = "Test 1 phat thoi , chu co gi dau ????";
objEmail.Priority = MailPriority.High;
SmtpMail.SmtpServer = "myserver";
try
{
SmtpMail.Send(objEmail);
Response.Write("Your Email has been sent sucessfully - Thank You");
}
catch (Exception exc)
{
Response.Write("Send failure: " + exc.ToString());
}
}
}

it run well . But with follow key in kentico:
<add key="CMSSMTPServer" value="myserver" />
<add key="CMSSendWorkflowEmailsFrom" value=" phan@office.awsystems.biz" />
it doesn't . Did I do not correctly ???

User avatar
Member
Member
phan - 7/10/2006 11:56:54 AM
   
Re: question in e-commerce
Now, it's working , but just when it run from VS.net .
It mean that , in my systems , WebMail doesn't work when I open directly Internet Explorer and run application .
Do you know this bug ???
And thanks Admin for your help.

User avatar
Guest
admin - 7/10/2006 1:52:52 PM
   
Re: question in e-commerce
Hello,

what error do you get now? If you get the original error, it can be caused by the fact that you are using an invalid e-mail address: sadf@sdf.sdf.

Best Regards,