Salta al contenuto
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • 0 Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.
Collassa
Connect.gt
Il network Search On
Connect.gt WMF AI Festival Accademia Advanced SEO Tool AgentCy Social Media Strategies Search Tech
Registrati Accedi
Connect.gt
Stream Interest Categorie Hashtag
  1. La community italiana di SEO, marketing digitale e AI
  2. Categorie
  3. Coding e Sistemistica
  4. Coding
  5. [ASP.NET] Lunarpages e invio mail

[ASP.NET] Lunarpages e invio mail

Pianificato Fissato Bloccato Spostato Coding
35 Post 6 Autori 7.0k Visualizzazioni 1 Seguito
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • A
    A
    artcava
    Moderatore
    scritto su ultima modifica di
    User Attivo 0
    #2

    Io mi sono scritto questo metodo...

    using System.Net.Mail;
    
    public bool Send(string from, string to, string subject, string body, MailPriority priority, string[] attachments, bool IsHTMLBody)
        {
            MailMessage msg = null;
            try
            {
                msg = new MailMessage();
                msg.From = new MailAddress(from);
                msg.To.Add(to.Replace(';', ','));
                msg.Subject = subject;
                msg.Body = body;
                msg.IsBodyHtml = IsHTMLBody;
                msg.Priority = priority;
                if (attachments != null)
                {
                    foreach (string file in attachments)
                    {
                        msg.Attachments.Add(new Attachment(file));
                    }
                }
                SmtpClient client = new SmtpClient(_SMTP);
                client.UseDefaultCredentials = true;
                client.Send(msg);
                return true;
            }
            catch (Exception ex)
            {
                string message = ex.Message;
                while ((ex = ex.InnerException) != null)
                {
                    message += " -- " + ex.Message;
                }
                //Log del messaggio d'errore...
                return false;
            }
            finally
            {
                if (msg != null)
                    msg.Dispose();
            }
        }
    

    E' in C#, se ti serve in VB non è difficile farne la conversione...

    1 Risposta Ultima Risposta
    Miglior risposta 0
    0
    • C
      C
      cali1981
      scritto su ultima modifica di
      Super User 20
      #3

      Grazie!
      Ma di preciso, cos'è _SMTP? L'indirizzo di un server SMTP?
      Comunque provo e vediamo come va!

      Grazie ancora!

      1 Risposta Ultima Risposta
      Miglior risposta 0
      0
      • L
        L
        legolas
        Moderatore
        scritto su ultima modifica di
        User Attivo 5
        #4

        _SMTP è proprio l'indirizzo smtp con cui puoi inviare e-mail, tra l'altro il tuo codice dovrebbe dare errore proprio perchè non hai specificato questo indirizzo.

        Se questo non è specificato il .net utilizza come indirizzo di default "localhost".

        Ciao

        1 Risposta Ultima Risposta
        Miglior risposta 0
        0
        • C
          C
          cali1981
          scritto su ultima modifica di
          Super User 20
          #5

          Perfetto, provo subito a vedere se va!
          Grazie!

          1 Risposta Ultima Risposta
          Miglior risposta 0
          0
          • C
            C
            cali1981
            scritto su ultima modifica di
            Super User 20
            #6

            Grazie mille!!
            Così funziona!
            Il problema che mi da probabilmente è dovuto al fatto che non ho inserito l'smtp, ma non posso inserirlo io, sono su un hosting, non posso modificare iis!

            Grazie ancora per la dritta!

            Ciao!

            1 Risposta Ultima Risposta
            Miglior risposta 0
            0
            • A
              A
              artcava
              Moderatore
              scritto su ultima modifica di
              User Attivo 0
              #7

              Ma scusa il tuo provider non ti ha fornito l'indirizzo del server SMTP a cui appoggiarti per gestire le Mail?

              1 Risposta Ultima Risposta
              Miglior risposta 0
              0
              • C
                C
                cali1981
                scritto su ultima modifica di
                Super User 20
                #8

                Si me lo ha dato, ma il dominio è registrato con un altro, e finchè non faccio il redirect, l'smtp mail.miosito.it punterà a qualche altra cosa e non all'SMTP dell'hosting in cui sto... Per ora sto solo facendo qualche test per assicurarmi che funziona, prima di passare tutto li!

                1 Risposta Ultima Risposta
                Miglior risposta 0
                0
                • T
                  T
                  theking0
                  scritto su ultima modifica di
                  User 0
                  #9

                  artcava

                  Io mi sono scritto questo metodo...

                  using System.Net.Mail;
                  
                  public bool Send(string from, string to, string subject, string body, MailPriority priority, string[] attachments, bool IsHTMLBody)
                      {
                          MailMessage msg = null;
                          try
                          {
                              msg = new MailMessage();
                              msg.From = new MailAddress(from);
                              msg.To.Add(to.Replace(';', ','));
                              msg.Subject = subject;
                              msg.Body = body;
                              msg.IsBodyHtml = IsHTMLBody;
                              msg.Priority = priority;
                              if (attachments != null)
                              {
                                  foreach (string file in attachments)
                                  {
                                      msg.Attachments.Add(new Attachment(file));
                                  }
                              }
                              SmtpClient client = new SmtpClient(_SMTP);
                              client.UseDefaultCredentials = true;
                              client.Send(msg);
                              return true;
                          }
                          catch (Exception ex)
                          {
                              string message = ex.Message;
                              while ((ex = ex.InnerException) != null)
                              {
                                  message += " -- " + ex.Message;
                              }
                              //Log del messaggio d'errore...
                              return false;
                          }
                          finally
                          {
                              if (msg != null)
                                  msg.Dispose();
                          }
                      }
                  

                  E' in C#, se ti serve in VB non è difficile farne la conversione...

                  Ciao a tutti !
                  Questo è il mio primo post in questo forum !

                  Vorrei porre una domanda al creatore di qurl metodo:
                  Intanto incomincio col dire che non uso da tanto il c# quindi tante cose non le capisco ancora, la mia domanta e: ho provato ad inserire in un programma quel metodo e nauralmente a inserire anche il server stmp, pero non riesco a farla funzionare, non è che saresti cosi gentile da farmi un esempio pratico, perche è da tempo che sto sercando di inviare email in c# ma non ci sono mai riuscito ! :bho:
                  O al limite se mi puoi indicare un sito dove scaricare un esempio !
                  Io uso Visual Studio C# 2005 pro !

                  Grazie in anticipo !

                  1 Risposta Ultima Risposta
                  Miglior risposta 0
                  0
                  • C
                    C
                    cali1981
                    scritto su ultima modifica di
                    Super User 20
                    #10

                    Che errore hai? Che server hai utilizzato?

                    1 Risposta Ultima Risposta
                    Miglior risposta 0
                    0
                    • T
                      T
                      theking0
                      scritto su ultima modifica di
                      User 0
                      #11

                      Ciao, grazie per la rispasta imediata !:D
                      ti posto il cadice completo :

                      [SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System;[/SIZE]
                      [SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Collections.Generic;[/SIZE]
                      [SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.ComponentModel;[/SIZE]
                      [SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Data;[/SIZE]
                      [SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Drawing;[/SIZE]
                      [SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Text;[/SIZE]
                      [SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Windows.Forms;[/SIZE]
                      [SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Net.Mail;[/SIZE]
                       
                      [SIZE=2][COLOR=#0000ff]namespace[/COLOR][/SIZE][SIZE=2] WindowsApplication1[/SIZE]
                      [SIZE=2]{[/SIZE]
                      [SIZE=2][COLOR=#0000ff]public[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]partial[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]class[/COLOR][/SIZE][SIZE=2][COLOR=#008080]Form1[/COLOR][/SIZE][SIZE=2] : [/SIZE][SIZE=2][COLOR=#008080]Form[/COLOR][/SIZE]
                      [SIZE=2]{[/SIZE]
                      [SIZE=2][COLOR=#0000ff]public[/COLOR][/SIZE][SIZE=2] Form1()[/SIZE]
                      [SIZE=2]{[/SIZE]
                      [SIZE=2]InitializeComponent();[/SIZE]
                      [SIZE=2]}[/SIZE]
                      [SIZE=2][COLOR=#0000ff]public[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]bool[/COLOR][/SIZE][SIZE=2] Send([/SIZE][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2] from, [/SIZE][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2] to, [/SIZE][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2] subject, [/SIZE][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2] body, [/SIZE][SIZE=2][COLOR=#008080]MailPriority[/COLOR][/SIZE][SIZE=2] priority, [/SIZE][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2][] attachments, [/SIZE][SIZE=2][COLOR=#0000ff]bool[/COLOR][/SIZE][SIZE=2] IsHTMLBody)[/SIZE]
                      [SIZE=2]{[/SIZE]
                      [SIZE=2][COLOR=#008080]MailMessage[/COLOR][/SIZE][SIZE=2] msg = [/SIZE][SIZE=2][COLOR=#0000ff]null[/COLOR][/SIZE][SIZE=2];[/SIZE]
                      [SIZE=2][COLOR=#0000ff]try[/COLOR][/SIZE]
                      [SIZE=2]{[/SIZE]
                      [SIZE=2]msg = [/SIZE][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][SIZE=2][COLOR=#008080]MailMessage[/COLOR][/SIZE][SIZE=2]();[/SIZE]
                      [SIZE=2]msg.From = [/SIZE][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][SIZE=2][COLOR=#008080]MailAddress[/COLOR][/SIZE][SIZE=2](from);[/SIZE]
                      [SIZE=2]msg.To.Add(to.Replace([/SIZE][SIZE=2][COLOR=#800000]';'[/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#800000]','[/COLOR][/SIZE][SIZE=2]));[/SIZE]
                      [SIZE=2]msg.Subject = subject;[/SIZE]
                      [SIZE=2]msg.Body = body;[/SIZE]
                      [SIZE=2]msg.IsBodyHtml = IsHTMLBody;[/SIZE]
                      [SIZE=2]msg.Priority = priority;[/SIZE]
                      [SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2] (attachments != [/SIZE][SIZE=2][COLOR=#0000ff]null[/COLOR][/SIZE][SIZE=2])[/SIZE]
                      [SIZE=2]{[/SIZE]
                      [SIZE=2][COLOR=#0000ff]foreach[/COLOR][/SIZE][SIZE=2] ([/SIZE][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2] file [/SIZE][SIZE=2][COLOR=#0000ff]in[/COLOR][/SIZE][SIZE=2] attachments)[/SIZE]
                      [SIZE=2]{[/SIZE]
                      [SIZE=2]msg.Attachments.Add([/SIZE][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][SIZE=2][COLOR=#008080]Attachment[/COLOR][/SIZE][SIZE=2](file));[/SIZE]
                      [SIZE=2]}[/SIZE]
                      [SIZE=2]}[/SIZE]
                      [SIZE=2][COLOR=#008080]SmtpClient[/COLOR][/SIZE][SIZE=2] client = [/SIZE][SIZE=2][COLOR=#0000ff]new[/COLOR][/SIZE][SIZE=2][COLOR=#008080]SmtpClient[/COLOR][/SIZE][SIZE=2]([/SIZE][SIZE=2][COLOR=#800000]"mail.libero.it"[/COLOR][/SIZE][SIZE=2]);[/SIZE]
                      [SIZE=2]client.UseDefaultCredentials = [/SIZE][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][SIZE=2];[/SIZE]
                      [SIZE=2]client.Send(msg);[/SIZE]
                      [SIZE=2][COLOR=#0000ff]return[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][SIZE=2];[/SIZE]
                      [SIZE=2]}[/SIZE]
                      [SIZE=2][COLOR=#0000ff]catch[/COLOR][/SIZE][SIZE=2] ([/SIZE][SIZE=2][COLOR=#008080]Exception[/COLOR][/SIZE][SIZE=2] ex)[/SIZE]
                      [SIZE=2]{[/SIZE]
                      [SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2] message = ex.Message;[/SIZE]
                      [SIZE=2][COLOR=#0000ff]while[/COLOR][/SIZE][SIZE=2] ((ex = ex.InnerException) != [/SIZE][SIZE=2][COLOR=#0000ff]null[/COLOR][/SIZE][SIZE=2])[/SIZE]
                      [SIZE=2]{[/SIZE]
                      [SIZE=2]message += [/SIZE][SIZE=2][COLOR=#800000]" -- "[/COLOR][/SIZE][SIZE=2] + ex.Message;[/SIZE]
                      [SIZE=2]}[/SIZE]
                      [SIZE=2][COLOR=#008000]//Log del messaggio d'errore...[/COLOR][/SIZE]
                      [SIZE=2][COLOR=#0000ff]return[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]false[/COLOR][/SIZE][SIZE=2];[/SIZE]
                      [SIZE=2]}[/SIZE]
                      [SIZE=2][COLOR=#0000ff]finally[/COLOR][/SIZE]
                      [SIZE=2]{[/SIZE]
                      [SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2] (msg != [/SIZE][SIZE=2][COLOR=#0000ff]null[/COLOR][/SIZE][SIZE=2])[/SIZE]
                      [SIZE=2]msg.Dispose();[/SIZE]
                      [SIZE=2]}[/SIZE]
                      [SIZE=2]}[/SIZE]
                      [SIZE=2][COLOR=#0000ff]private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] button1_Click([/SIZE][SIZE=2][COLOR=#0000ff]object[/COLOR][/SIZE][SIZE=2] sender, [/SIZE][SIZE=2][COLOR=#008080]EventArgs[/COLOR][/SIZE][SIZE=2] e)[/SIZE]
                      [SIZE=2]{[/SIZE]
                      [SIZE=2]Send([/SIZE][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2] [email protected], [/SIZE][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2] [email protected], [/SIZE][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2] subject, [/SIZE][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2] body, MailPriority priority, [/SIZE][SIZE=2][COLOR=#0000ff]string[/COLOR][/SIZE][SIZE=2][] attachments, [/SIZE][SIZE=2][COLOR=#0000ff]bool[/COLOR][/SIZE][SIZE=2] IsHTMLBody);[/SIZE]
                      [SIZE=2]}[/SIZE]
                      [SIZE=2]}[/SIZE]
                      [SIZE=2]}[/SIZE]
                      

                      gli errori sono :

                      [SIZE=1]------ Inizio generazione: Progetto: WindowsApplication1, Configurazione: Debug Any CPU ------[/SIZE]
                      [SIZE=1]C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Deployment.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug+ /debug:full /optimize- /out:obj\Debug\WindowsApplication1.exe /resource:obj\Debug\WindowsApplication1.Form1.resources /resource:obj\Debug\WindowsApplication1.Properties.Resources.resources /target:winexe Form1.cs Form1.Designer.cs Program.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs Properties\Settings.Designer.cs[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,22): errore CS1525: 'string' è un termine non valido nell'espressione[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,30): errore CS1026: È previsto il segno )[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,40): errore CS1002: È previsto un punto e virgola (;)[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,40): errore CS1525: ',' è un termine non valido nell'espressione[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,42): errore CS1002: È previsto un punto e virgola (;)[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,57): errore CS1002: È previsto un punto e virgola (;)[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,67): errore CS1002: È previsto un punto e virgola (;)[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,67): errore CS1525: ',' è un termine non valido nell'espressione[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,69): errore CS1002: È previsto un punto e virgola (;)[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,85): errore CS1041: È previsto un identificatore, 'string' è una parola chiave[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,111): errore CS1044: Impossibile utilizzare più di un tipo nelle istruzioni for, using, fixed e nelle dichiarazioni[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,121): errore CS1041: È previsto un identificatore, 'string' è una parola chiave[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,143): errore CS1041: È previsto un identificatore, 'bool' è una parola chiave[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,158): errore CS1002: È previsto un punto e virgola (;)[/SIZE]
                      [SIZE=1]C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs(64,158): errore CS1525: ')' è un termine non valido nell'espressione[/SIZE]
                      [SIZE=1]Compilazione completata: 15 errori, 0 avvisi[/SIZE]
                      [SIZE=1]========== Generazione: 0 completate o aggiornate, 1 non riuscite, 0 ignorate ==========[/SIZE]
                      

                      Misà che ho sbagliato in molti punti ! :bho:

                      1 Risposta Ultima Risposta
                      Miglior risposta 0
                      0
                      • C
                        C
                        cali1981
                        scritto su ultima modifica di
                        Super User 20
                        #12

                        Senza offesa, ma credo che prima sarebbe il caso di legere un manuale di C#.
                        L'erore te lo da qui

                        privatevoid button1_Click(object sender, EventArgs e)
                        {
                        Send(string [email protected], string [email protected], string subject, string body, MailPriority priority, string[] attachments, bool IsHTMLBody);
                        }

                        Dovrebbe essere qualcosa del tipo

                        privatevoid button1_Click(object sender, EventArgs e)
                        {
                        Send("[email protected]", "[email protected]", "", "", MailPriority.something, new string[10], true);
                        }

                        Al metodo send devi passargli i parametr, non ci puoi riscrivere string!!

                        1 Risposta Ultima Risposta
                        Miglior risposta 0
                        0
                        • T
                          T
                          theking0
                          scritto su ultima modifica di
                          User 0
                          #13

                          Si scusami tanto sono proprio uno stupido !
                          Ho sbagliato una cosa che sapevo, tempo fà usavo il c++ quindi i metodi (o funzioni) le so, solo che oggi veramente non sò cos'ho !
                          Comunque adessa che ho sistemato i parametri me de questi errori :

                          [SIZE=1]Errore 1 'System.Net.Mail.MailPriority' non contiene una definizione per 'something' C:\Documents and Settings\The_King\Desktop\WindowsApplication1\WindowsApplication1\Form1.cs 64
                          
                          [/SIZE]
                          

                          Scusami ancora !
                          E grazie per l'aiuto ! 😄

                          1 Risposta Ultima Risposta
                          Miglior risposta 0
                          0
                          • C
                            C
                            cali1981
                            scritto su ultima modifica di
                            Super User 20
                            #14

                            Beh io ho scritto MailPriotiy.something perchè non sapevo che c'è dentro MailPriority, che è un'enumeration (ci sono anche in c+++). Comunque prova con MailPriority.Normal, oppure vedi cosa ti dice intellisense....

                            1 Risposta Ultima Risposta
                            Miglior risposta 0
                            0
                            • T
                              T
                              theking0
                              scritto su ultima modifica di
                              User 0
                              #15

                              Ho cambiato in MailPriority.Normal ed ora compila il tutto ! 😄
                              Una volta eseguita però schiaccio il pulsante invia ed non da errori ma se controllo la email non arriva ! :bho:

                              1 Risposta Ultima Risposta
                              Miglior risposta 0
                              0
                              • C
                                C
                                cali1981
                                scritto su ultima modifica di
                                Super User 20
                                #16

                                Credo che libero non ti permette di inviare mail se non hai la connessione di libero, prova altro, che so tiscali o alice...

                                1 Risposta Ultima Risposta
                                Miglior risposta 0
                                0
                                • T
                                  T
                                  theking0
                                  scritto su ultima modifica di
                                  User 0
                                  #17

                                  Ciao, ne ho provato una valanga. ho inserito perfino una textbox per cambiarle velocemente mentre è in esecuzzione !
                                  Mi sembra strano che nemmeno 1 vada ho trovato questo :

                                  http://www.freepops.org/it/smtplist.php

                                  forse può essere utile a qualcuno ! 😄

                                  1 Risposta Ultima Risposta
                                  Miglior risposta 0
                                  0
                                  • C
                                    C
                                    cali1981
                                    scritto su ultima modifica di
                                    Super User 20
                                    #18

                                    Non so, se la mail è giusta dovrebbe andare... Hai scritto qualcosa in subject e body? Da qualche eccezione?

                                    1 Risposta Ultima Risposta
                                    Miglior risposta 0
                                    0
                                    • T
                                      T
                                      theking0
                                      scritto su ultima modifica di
                                      User 0
                                      #19

                                      Si ho scritto una parola sia in subject che in body ! :bho:
                                      Cosa intendi con eccezine ?

                                      Errori non ne dà nemmeno 1 !

                                      Ciao
                                      Grazie

                                      1 Risposta Ultima Risposta
                                      Miglior risposta 0
                                      0
                                      • C
                                        C
                                        cali1981
                                        scritto su ultima modifica di
                                        Super User 20
                                        #20

                                        Eccezioni sono errori. Allora mi spiace ma non so da cosa possa dipendere, io ho provato e va. Non so se va solo su web e non da programma. Sicuro che il firewall o roba del genere non bloccano il collegamento del tuo programma?

                                        1 Risposta Ultima Risposta
                                        Miglior risposta 0
                                        0
                                        • F
                                          F
                                          fusionman
                                          scritto su ultima modifica di
                                          User Attivo 0
                                          #21

                                          Se hai l'smtp in locale potresti provarlo da li...
                                          Difficilmente gli hosting gratuiti ti faranno spedire mail.
                                          Spesso anche quelli a pagamento ti fissano i limiti.

                                          1 Risposta Ultima Risposta
                                          Miglior risposta 0
                                          0

                                          Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

                                          Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

                                          Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

                                          Registrati Accedi
                                          Rispondi
                                          • Risposta alla discussione
                                          Effettua l'accesso per rispondere
                                          • Da Vecchi a Nuovi
                                          • Da Nuovi a Vecchi
                                          • Più Voti


                                          • Accedi

                                          • Non hai un account? Registrati

                                          • Accedi o registrati per effettuare la ricerca.
                                          • Primo post
                                            Ultimo post
                                          Home Accedi Registrati
                                          Menu
                                          • CATEGORIES
                                          • La Community Connect.gt
                                          • Presentati alla Community
                                          • News Ufficiali da Connect.gt
                                          • Internet News
                                          • A Scuola Di
                                          • Digital Marketing
                                          • Intelligenza Artificiale
                                          • SEO & GEO
                                          • Web Marketing e Content
                                          • Google Analytics e Web Analytics
                                          • Google Ads & Advertising
                                          • YouTube
                                          • TikTok, Instagram e altri Social
                                          • Google Adsense, Affiliazioni e Guadagno
                                          • E-Commerce
                                          • Coding e Sistemistica
                                          • Help Center: consigli per il tuo progetto
                                          • Hosting e Cloud
                                          • Coding
                                          • CMS & Piattaforme Self-Hosted
                                          • Annunci e Collaborazioni
                                          • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
                                          • Collaborazioni WEB e Lavoro: offro e cerco
                                          • Impresa, Fisco e Leggi
                                          • Consulenza Legale e Professioni Web
                                          • Consulenza Fiscale, Imprese, Startup e P.Iva
                                          • Gli Off Topic
                                          • PC, Smartphone e altri Hardware
                                          • Tutti i Software
                                          • GT Fetish Cafè
                                          • Discussioni
                                          • Non letti 0
                                          • Recenti
                                          • Hashtag
                                          • Popolare
                                          • Utenti
                                          • Privacy
                                          • Termini e condizioni
                                          • © 2026 Search On Media Group S.r.l.