The code seems at first glance to be correct and so does the configuration, but it's unclear what breaks/does not work in your case.
Are you encountering an error while the code executes? Could you debug your code, and make sure it is executed correctly, and if there's an error reply back with a stack trace so we have a lead to follow?
Thanks for the reply.yes i debug my code and it's execute successfully with out any error.
i have write log file also but not write any exception in my log file.
when i set simple smtp configuration then i get "Unable to connect to the remote server" error but with sendgrid i didn't get any error like connection.it execute successfully with sendgrid.
That seems to be a problem with the SMTP server configuration. A few things I can think of are either a firewall being configured to block the port your simple smtp configuration is using or the port being used by some other service.
Make sure the port is free to be used for your e-mail server, or you could try configuring a different port for your SMTP.
Order Confirmation Email not working with ucommerce
i have create one class file for send email
after this i have create configuration file for register method
and also set sendgrid credentials in web.config file
my site hosted in aws server
so any one know how to send email after order completed.
Hello,
The code seems at first glance to be correct and so does the configuration, but it's unclear what breaks/does not work in your case.
Are you encountering an error while the code executes? Could you debug your code, and make sure it is executed correctly, and if there's an error reply back with a stack trace so we have a lead to follow?
Kind regards, David
Hello Devid
Thanks for the reply.yes i debug my code and it's execute successfully with out any error. i have write log file also but not write any exception in my log file.
when i set simple smtp configuration then i get "Unable to connect to the remote server" error but with sendgrid i didn't get any error like connection.it execute successfully with sendgrid.
Thanks.
Hello,
That seems to be a problem with the SMTP server configuration. A few things I can think of are either a firewall being configured to block the port your simple smtp configuration is using or the port being used by some other service.
Make sure the port is free to be used for your e-mail server, or you could try configuring a different port for your SMTP.
Regards, David
Thanks David, i will try to change smtp configuration and check what happen after change configuration.
Thanks.
is working on a reply...