Forum » Omrežja in internet » Poslijanje majla preko SMTP (IIS); kako?
Poslijanje majla preko SMTP (IIS); kako?
Microsoft ::
Torej, imam instaliran IIS in SMTP. Servic je uzgan (Start). Pod Relay sem dovolil vse IPje (samo testiram).
V VS sem napisal en prerost programcek, ki naredi neko aspx stran, tam potem vneses oba email naslova, subject in sporocilo. Potem to z pomocjo System.Web.Mail nekako zdruzi v sporocilo in ga posreduje SMTP serverju (localhost).
Vse, kar sem potem zgodi je to, da emaili ostanjo v datoteki Queue. Mi je pa pri spreminjanju nastavitev uspelo se to, da je verjetno zacel poskusati posiljati mejle, pri tem pa je bil neuspesen, saj se je zacel Queue praznit, polnit pa se je zacela datoteka Badmail.
Sporocil, kaj je bolo v fajlih, ki so bili v badmail, nimam vec. Je pa bilo neko sporocilo, da ne more poslat prejemniku.
Zanima pa me, ce se da samo z instaliranim SMTP posiljat mejel, al je potrebno gor dat se kak Exchange al temu kaj podobnega?
by Miha
V VS sem napisal en prerost programcek, ki naredi neko aspx stran, tam potem vneses oba email naslova, subject in sporocilo. Potem to z pomocjo System.Web.Mail nekako zdruzi v sporocilo in ga posreduje SMTP serverju (localhost).
Vse, kar sem potem zgodi je to, da emaili ostanjo v datoteki Queue. Mi je pa pri spreminjanju nastavitev uspelo se to, da je verjetno zacel poskusati posiljati mejle, pri tem pa je bil neuspesen, saj se je zacel Queue praznit, polnit pa se je zacela datoteka Badmail.
Sporocil, kaj je bolo v fajlih, ki so bili v badmail, nimam vec. Je pa bilo neko sporocilo, da ne more poslat prejemniku.
Zanima pa me, ce se da samo z instaliranim SMTP posiljat mejel, al je potrebno gor dat se kak Exchange al temu kaj podobnega?
by Miha
s8eqaWrumatu*h-+r5wre3$ev_pheNeyut#VUbraS@e2$u5ESwE67&uhukuCh3pr
- spremenil: Microsoft ()
alesrosina ::
Seveda se da, zato je pa includan IISju. Sicer sem ze pozabil, ampak zadevo sem jst nucal v win2k server in z ASPji, z .NETom se nisem delal tega. Exchange serverja ti za domaco uporabo niti slucajno ne priporocam, je dost prevec pozresen in se ima prevec moznosti, da bi ga izrabljal samo za posiljnanje emailov prek aplikaij.
Drgac pa dej se enkrat zalaufi zadevo pa mal pokaz katere napake ti javlja.
Drgac pa dej se enkrat zalaufi zadevo pa mal pokaz katere napake ti javlja.
Microsoft ::
Tole je koda napiana v C#:
try
{
MailMessage message = new MailMessage();
message.From = Sender.Text;
message.To = Receiver.Text;
message.Subject = Subject.Text;
message.Body = Body.Text;
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(message);
}
catch (Exception ex)
{
label5.Text = "Error: " + ex;
}
Pa se to. Ko poslem mejl z Outlook, se mi pozene Norton, da neki mejl precekira. Ko poslem z to web stranjo, se mi isto pokaze sporocilo od Nortona.
Onih sporocil pa zaenkrat se nimam... Ko se pojavjo, poslem.
by Miha
try
{
MailMessage message = new MailMessage();
message.From = Sender.Text;
message.To = Receiver.Text;
message.Subject = Subject.Text;
message.Body = Body.Text;
SmtpMail.SmtpServer = "localhost";
SmtpMail.Send(message);
}
catch (Exception ex)
{
label5.Text = "Error: " + ex;
}
Pa se to. Ko poslem mejl z Outlook, se mi pozene Norton, da neki mejl precekira. Ko poslem z to web stranjo, se mi isto pokaze sporocilo od Nortona.
Onih sporocil pa zaenkrat se nimam... Ko se pojavjo, poslem.
by Miha
s8eqaWrumatu*h-+r5wre3$ev_pheNeyut#VUbraS@e2$u5ESwE67&uhukuCh3pr
alesrosina ::
Ja ocitno norton skenira smtp port .... izklopi, pa poskusi se enkrat.
Ne vem, ne znam ti vec svetovat.
Ne vem, ne znam ti vec svetovat.
Microsoft ::
V Badmail je neki datotek. Tale je s koncnico BAD:
From: postmaster@WINXP-MAIN2
To: abc@abc.com
Date: Tue, 21 Dec 2004 22:32:28 +0100
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095B5ADSN=_01C4E7A46E230EE000000003WINXP?MAIN2"
Message-ID: kSmLAztxc0000001c@WINXP-MAIN2
Subject: Delivery Status Notification (Failure)
This is a MIME-formatted message.
Portions of this message may be unreadable without a MIME-capable mail program.
--9B095B5ADSN=_01C4E7A46E230EE000000003WINXP?MAIN2
Content-Type: text/plain; charset=unicode-1-1-utf-7
This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, due to being unable to connect successfully to the destination mail server.
jimibtn@email.si
--9B095B5ADSN=_01C4E7A46E230EE000000003WINXP?MAIN2
Content-Type: message/delivery-status
Reporting-MTA: dns;WINXP-MAIN2
Received-From-MTA: dns;WINXPMAIN2
Arrival-Date: Tue, 21 Dec 2004 22:29:41 +0100
Final-Recipient: rfc822;jimibtn@email.si
Action: failed
Status: 4.4.7
--9B095B5ADSN=_01C4E7A46E230EE000000003WINXP?MAIN2
Content-Type: message/rfc822
Received: from WINXPMAIN2 ([127.0.0.1]) by WINXP-MAIN2 with Microsoft SMTPSVC(6.0.2600.2180);
Tue, 21 Dec 2004 22:29:41 +0100
thread-index: AcTnpC5E80zgDuCMQJm8Lr2Ok50qmw==
Thread-Topic: Test...
From: abc@abc.com
To: jimibtn@email.si
Subject: Test...
Date: Tue, 21 Dec 2004 22:29:41 +0100
Message-ID: 003501c4e7a4$2e447e30$dd00a8c0@WINXPMAIN2
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Return-Path: abc@abc.com
X-OriginalArrivalTime: 21 Dec 2004 21:29:41.0542 (UTC) FILETIME=[2E958460:01C4E7A4]
Test...
--9B095B5ADSN=_01C4E7A46E230EE000000003WINXP?MAIN2--
Tale pa s koncnico BDR:
Unable to deliver this message because the follow error was encountered: "This message is a delivery status notification that cannot be delivered.".
The specific error code was 0xC00402C7.
The message sender was "znak za vecje in manjse (en prebavi)".
The message was intended for the following recipients.
abc@abc.com
Poskusal pa sem zamenjati email naslove, napisati iste naslove, Nortona disejblu, FW disejblu. Bom pregledu zedel mal po netu, kaj je MIME pa kaj ej to za en error.
by Miha
From: postmaster@WINXP-MAIN2
To: abc@abc.com
Date: Tue, 21 Dec 2004 22:32:28 +0100
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095B5ADSN=_01C4E7A46E230EE000000003WINXP?MAIN2"
Message-ID: kSmLAztxc0000001c@WINXP-MAIN2
Subject: Delivery Status Notification (Failure)
This is a MIME-formatted message.
Portions of this message may be unreadable without a MIME-capable mail program.
--9B095B5ADSN=_01C4E7A46E230EE000000003WINXP?MAIN2
Content-Type: text/plain; charset=unicode-1-1-utf-7
This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, due to being unable to connect successfully to the destination mail server.
jimibtn@email.si
--9B095B5ADSN=_01C4E7A46E230EE000000003WINXP?MAIN2
Content-Type: message/delivery-status
Reporting-MTA: dns;WINXP-MAIN2
Received-From-MTA: dns;WINXPMAIN2
Arrival-Date: Tue, 21 Dec 2004 22:29:41 +0100
Final-Recipient: rfc822;jimibtn@email.si
Action: failed
Status: 4.4.7
--9B095B5ADSN=_01C4E7A46E230EE000000003WINXP?MAIN2
Content-Type: message/rfc822
Received: from WINXPMAIN2 ([127.0.0.1]) by WINXP-MAIN2 with Microsoft SMTPSVC(6.0.2600.2180);
Tue, 21 Dec 2004 22:29:41 +0100
thread-index: AcTnpC5E80zgDuCMQJm8Lr2Ok50qmw==
Thread-Topic: Test...
From: abc@abc.com
To: jimibtn@email.si
Subject: Test...
Date: Tue, 21 Dec 2004 22:29:41 +0100
Message-ID: 003501c4e7a4$2e447e30$dd00a8c0@WINXPMAIN2
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-2"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Return-Path: abc@abc.com
X-OriginalArrivalTime: 21 Dec 2004 21:29:41.0542 (UTC) FILETIME=[2E958460:01C4E7A4]
Test...
--9B095B5ADSN=_01C4E7A46E230EE000000003WINXP?MAIN2--
Tale pa s koncnico BDR:
Unable to deliver this message because the follow error was encountered: "This message is a delivery status notification that cannot be delivered.".
The specific error code was 0xC00402C7.
The message sender was "znak za vecje in manjse (en prebavi)".
The message was intended for the following recipients.
abc@abc.com
Poskusal pa sem zamenjati email naslove, napisati iste naslove, Nortona disejblu, FW disejblu. Bom pregledu zedel mal po netu, kaj je MIME pa kaj ej to za en error.
by Miha
s8eqaWrumatu*h-+r5wre3$ev_pheNeyut#VUbraS@e2$u5ESwE67&uhukuCh3pr
Microsoft ::
Kle neki pise, da je treba met tud FrontPage Extension gor. Bom tole se juter kej poskusu. Ce je to to.
by Miha
by Miha
s8eqaWrumatu*h-+r5wre3$ev_pheNeyut#VUbraS@e2$u5ESwE67&uhukuCh3pr
Microsoft ::
No, pol sm probu se ne majl na roke na pisat (Notepad), pa sm ga dal v datoteko Pickup. Na konc pa mi je v datoteko Drop vrglo tole datoteko:
x-sender:
x-receiver: testuser@WINXP-MAIN2
From: postmaster@WINXP-MAIN2
To: testuser@WINXP-MAIN2
Date: Tue, 21 Dec 2004 23:13:12 +0100
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095B5ADSN=_01C4E7A9FB427D4000000001WINXP?MAIN2"
Message-ID: FRaqbC8wS00000025@WINXP-MAIN2
Subject: Delivery Status Notification (Failure)
This is a MIME-formatted message.
Portions of this message may be unreadable without a MIME-capable mail program.
--9B095B5ADSN=_01C4E7A9FB427D4000000001WINXP?MAIN2
Content-Type: text/plain; charset=unicode-1-1-utf-7
This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, due to being unable to connect successfully to the destination mail server.
jimibtn@email.si
--9B095B5ADSN=_01C4E7A9FB427D4000000001WINXP?MAIN2
Content-Type: message/delivery-status
Reporting-MTA: dns;WINXP-MAIN2
Received-From-MTA: dns;WINXP-MAIN2
Arrival-Date: Tue, 21 Dec 2004 23:11:12 +0100
Final-Recipient: rfc822;jimibtn@email.si
Action: failed
Status: 4.4.7
--9B095B5ADSN=_01C4E7A9FB427D4000000001WINXP?MAIN2
Content-Type: message/rfc822
Received: from mail pickup service by WINXP-MAIN2 with Microsoft SMTPSVC;
Tue, 21 Dec 2004 23:11:12 +0100
to:jimibtn@email.si
from:testuser@WINXP-MAIN2
subject:This is a test.
Message-ID: WINXP-MAIN2ONTGy7qZ00000001@WINXP-MAIN2
X-OriginalArrivalTime: 21 Dec 2004 22:11:12.0454 (UTC) FILETIME=[FB488660:01C4E7A9]
Date: 21 Dec 2004 23:11:12 +0100
this is a test.
--9B095B5ADSN=_01C4E7A9FB427D4000000001WINXP?MAIN2--
by Miha
x-sender:
x-receiver: testuser@WINXP-MAIN2
From: postmaster@WINXP-MAIN2
To: testuser@WINXP-MAIN2
Date: Tue, 21 Dec 2004 23:13:12 +0100
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095B5ADSN=_01C4E7A9FB427D4000000001WINXP?MAIN2"
Message-ID: FRaqbC8wS00000025@WINXP-MAIN2
Subject: Delivery Status Notification (Failure)
This is a MIME-formatted message.
Portions of this message may be unreadable without a MIME-capable mail program.
--9B095B5ADSN=_01C4E7A9FB427D4000000001WINXP?MAIN2
Content-Type: text/plain; charset=unicode-1-1-utf-7
This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, due to being unable to connect successfully to the destination mail server.
jimibtn@email.si
--9B095B5ADSN=_01C4E7A9FB427D4000000001WINXP?MAIN2
Content-Type: message/delivery-status
Reporting-MTA: dns;WINXP-MAIN2
Received-From-MTA: dns;WINXP-MAIN2
Arrival-Date: Tue, 21 Dec 2004 23:11:12 +0100
Final-Recipient: rfc822;jimibtn@email.si
Action: failed
Status: 4.4.7
--9B095B5ADSN=_01C4E7A9FB427D4000000001WINXP?MAIN2
Content-Type: message/rfc822
Received: from mail pickup service by WINXP-MAIN2 with Microsoft SMTPSVC;
Tue, 21 Dec 2004 23:11:12 +0100
to:jimibtn@email.si
from:testuser@WINXP-MAIN2
subject:This is a test.
Message-ID: WINXP-MAIN2ONTGy7qZ00000001@WINXP-MAIN2
X-OriginalArrivalTime: 21 Dec 2004 22:11:12.0454 (UTC) FILETIME=[FB488660:01C4E7A9]
Date: 21 Dec 2004 23:11:12 +0100
this is a test.
--9B095B5ADSN=_01C4E7A9FB427D4000000001WINXP?MAIN2--
by Miha
s8eqaWrumatu*h-+r5wre3$ev_pheNeyut#VUbraS@e2$u5ESwE67&uhukuCh3pr
BigWhale ::
Received: from mail pickup service by WINXP-MAIN2 with Microsoft SMTPSVC;
Tue, 21 Dec 2004 23:11:12 +0100
to:jimibtn@email.si
from:testuser@WINXP-MAIN2
Po mojem ti je email.si zavrnil mail. Poglej kak je header in envelope maila.
Tue, 21 Dec 2004 23:11:12 +0100
to:jimibtn@email.si
from:testuser@WINXP-MAIN2
Po mojem ti je email.si zavrnil mail. Poglej kak je header in envelope maila.
Microsoft ::
In kako se to pogleda? Ker vse, katere datoteke mi potem naredi, sem poslal v par postov visje.
Me pa zanima, kaj naj dam za FQDN pri nastavitvah za Advanced Delivery? Pa pol je tam se moznost Smart host.
Bom pa tole verjetno poskusu se konc tedna, ko pridem na drug PC, kjer bom lahko kontroliru tud router. Zdi se mi, da bi mogu na routerju forvardat port 25. Zdej ga pa ne.
by Miha
Me pa zanima, kaj naj dam za FQDN pri nastavitvah za Advanced Delivery? Pa pol je tam se moznost Smart host.
Bom pa tole verjetno poskusu se konc tedna, ko pridem na drug PC, kjer bom lahko kontroliru tud router. Zdi se mi, da bi mogu na routerju forvardat port 25. Zdej ga pa ne.
by Miha
s8eqaWrumatu*h-+r5wre3$ev_pheNeyut#VUbraS@e2$u5ESwE67&uhukuCh3pr
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | [Ubuntu server] mail poslan iz serverja zazna kot vsiljeno pošto (strani: 1 2 )Oddelek: Omrežja in internet | 9184 (8154) | shorvat |
» | Java problemčekOddelek: Programiranje | 1442 (1364) | pajac |
» | e.mail spamerOddelek: Omrežja in internet | 2850 (2338) | Tr0n |
» | Čudn email - Mail delivery failedOddelek: Pomoč in nasveti | 1420 (1262) | Kaboom |
» | hitro pomoč!!! Virus?Oddelek: Omrežja in internet | 1493 (1374) | chucki |