I'm testing Newsletter studio for a customer and bought a license.
But if I want to send a test mail or the real mail it keeps saying that something went wrong. the following error is displayed: Error: Could not send. An error occurred. Please try again or check the Umbraco log.
The log says: Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: 0 | Comment: NewlsetterStudio:SendTestEmail. Could not send since there is no SMTP configured. Neither in /config/newsletterStudio.config-file or /web.config. Please add an SMTP-server.
In my web.config and newsletterstudio.config SMTP servers(multiple) are configured. I've also tested with no SMTP in newsletterstudio.config and only in the web.config. nothing works.
Just looking at the code and this catch-statment could probably catch more than just SMTP-errors. Are all the email addresses valid? Can you send using something like this? Does that work?
MailMessage message = new MailMessage(newsletter.EmailFrom, sendTestEmailTo) { Subject = newsletter.EmailSubject, Body = renderEngine.RenderPreview(), IsBodyHtml = true }; var smtpClient = new SmtpClient(); smtpClient.Send(message);
Are you getting the same error on both "real" send outs and on test emails?
Could be permissions... Did you see any error during the install?
Just if anyone else have the same issue with Newsletter Studio v2.1.0 here's the solution:
It's related to the "Force sender defaults"-setting. First, with the "Force sender defaults"-setting disabled. Start by creating a new newsletter and save that with empty fields for sender name and sender email and then after this change the "Force sender defaults"-setting back to be active. This will hide the textboxes from the UI but the underlying data will still be two empty fields.
BUT if you create a new newsletter the default sender email and sender name will be copied over to the new newsletter.
This issue will only occur on emails created before you change the "Force sender defaults"-setting.
I will post this to our development backlog and try to add a validation-step that replaces the sender name/email before a send out is started.
Thanks for responding so quickly. and thanks for adjusting my settings.
If I understand you correctly, I can add new newsletter now safely without getting the error?
Just want to provide feedback that I too have came across the same issue on a new v7 installation with NS2.1, trying to make sense of it till I find this thread.
Send error umbraco 7
hi Markus,
I'm testing Newsletter studio for a customer and bought a license. But if I want to send a test mail or the real mail it keeps saying that something went wrong. the following error is displayed: Error: Could not send. An error occurred. Please try again or check the Umbraco log.
The log says: Redirected log call (please use Umbraco.Core.Logging.LogHelper instead of umbraco.BusinessLogic.Log) | Type: Error | User: 0 | NodeId: 0 | Comment: NewlsetterStudio:SendTestEmail. Could not send since there is no SMTP configured. Neither in /config/newsletterStudio.config-file or /web.config. Please add an SMTP-server.
In my web.config and newsletterstudio.config SMTP servers(multiple) are configured. I've also tested with no SMTP in newsletterstudio.config and only in the web.config. nothing works.
does this have something to do with permissions?
hope you can help me out.
thanks in advance
kind regards, Jeroen
Hi!
Just looking at the code and this catch-statment could probably catch more than just SMTP-errors. Are all the email addresses valid? Can you send using something like this? Does that work?
MailMessage message = new MailMessage(newsletter.EmailFrom, sendTestEmailTo)
{
Subject = newsletter.EmailSubject,
Body = renderEngine.RenderPreview(),
IsBodyHtml = true
};
var smtpClient = new SmtpClient();
smtpClient.Send(message);
Are you getting the same error on both "real" send outs and on test emails?
Could be permissions... Did you see any error during the install?
?
Hi Markus,
Thanks for responding quickly. Other mail function, like the example you provided, are working correctly.
I get the error both while sending test and while sending out the real mail. During install I didn't have any errors.
any suggestions? Maybe it is an idea to mail eachother about this, okay?
Hi!
Great! Send me an email: markus [at sign goes here] enkelmedia.se
I have some other ideas as well.
/ m
I've sent you an email from Helpdesk Business Media.
Just if anyone else have the same issue with Newsletter Studio v2.1.0 here's the solution:
It's related to the "Force sender defaults"-setting. First, with the "Force sender defaults"-setting disabled. Start by creating a new newsletter and save that with empty fields for sender name and sender email and then after this change the "Force sender defaults"-setting back to be active. This will hide the textboxes from the UI but the underlying data will still be two empty fields.
BUT if you create a new newsletter the default sender email and sender name will be copied over to the new newsletter.
This issue will only occur on emails created before you change the "Force sender defaults"-setting.
I will post this to our development backlog and try to add a validation-step that replaces the sender name/email before a send out is started.
Thanks for responding so quickly. and thanks for adjusting my settings. If I understand you correctly, I can add new newsletter now safely without getting the error?
already got it. thanks
" I can add new newsletter now safely without getting the error?"
Yes!
The problem was that you added the first newsletter, saved that witout a sender and then used the "force sender default"-settings.
cheers!
/ m
Just want to provide feedback that I too have came across the same issue on a new v7 installation with NS2.1, trying to make sense of it till I find this thread.
Unchecking Force sender did the trick.
Hi Keilo!
Thank you for sharing this. We have this in the backlog and will address the issues in upcomming releases.
is working on a reply...