Jump to content

Search the Community

Showing results for tags 'smtp'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 6 results

  1. We have an old program which i believe is built using C# for which i have the source code but i cannot edit the program. The issue is we have moved our email to a new provider who is using STARTTLS for sending emails and our program is now failing to send a simple email and returning the error below; sendemail - Error in processing. The server response was: 5.7.3 STARTTLS is required to send mail [LO4P123CA0676.GBRP123.PROD.OUTLOOK.COM] We have an XML file which we can change the values of but i cannot see anywhere to add anything to allow the STARTTLS to work. The XML file contains the following; <Sage200_ImportSLsettings> <FileLocation> <FileLocation>D:\Sage\Sage Import Files</FileLocation> <Company>Volmary Ltd</Company> <MailServer>smtp-mail.outlook.com</MailServer> <MailTo>email</MailTo> <MailFrom>email</MailFrom> </FileLocation> </Sage200_ImportSLsettings> The C# code is shown below (which we are not able to edit) private void ReadXMLforConnectionDetails() { try { string path = Path.GetDirectoryName(Application.ExecutablePath) + @"\@CPS_Sage200_SLImport.xml"; if (File.Exists(path)) { IEnumerator enumerator; XmlDocument document = new XmlDocument(); document.Load(path); XmlNamespaceManager nsmgr = new XmlNamespaceManager(document.NameTable); XmlNodeList list = document.DocumentElement.SelectNodes("/Sage200_ImportSLsettings/FileLocation", nsmgr); try { XmlNode current; enumerator = list.GetEnumerator(); goto TR_0018; TR_0008: try { this.MailFrom = current["MailFrom"].InnerText; } catch (Exception exception5) { ProjectData.SetProjectError(exception5); this.MailFrom = ""; ProjectData.ClearProjectError(); } goto TR_0018; TR_000B: try { this.MailTo = current["MailTo"].InnerText; } catch (Exception exception4) { ProjectData.SetProjectError(exception4); this.MailTo = ""; ProjectData.ClearProjectError(); } goto TR_0008; TR_000E: try { this.MailServer = current["MailServer"].InnerText; } catch (Exception exception3) { ProjectData.SetProjectError(exception3); this.MailServer = ""; ProjectData.ClearProjectError(); } goto TR_000B; TR_0011: try { this.SageCompany = current["Company"].InnerText; } catch (Exception exception2) { ProjectData.SetProjectError(exception2); this.SageCompany = ""; ProjectData.ClearProjectError(); } goto TR_000E; TR_0018: while (true) { if (enumerator.MoveNext()) { current = (XmlNode) enumerator.Current; try { this.FileLocation = current["FileLocation"].InnerText; } catch (Exception exception1) { ProjectData.SetProjectError(exception1); this.FileLocation = ""; ProjectData.ClearProjectError(); } } else { this.ConnecttoSage200(); return; } break; } goto TR_0011; } finally { if (enumerator is IDisposable) { (enumerator as IDisposable).Dispose(); } } } this.WritetoErrorLog("ReadXMLforConnectionDetails() - File does not exist. " + path); Application.Exit(); } catch (Exception exception6) { Exception ex = exception6; ProjectData.SetProjectError(ex); Exception exception = ex; this.WritetoErrorLog("ReadXMLforConnectionDetails() - " + exception.Message); Application.Exit(); ProjectData.ClearProjectError(); } } private void sendemail(string MailSubject, string Emailbody) { try { MailMessage message = new MailMessage(); SmtpClient client = new SmtpClient(this.MailServer); message.From = new MailAddress("\"CPS - Sage200 SL Import\"<" + this.MailFrom + ">"); message.To.Add(new MailAddress(this.MailTo)); message.Subject = MailSubject; message.IsBodyHtml = false; message.Body = Emailbody; client.Credentials = new NetworkCredential("email", "password"); client.Send(message); message.Dispose(); } catch (Exception exception1) { Exception ex = exception1; ProjectData.SetProjectError(ex); Exception exception = ex; this.WritetoErrorLog("sendemail - " + exception.Message); Application.Exit(); ProjectData.ClearProjectError(); } } Any advice will be greatly appreciated.
  2. Hello everyone. We have recently updated an application web based named ISOKEY for ISO documentation (a documentation manager working in IIS), in a Windows 2003 server for Small Business SP2. We had it working ok with a non SSL config in the e-mail SMTP settings, after we tried to change to gmail mails stopped from sending. So I made a smtp-relay for using port 25 (smtp) with no SSL enabled. For some reason the logging in windows says that the body is incorrect: So I was wondering if the XML where the smtp configuration is, should be updated too. I'm uploading the XML, and what I'm asking is (because I can't see an error in the body it seems everything is fine) is there any change we should do for it to work? Thank you very much in advance for any advice or tip you can give me. Best, M. xml_post.xml Edit: Since the code for the XML is kind of short, I'll post it right here for a better lecture of it. <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.net> <mailSettings> <smtp deliveryMethod="Network" from="ISOKEY"> <network host="smtp-relay.gmail.com" port="25" userName="my@account.com" password="mypassword" defaultCredentials="false" /> <!-- --> </smtp> </mailSettings> </system.net> <system.diagnostics> <sources> <!-- This section defines the logging configuration for My.Application.Log --> <source name="DefaultSource" switchName="DefaultSwitch"> <listeners> <add name="FileLog"/> <!-- Uncomment the below section to write to the Application Event Log --> <!--<add name="EventLog"/>--> </listeners> </source> </sources> <switches> <add name="DefaultSwitch" value="Information"/> </switches> <sharedListeners> <add name="FileLog" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=VAR, processorArchitecture=MSIL" initializeData="FileLogWriter"/> <!-- Uncomment the below section and replace APPLICATION_NAME with the name of your application to write to the Application Event Log --> <!--<add name="EventLog" type="System.Diagnostics.EventLogTraceListener" initializeData="APPLICATION_NAME"/> --> </sharedListeners> </system.diagnostics> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="IKTypes_43" publicKeyToken="VAR" culture="neutral"/> <bindingRedirect oldVersion="1.0.0.0-7.0.0.0" newVersion="7.2.0.0"/> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="IKTypes_50" publicKeyToken="VAR" culture="neutral"/> <bindingRedirect oldVersion="1.0.0.0-7.0.0.0" newVersion="7.2.0.0"/> </dependentAssembly> </assemblyBinding> </runtime> </configuration>
  3. I followed the lessons about php and php forms. Everything is clear and very useful, but I would like to ask how could I send eg this form if valid with SMTP? So, I would like to first validate the form and then send it with SMTP. Thank you!
  4. I have WAMP installed and the goal is to create a script that sends emails. I checked the php.ini file and found no smtp is installed. But how does this work with WAMP? I need a mailserver I assume? Is there a default one in WAMP and how to install it? If not then how can I install a good one? And how to configure it?
  5. I'm having trouble sending emails from an email like "mail@domain.com" wich is configured to use the live.mail.com client. Even though i think i'm using the right credentials i get the following error: "Mailbox unavailable. The server response was: 5.7.3 Requested action aborted; user not authenticated" this are my configurations: smtpClient = new SmtpClient("smtp.live.com");smtpClient.Port = 587;smtpClient.UseDefaultCredentials = false;smtpClient.Credentials = new System.Net.NetworkCredential("mail@domain.com", "Password");smtpClient.EnableSsl = true; any help is appreciated, for I can't seem to work-arround this problem and have to have this website online ASAP
  6. Hi all I have a MS Server 2008R2 set up with IIS7 In IIS I have set up an SMTP (with the IIS6 requirements) and the standard PHP that you get with it all. The SMTP server works. Reason we have to use a local SMTP server to interface with our actual mail server is because the external server requires TLS authentication and many smaller office scanning machines don't support it. I am able to send mail through the SMTP without issue, both from an office MFP and from a mail client like Outlook 2010. The PHP works too. I have it displaying PHP webpages and even going as far as accessing ODBC data resources. However, the two of them don't work together. I create a basic webpage that is as follows: <html><body> <?php if (mail("me@example.com","Test Subject","Test body")) {echo "success";} else {echo "failed";} ?></body><html> I also have the following in the PHP.ini I found in "C:\Program Files (x86)\PHP\v5.3\" [mail function]SMTP = localhostsmtp_port = 25sendmail_from = no-reply@example.com And yet, all I get is "failed" each time I have run the webpage. Anyone have any ideas on where I can get the PHP/SMTP/Other logs to give me more information? I have monitored the queue folder for the SMTP and it doesn't seem to even receive the mail from the PHP site.
×
×
  • Create New...