More in this section

Forums / Developing with Sitefinity / Send email using NewsletterManager.SendEmail (IE 7 not working)

Send email using NewsletterManager.SendEmail (IE 7 not working)

10 posts, 0 answered
  1. Duncan Evans
    Duncan Evans avatar
    122 posts
    Registered:
    07 Jul 2009
    04 Aug 2009
    Link to this post
    I am sending an email using the NewsletterManager.SendEmail class... Work 100% in Firefox. But IE7 always returns FALSE? When i step into the code the NewsletterManager.SendEmail method always returns a false as i run it in IE7... Firefox returns True, and works as expected...

    Anyone have any idea what the deal is here? I would love to say "screw the IE users" but that 70+% of my visitors unfortunately.

    Duncan
  2. Duncan Evans
    Duncan Evans avatar
    122 posts
    Registered:
    07 Jul 2009
    06 Aug 2009
    Link to this post
    Anyone?
  3. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    06 Aug 2009
    Link to this post
    Hello Duncan,

    This looks like a strange issue - the code is running on the server side, so something should be happening on the client side before the code execution.

    Can you please provide us with your code? We will inspect it here and come back to you as soon as possible. 

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  4. Duncan Evans
    Duncan Evans avatar
    122 posts
    Registered:
    07 Jul 2009
    06 Aug 2009
    Link to this post
    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ContactForm.ascx.cs" Inherits="UserControls_ContactForm" %> 
    <telerik:radformdecorator id="RadFormDecorator1" runat="server" decorationzoneid="FormZone" 
        skin="Web20"></telerik:radformdecorator> 
    <div id="FormZone"
        <table border="0" cellspacing="0" cellpadding="0" class="ContactTable"
            <tr> 
                <td class="Top"
                </td> 
            </tr> 
            <tr> 
                <td class="Content"
                    <h2> 
                        Please fill out the form below:</h2> 
                    <table border="0" cellspacing="0" cellpadding="0"
                        <tr> 
                            <td class="Pad"
                                <telerik:radtextbox id="txtFirstName" runat="server" emptymessage="First Name" skin="Web20" 
                                    width="200px" validationgroup="valContactForm"></telerik:radtextbox> 
                                <telerik:radtextbox id="txtLastName" runat="server" emptymessage="Last Name" skin="Web20" 
                                    width="200px" validationgroup="valContactForm"></telerik:radtextbox> 
                                <asp:RequiredFieldValidator ID="valreqFirstName" runat="server" Display="Dynamic" 
                                    ControlToValidate="txtFirstName" ValidationGroup="valContactForm" /><asp:RequiredFieldValidator 
                                        ID="valreqLastName" runat="server" Display="Dynamic" ControlToValidate="txtLastName" 
                                        ValidationGroup="valContactForm" /> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td class="Pad"
                                <telerik:radcombobox id="cboTopics" runat="server" emptymessage="Select topic of interest" 
                                    skin="Web20" width="414px" tooltip="Select a topic or reason for contacting us so that we can make sure your message is routed to the correct department." 
                                    validationgroup="valContactForm"><Items> 
    <telerik:RadComboBoxItem runat="server" Visible="False"></telerik:RadComboBoxItem> 
    <telerik:RadComboBoxItem runat="server" Text="I'm interested in getting treatment at The Recovery Place." Value="Interested in getting treatment at The Recovery Place."></telerik:RadComboBoxItem> 
    <telerik:RadComboBoxItem runat="server" Text="I have a family member that needs help." Value="Has a family member that needs help."></telerik:RadComboBoxItem> 
    <telerik:RadComboBoxItem runat="server" Text="I'm a professional interested in placing a client." Value="Interested in placing a client."></telerik:RadComboBoxItem> 
    <telerik:RadComboBoxItem runat="server" Text="I would like to contact The Recovery Place webmaster." Value="Would like to contact The Recovery Place webmaster."></telerik:RadComboBoxItem> 
    <telerik:RadComboBoxItem runat="server" Text="Other (Please Specify In Comments Box)" Value="None specified."></telerik:RadComboBoxItem> 
    </Items> 
    </telerik:radcombobox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td class="Pad"
                                <telerik:radcombobox id="cboContactMethod" runat="server" emptymessage="How would you like us to contact you?" 
                                    skin="Web20" width="414px" tooltip="Select the preferred way you would like us to reply to you. Our staff will contact you right away if you wish." 
                                    validationgroup="valContactForm"><Items> 
    <telerik:RadComboBoxItem runat="server" Visible="False"></telerik:RadComboBoxItem> 
    <telerik:RadComboBoxItem runat="server" Text="Please contact me by phone" Value="By phone."></telerik:RadComboBoxItem> 
    <telerik:RadComboBoxItem runat="server" Text="Please contact me by email" Value="By email."></telerik:RadComboBoxItem> 
    <telerik:RadComboBoxItem runat="server" Text="Please contact me as soon as possible!" Value="As soon as possible!"></telerik:RadComboBoxItem> 
    <telerik:RadComboBoxItem runat="server" Text="Please do not respond to me at all" Value="Not at all."></telerik:RadComboBoxItem> 
    </Items> 
    </telerik:radcombobox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td class="Pad"
                                <telerik:radtextbox id="txtEmail" runat="server" emptymessage="Email Address" skin="Web20" 
                                    width="200px" tooltip="We require that you enter a valid email address here." 
                                    validationgroup="valContactForm"></telerik:radtextbox> 
                                <asp:RegularExpressionValidator ID="valexpEmail" runat="server" Display="Dynamic" 
                                    ControlToValidate="txtEmail" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                    ValidationGroup="valContactForm" /><asp:RequiredFieldValidator ID="valreqEmail" runat="server" 
                                        Display="Dynamic" ControlToValidate="txtEmail" ValidationGroup="valContactForm" /> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td class="Pad"
                                <telerik:radmaskedtextbox id="txtPhone" runat="server" emptymessage="Phone Number" 
                                    mask="(###) ###-####" skin="Web20" width="200px" displaypromptchar="0" tooltip="Enter your phone number if you would like us to contact you via phone. We do not require a phone number!" 
                                    validationgroup="valContactForm"></telerik:radmaskedtextbox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td class="Pad"
                                <telerik:radeditor id="edtComments" runat="server" editmodes="Design" height="300px" 
                                    skin="Web20" width="640px" stripformattingonpaste="All" stripformattingoptions="MSWord, MSWordRemoveAll, Css, Font, Span, AllExceptNewLines" 
                                    enableresize="False"><Content> 
    </Content> 
    <CssFiles> 
    <telerik:EditorCssFile Value="~/Files/RadEditorContentArea.css"></telerik:EditorCssFile> 
    </CssFiles> 
    <Tools> 
    <telerik:EditorToolGroup><telerik:EditorTool Name="Cut"></telerik:EditorTool> 
    <telerik:EditorTool Name="Copy"></telerik:EditorTool> 
    <telerik:EditorTool Name="Paste"></telerik:EditorTool> 
    <telerik:EditorTool Name="Bold"></telerik:EditorTool> 
    <telerik:EditorTool Name="Italic"></telerik:EditorTool> 
    </telerik:EditorToolGroup> 
    </Tools> 
    </telerik:radeditor> 
                                <asp:RequiredFieldValidator ID="valreqComments" runat="server" Display="Dynamic" 
                                    ControlToValidate="edtComments" ValidationGroup="valContactForm" /> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td class="Pad"
                                <asp:Button ID="btnSend" runat="server" Text="Send Your Message!" OnClick="btnSend_Click" 
                                    ValidationGroup="valContactForm" /> 
                            </td> 
                        </tr> 
                    </table> 
                </td> 
            </tr> 
            <tr> 
                <td class="Bottom"
                </td> 
            </tr> 
        </table> 
    </div> 
    <telerik:radtooltipmanager id="RadToolTipManager1" runat="server" skin="Web20" animation="Resize" 
        autoclosedelay="6000" autotooltipify="True" offsety="-3" position="BottomRight" 
        relativeto="Element" tooltipzoneid="FormZone" width="200px"></telerik:radtooltipmanager> 
     

    using System; 
    using System.Data; 
    using System.Configuration; 
    using System.Collections; 
    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.Text; 
     
    using Telerik.Notifications.Newsletters; 
    using Telerik.Newsletters; 
    using System.ComponentModel; 
    using Telerik.Web.UI; 
    using Telerik.Cms.Web.UI; 
     
    using TRPLibraries.Utilities; 
     
    public partial class UserControls_ContactForm : System.Web.UI.UserControl 
        #region Control Properties 
     
        [Category("Settings"), WebEditor("Telerik.Notifications.Newsletters.WebControl.GroupSelectionList, Telerik.Notifications"), TypeConverter("Telerik.Framework.Utilities.GuidArrayConverter, Telerik.Framework")] 
        public Guid[] SubscriberGroups 
        { 
            get 
            { 
                object obj = this.ViewState["SubscriberGroups"]; 
                if (obj != null
                { 
                    return (Guid[])obj; 
                } 
     
                return null
            } 
            set 
            { 
                this.ViewState["SubscriberGroups"] = value; 
            } 
        } 
     
        [Category("Settings"), Description(""), WebEditor("Telerik.Cms.Web.UI.CmsUrlWebEditor, Telerik.Cms")] 
        public virtual string MessageSendSuccessfulPage 
        { 
            get 
            { 
                object obj = this.ViewState["SendSuccessfulPage"]; 
                if (obj != null
                { 
                    return Convert.ToString(obj); 
                } 
                return "~/Information/ContactDetails/ThankYou.aspx"
            } 
            set 
            { 
                this.ViewState["SendSuccessfulPage"] = value; 
            } 
        } 
     
        [Category("Settings"), Description(""), WebEditor("Telerik.Cms.Web.UI.CmsUrlWebEditor, Telerik.Cms")] 
        public virtual string MessageSendUnsuccessfulPage 
        { 
            get 
            { 
                object obj = this.ViewState["MessageSendUnsuccessfulPage"]; 
                if (obj != null
                { 
                    return Convert.ToString(obj); 
                } 
                return "~/Information/ContactDetails/Sorry.aspx"
            } 
            set 
            { 
                this.ViewState["MessageSendUnsuccessfulPage"] = value; 
            } 
        } 
     
        [Category("Settings"), Description("")] 
        public virtual string MailTo 
        { 
            get 
            { 
                object obj = this.ViewState["MailTo"]; 
                if (obj != null
                { 
                    return Convert.ToString(obj); 
                } 
                return "duncan@therecoveryplace.net"
            } 
            set 
            { 
                this.ViewState["MailTo"] = value; 
            } 
        } 
     
        [Category("Settings"), Description("")] 
        public virtual string MailFrom 
        { 
            get 
            { 
                object obj = this.ViewState["MailFrom"]; 
                if (obj != null
                { 
                    return Convert.ToString(obj); 
                } 
                return "webmaster@therecoveryplace.net"
            } 
            set 
            { 
                this.ViewState["MailFrom"] = value; 
            } 
        } 
     
        [Category("Settings"), Description("")] 
        public virtual string MailSubject 
        { 
            get 
            { 
                object obj = this.ViewState["MailSubject"]; 
                if (obj != null
                { 
                    return Convert.ToString(obj); 
                } 
                return "Website Lead (High Priority)"
            } 
            set 
            { 
                this.ViewState["MailSubject"] = value; 
            } 
        } 
     
        [Category("Settings"), Description("")] 
        public virtual bool MailIsHighPriority 
        { 
            get 
            { 
                object obj = this.ViewState["MailIsHighPriority"]; 
                bool value = false
     
                if (obj != null
                { 
                    if (!Boolean.TryParse(Convert.ToString(obj), out value)) 
                    { 
                        value = false
                    } 
     
                    return value; 
                } 
     
                return value; 
            } 
            set 
            { 
                this.ViewState["MailIsHighPriority"] = value; 
            } 
        } 
        #endregion 
     
        protected void Page_Load(object sender, EventArgs e) 
        { 
     
        } 
     
        protected void btnSend_Click(object sender, EventArgs e) 
        { 
            SendMessage(); 
        } 
     
        private void SendMessage() 
        { 
            //ADD SENDER TO NEWSLETTER SUBSCRIBERS 
            try 
            { 
                NewsletterManager newsletterManager = new NewsletterManager(); 
                newsletterManager.AddSubscriber(txtEmail.Text, txtFirstName.Text, txtLastName.Text, SubscriberGroups); 
            } 
            catch (Exception ex) 
            { 
            } 
     
            //BUILD BODY 
            string MailBody = ""
            try 
            { 
                MailBody = BuildEmailBody(txtFirstName.Text, txtLastName.Text, cboTopics.SelectedValue, cboContactMethod.SelectedValue, txtEmail.Text, txtPhone.TextWithLiterals, edtComments.Content); 
            } 
            catch (Exception e) 
            { 
                return
            } 
     
            //GET SENDER LIST 
            string SenderName = txtFirstName.Text + " " + txtLastName.Text; 
            string[] MailToList = null
            try 
            { 
                MailToList = MailTo.Split(";".ToCharArray()); 
            } 
            catch (Exception ex) 
            { 
                MailToList = new string[] { "duncan@therecoveryplace.net" }; 
            } 
     
            //SEND MESSAGE 
     
            bool MailSent = false
     
            //try 
            //{ 
                //TRPLibraries.Utilities.MailUtil SMTPMail = new TRPLibraries.Utilities.MailUtil(); 
                //SMTPMail.SendMail(MailToList, MailBody, MailSubject, SenderName, MailFrom, MailIsHighPriority); 
                MailSent = Telerik.Notifications.Newsletters.NewsletterManager.SendEmail(MailToList, MailBody, MailSubject, SenderName, MailFrom); 
     
                if (MailSent) 
                { 
                    Response.Redirect(MessageSendUnsuccessfulPage, true); 
                } 
                else 
                { 
                    Response.Redirect(MessageSendSuccessfulPage); 
                } 
            //} 
            //catch (Exception exc) 
            //{ 
            //    Response.Redirect(MessageSendUnsuccessfulPage, true); 
            //    return; 
            //} 
     
            //Response.Redirect(MessageSendSuccessfulPage); 
        } 
     
        public string BuildEmailBody(string FirstName, string LastName, string Reason, string RespondPreference, string Email, string Phone, string Message) 
        { 
            StringBuilder HtmlBody = new StringBuilder("<html><head><title></title></head><body style=\"font-family:Arial, Helvetica, sans-serif; font-size:12px; width:600px\">"); 
            HtmlBody.AppendFormat("<p><strong>From:</strong> {0} {1} </p>", FirstName, LastName); 
            HtmlBody.AppendFormat("<p><strong>Reason:</strong> {0}</p>", Reason); 
            HtmlBody.AppendFormat("<p><strong>Respond:</strong> {0}</p>", RespondPreference); 
            HtmlBody.AppendFormat("<p><strong>Email Address:</strong> <a href=\"mailto:{0}\">{1}</a> </p>", Email, Email); 
            HtmlBody.AppendFormat("<p><strong>Phone Number:</strong> {0} </p>", Phone); 
            HtmlBody.AppendFormat("<p><strong>Message: </strong></p><hr />{0}<hr /></body></html>", Message); 
     
            return HtmlBody.ToString(); 
        } 
     

    I can use my own SMTP mail class without issue so this problem is not web or mail server related. And i have tested this over and over, only IE returns a false... Firefox works as expected...

    Duncan
  5. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    11 Aug 2009
    Link to this post
    Hello Duncan,

    I am having some difficulties with the user control. 
    First, the namespace TRPLibraries.Utilities is not present, so even if I run the code, I am not sure that I will find the issue. The these lines:

     NewsletterManager newsletterManager = new NewsletterManager(); 
     newsletterManager.AddSubscriber(txtEmail.Text, txtFirstName.Text, txtLastName.Text, SubscriberGroups); 

    will not work as expected, because the NewsletterManager class is not supporting such initialization and the AddSubscriber method. You can try to use the DataManager class instead. 

    Finally, the reason why SendEmail() could return false is the following: 
    • Empty SMTP section in the web.config file, or in the Newsletter module
    • An error in the mailing proxy and the web services. You can check if IE can request the web service through the address bar.
    Since the mailing service is using the .Net classes for sending e-mails, you could try to use them as well and check if the mails will be sent. 

    By the way, do you receive the mails, even if you get False result?

    Regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  6. Duncan Evans
    Duncan Evans avatar
    122 posts
    Registered:
    07 Jul 2009
    11 Aug 2009
    Link to this post
    using System;  
    using System.Data;  
    using System.Configuration;  
    using System.Collections;  
    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.Text;  
      
    using Telerik.Notifications.Newsletters;  
    using Telerik.Newsletters;  
    using System.ComponentModel;  
    using Telerik.Web.UI;  
    using Telerik.Cms.Web.UI;  
      
    public partial class UserControls_ContactForm : System.Web.UI.UserControl  
    {  
        #region Control Properties  
      
        [Category("Settings"), WebEditor("Telerik.Notifications.Newsletters.WebControl.GroupSelectionList, Telerik.Notifications"), TypeConverter("Telerik.Framework.Utilities.GuidArrayConverter, Telerik.Framework")]  
        public Guid[] SubscriberGroups  
        {  
            get  
            {  
                object obj = this.ViewState["SubscriberGroups"];  
                if (obj != null)  
                {  
                    return (Guid[])obj;  
                }  
      
                return null;  
            }  
            set  
            {  
                this.ViewState["SubscriberGroups"] = value;  
            }  
        }  
      
        [Category("Settings"), Description(""), WebEditor("Telerik.Cms.Web.UI.CmsUrlWebEditor, Telerik.Cms")]  
        public virtual string MessageSendSuccessfulPage  
        {  
            get  
            {  
                object obj = this.ViewState["SendSuccessfulPage"];  
                if (obj != null)  
                {  
                    return Convert.ToString(obj);  
                }  
                return "~/Information/ContactDetails/ThankYou.aspx";  
            }  
            set  
            {  
                this.ViewState["SendSuccessfulPage"] = value;  
            }  
        }  
      
        [Category("Settings"), Description(""), WebEditor("Telerik.Cms.Web.UI.CmsUrlWebEditor, Telerik.Cms")]  
        public virtual string MessageSendUnsuccessfulPage  
        {  
            get  
            {  
                object obj = this.ViewState["MessageSendUnsuccessfulPage"];  
                if (obj != null)  
                {  
                    return Convert.ToString(obj);  
                }  
                return "~/Information/ContactDetails/Sorry.aspx";  
            }  
            set  
            {  
                this.ViewState["MessageSendUnsuccessfulPage"] = value;  
            }  
        }  
      
        [Category("Settings"), Description("")]  
        public virtual string MailTo  
        {  
            get  
            {  
                object obj = this.ViewState["MailTo"];  
                if (obj != null)  
                {  
                    return Convert.ToString(obj);  
                }  
                return "duncan@therecoveryplace.net";  
            }  
            set  
            {  
                this.ViewState["MailTo"] = value;  
            }  
        }  
      
        [Category("Settings"), Description("")]  
        public virtual string MailFrom  
        {  
            get  
            {  
                object obj = this.ViewState["MailFrom"];  
                if (obj != null)  
                {  
                    return Convert.ToString(obj);  
                }  
                return "webmaster@therecoveryplace.net";  
            }  
            set  
            {  
                this.ViewState["MailFrom"] = value;  
            }  
        }  
      
        [Category("Settings"), Description("")]  
        public virtual string MailSubject  
        {  
            get  
            {  
                object obj = this.ViewState["MailSubject"];  
                if (obj != null)  
                {  
                    return Convert.ToString(obj);  
                }  
                return "Website Lead (High Priority)";  
            }  
            set  
            {  
                this.ViewState["MailSubject"] = value;  
            }  
        }  
      
        [Category("Settings"), Description("")]  
        public virtual bool MailIsHighPriority  
        {  
            get  
            {  
                object obj = this.ViewState["MailIsHighPriority"];  
                bool value = false;  
      
                if (obj != null)  
                {  
                    if (!Boolean.TryParse(Convert.ToString(obj), out value))  
                    {  
                        value = false;  
                    }  
      
                    return value;  
                }  
      
                return value;  
            }  
            set  
            {  
                this.ViewState["MailIsHighPriority"] = value;  
            }  
        }  
        #endregion  
      
        protected void Page_Load(object sender, EventArgs e)  
        {  
      
        }  
      
        protected void btnSend_Click(object sender, EventArgs e)  
        {  
            SendMessage();  
        }  
      
        private void SendMessage()  
        {  
      
            //BUILD BODY  
            string MailBody = "";  
            try  
            {  
                MailBody = BuildEmailBody(txtFirstName.Text, txtLastName.Text, cboTopics.SelectedValue, cboContactMethod.SelectedValue, txtEmail.Text, txtPhone.TextWithLiterals, edtComments.Content);  
            }  
            catch (Exception e)  
            {  
                return;  
            }  
      
            //GET SENDER LIST  
            string SenderName = txtFirstName.Text + " " + txtLastName.Text;  
            string[] MailToList = null;  
            try  
            {  
                MailToList = MailTo.Split(";".ToCharArray());  
            }  
            catch (Exception ex)  
            {  
                MailToList = new string[] { "duncan@therecoveryplace.net" };  
            }  
      
            //SEND MESSAGE  
      
            bool MailSent = false;  
      
            //try  
            //{  
                //TRPLibraries.Utilities.MailUtil SMTPMail = new TRPLibraries.Utilities.MailUtil();  
                //SMTPMail.SendMail(MailToList, MailBody, MailSubject, SenderName, MailFrom, MailIsHighPriority);  
                MailSent = Telerik.Notifications.Newsletters.NewsletterManager.SendEmail(MailToList, MailBody, MailSubject, SenderName, MailFrom);  
      
                if (MailSent)  
                {  
                    Response.Redirect(MessageSendUnsuccessfulPage, true);  
                }  
                else  
                {  
                    Response.Redirect(MessageSendSuccessfulPage);  
                }  
            //}  
            //catch (Exception exc)  
            //{  
            //    Response.Redirect(MessageSendUnsuccessfulPage, true);  
            //    return;  
            //}  
      
            //Response.Redirect(MessageSendSuccessfulPage);  
        }  
      
        public string BuildEmailBody(string FirstName, string LastName, string Reason, string RespondPreference, string Email, string Phone, string Message)  
        {  
            StringBuilder HtmlBody = new StringBuilder("<html><head><title></title></head><body style=\"font-family:Arial, Helvetica, sans-serif; font-size:12px; width:600px\">");  
            HtmlBody.AppendFormat("<p><strong>From:</strong> {0} {1} </p>", FirstName, LastName);  
            HtmlBody.AppendFormat("<p><strong>Reason:</strong> {0}</p>", Reason);  
            HtmlBody.AppendFormat("<p><strong>Respond:</strong> {0}</p>", RespondPreference);  
            HtmlBody.AppendFormat("<p><strong>Email Address:</strong> <a href=\"mailto:{0}\">{1}</a> </p>", Email, Email);  
            HtmlBody.AppendFormat("<p><strong>Phone Number:</strong> {0} </p>", Phone);  
            HtmlBody.AppendFormat("<p><strong>Message: </strong></p><hr />{0}<hr /></body></html>", Message);  
      
            return HtmlBody.ToString();  
        }  
    }  

    Sorry these were my own classes and are not relevent to the questions... They can be commented out.... Telerik.Notifications.Newsletters.NewsletterManager.SendEmail is what is not working.

    Duncan
  7. Duncan Evans
    Duncan Evans avatar
    122 posts
    Registered:
    07 Jul 2009
    11 Aug 2009
    Link to this post
    Oh and no, i do not receive emails through IE... i do through Firefox. Additionally my own email class (the one commented out) sends the email fine in both IE and Firefox.
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    14 Aug 2009
    Link to this post
    Hi Duncan Evans,

    I think I know what the problem is with the SendMail class.

    Can you please check if you are logged in the CMS, while you are trying to send an e-mail using IE?  There could be some problems if the the current user is not authenticated. We have fixed this now.

    I am going to send you a custom 3.7 build on monday, which will show us the exact error happening in the SendMail class. If you do send e-mails as expected, then the reason was the issue I described. 

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  9. Webteam
    Webteam avatar
    28 posts
    Registered:
    30 Nov 2009
    19 Feb 2010
    Link to this post
    I am having the same problem where I can't send emails programatically unless the user is logged in, is there an update ( as you mention ) that resolves this?
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    21 Feb 2010
    Link to this post
    Hi David Desjardins,

    I am not able to reproduce this problem anymore using 3.7 SP2 build after I have supplied the correct SMTP settings to the SendEmails  or SendEmailsWithDBUpdaing methods.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Register for webinar
10 posts, 0 answered