fix errore email (se manca email destinatario, metto quella del mittente!)
This commit is contained in:
@@ -28,11 +28,12 @@
|
||||
<add key="appName" value="ETS-WS" />
|
||||
<add key="SiteName" value="ETS" />
|
||||
<add key="mainRev" value="1.0" />
|
||||
<add key="minRev" value="112" />
|
||||
<add key="copyRight" value="SteamWare, ETS © 2012" />
|
||||
<add key="minRev" value="113" />
|
||||
<add key="copyRight" value="SteamWare, ETS © 2012-2013" />
|
||||
<add key="tempUplDir" value="~/TempUploads" />
|
||||
<add key="archiveDir" value="~/ArchivioDocs" />
|
||||
<add key="archiveDirRed" value="~/ArchivioDocsRed" />
|
||||
<add key="stdEmail" value="info@etseng.it"/>
|
||||
<!--area date-->
|
||||
<add key="defDayFrom" value="-3650" />
|
||||
<!--area controlli grid-->
|
||||
|
||||
@@ -670,7 +670,18 @@ namespace ETS_WS
|
||||
{
|
||||
// creo un NUOVO file alla destinazione sostituendo l'esistente con apposita classe
|
||||
string mittente = utils.obj.currUserEmail;
|
||||
// controllo, se non è valida carico email "fuffa"
|
||||
if (mittente.IndexOf("@") < 0)
|
||||
{
|
||||
mittente = utils.obj.confReadString("stdEmail");
|
||||
}
|
||||
// calcolo destinatario
|
||||
string destinatario = WebShipUtils.emailDaCodForn(docsData.fonte);
|
||||
// controllo email dest valida...
|
||||
if (destinatario.IndexOf("@") < 0)
|
||||
{
|
||||
destinatario = mittente;
|
||||
}
|
||||
string subject = string.Format("{0}, prot. num {1}", docsData.oggetto, protocollo);
|
||||
string body = string.Format("Commessa: {1}{0}Fase: {2}{0}Oggetto: {3}{0}prot. num: {4}", Environment.NewLine, docsData.commessa, docsData.fase, docsData.oggetto, protocollo);
|
||||
string newFileName = WebShipUtils.CreaEml(mittente, destinatario, subject, body, null, HttpContext.Current.Server.MapPath(pathDest));
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -7,3 +7,4 @@ C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\Debug\NL
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\Debug\ETS_Data.csprojResolveAssemblyReference.cache
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\Debug\ETS_Data.dll
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\obj\Debug\ETS_Data.pdb
|
||||
C:\Users\samuele\Documents\Visual Studio 2010\Projects\ETS\ETS_Data\bin\Debug\DocumentFormat.OpenXml.dll
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user