Everything is simple.
This page the
exact copy of dynamic page, its working with our service of distant dispatch of
letters from any site (blog, forum,portal).
Functioning page. Exactly this – is sending the e-mail to our support. Do you like
such one? Or you want yours?
No problem. Load to your PC
this archieves
(all starting codes). Make over (as you like, if you programme on C#). Or just unwind
at host, which (marginally) support ASP.NET 2.0, change external view (master-page,
CSS file, pictures), prescribe all missing at file web.config (it opens by any siple
text editor) and activate for your email-address. At this example, for protection
from spammers, our service is linked free of charge "CAPTCHA" .
For transmission the dates in exposed View(without encording) you should use correspond
to example-form, which called the method of web-service named "MailSendNotCrypted".
It means that yours datas can be read by third persons in case of intercept. If
you didn't want to deliver e-mail addresses in open view, than you can encode (sender's
and yours e-mail) them. In the application which you can download from our site
there is the example-form which is using encoding. The public key for encoding with
asymmetrical algorithm RSA situates at folder "~/App_Data/publicKey.xml".
You must not to vary this key, cause web-servise can't decode Your SSL e-mail addresses.
Also in folder "~/App_Data/" is situated the file "ErrorList.xml",
its example-form use for outputting more full messages about possible mistakes.
This givving example-form has the function of transformation short messages about
mistakes in more full variant. The mistakes's full text is situated in order "ErrorList.xml".
These messages may be changed on any others, which are comfortable for You and on
any language. In case if this file is absent, instead of more full message about
mistakes will be eject theirs short versions receiving from service (ENG).
For entry the messages's text in examle-form, in which use the SSL, is used special
(free) control FCKeditor, with a host of useful functions. You don't want to use
it? Change it at any other from which you will extract the message's text. In example-order
which use the SSL instead of FCKeditor function simple text control(TextBox), as
for example.
Our Service check the availability and right of all necessary datas. And, by way
of answer return a result of check up(if the datas were wrong) or the message about
successfully sent mail in SOAP (XML) format. In example-form also is present the
processing and partial check up of sending datas to web-servises. If you are the
greatmaster of C#, than, you plainly can enter extra (at oneselfs host, site) checks
or improve being in getting example-form(the main - don't change the types and sizes
of sending datas on our web-servises).
If it necessary to automtize the sending off mails, to make the form a lot of user-defined,
you can't just to use our distant servise - you will have to work hard (coding in
any programming-languages - from those ones, that are live). It's very important,
that Yours inquires to our servise were valid, and exactly: types and sizes of sending
datas must not change.
All Yours personal datas(Your name and Email address) fixed by You, the maximum
size of attaching file, file's name with full mistakes's text, files name with public
key for SSL(if you use the example-form with SSL) are keeping in file Web.Config.
All these datas You plainly can change to necessary for You.
Attention! by loading pages automaticly call the
methods
GetCaptchaImage for loading imagery of CAPTCHAs.
Below there the list of delivering and receiving from web-servise parameters:
- for method that return the CAPTCHA(CAPTCHA):
- return imageBytes(the array of bytes, which contain the image of the CAPTCHAs)
- return securityToken(line, which contain the right answer to CAPTCHA in SSL view, intend for despatch method of sender the mail, any change of this line what You will do, bring about oneself the wrong identification of CAPTCHA)
- return errorMessage(the short message about the mistake or result of check-up, which will be transform by example-form in more full message)
- for the methods which send mail (MailSend), accept Email addresses in SSL view
- accept from(the array of bytes, wich contain Email sender's address in SSL view)
- accept fromName(line, which contain the sender's name)
- accept to(the array of bytes, wich contain Email recipient's address in SSL view)
- accept toName(line, which contain the recipient's name)
- accept subject(line, which contain the message's topic)
- accept body(line, which contain the message's text)
- accept isBodyHTML(the logic variable which communicate - has the message's text contain the HTML format)
- accept attFile(the array of bytes, wich contain the attached file to message)
- accept captchaValue(Line, which contain Your answer the CAPTCHA)
- accept securityToken(line, which contain the right answer the CAPTCHA in SSL view,any change of this line what You will do, bring about oneself the wrong identification of CAPTCHA)
- return reportMSG(the short message about the mistake or result of check-up, which will be transform by example-form in more full message)
- for the methods which send mail (MailSendNotCrypted), accept Email addresses in SSL view
- accept from(line, which contain the sender's Email address)
- accept fromName(line, which contain the sender's name)
- accept to(line, wich contain Email recipient's address)
- accept toName(line, which contain the recipient's name)
- accept subject(line, which contain the message's topic)
- accept body(line, which contain the message's text)
- accept isBodyHTML(the logic variable which communicate - has the message's text contain the HTML format)
- accept attFile(the array of bytes, wich contain the attached file to message)
- accept captchaValue(Line, which contain Your answer the CAPTCHA)
- accept securityToken(line, which contain the right answer the CAPTCHA in SSL view, any change of this line what You will do, bring about oneself the wrong identification of CAPTCHA)
- return reportMSG(the short message about the mistake or result of check-up, which will be transform by example-form in more full message)
The examples of SOAP conversion to web-servise's methods
GetCaptchaImage
The following is a sample SOAP 1.1 request and response. The placeholdersshown need
to be replaced with actual values
POST /Services.Web/MailerService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://myreal.net/GetCaptchaImage"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetCaptchaImage xmlns="http://myreal.net/"
/>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetCaptchaImageResponse xmlns="http://myreal.net/">
<GetCaptchaImageResult>boolean</GetCaptchaImageResult>
<imageBytes>base64Binary</imageBytes>
<securityToken>string</securityToken>
<errorMessage>string</errorMessage>
</GetCaptchaImageResponse>
</soap:Body>
</soap:Envelope>
The following is a sample SOAP 1.2 request and response. The placeholders shown
need to be replaced with actual values
POST /Services.Web/MailerService.asmx HTTP/1.1
Host: localhost
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetCaptchaImage xmlns="http://myreal.net/"
/>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetCaptchaImageResponse xmlns="http://myreal.net/">
<GetCaptchaImageResult>boolean</GetCaptchaImageResult>
<imageBytes>base64Binary</imageBytes>
<securityToken>string</securityToken>
<errorMessage>string</errorMessage>
</GetCaptchaImageResponse>
</soap12:Body>
</soap12:Envelope>
MailSend
The following is a sample SOAP 1.1 request and response. The placeholders shown
need to be replaced with actual values
POST /Services.Web/MailerService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://myreal.net/MailSend"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<MailSend xmlns="http://myreal.net/">
<from>base64Binary</from>
<fromName>string</fromName>
<to>base64Binary</to>
<toName>string</toName>
<subject>string</subject>
<body>string</body>
<isBodyHTML>boolean</isBodyHTML>
<AttFile>base64Binary</AttFile>
<captchaValue>string</captchaValue>
<securityToken>string</securityToken>
</MailSend>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<MailSendResponse xmlns="http://myreal.net/">
<MailSendResult>boolean</MailSendResult>
<reportMSG>string</reportMSG>
</MailSendResponse>
</soap:Body>
</soap:Envelope>
The following is a sample SOAP 1.2 request and response. The placeholders shown
need to be replaced with actual values
POST /Services.Web/MailerService.asmx HTTP/1.1
Host: localhost
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<MailSend xmlns="http://myreal.net/">
<from>base64Binary</from>
<fromName>string</fromName>
<to>base64Binary</to>
<toName>string</toName>
<subject>string</subject>
<body>string</body>
<isBodyHTML>boolean</isBodyHTML>
<AttFile>base64Binary</AttFile>
<captchaValue>string</captchaValue>
<securityToken>string</securityToken>
</MailSend>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<MailSendResponse xmlns="http://myreal.net/">
<MailSendResult>boolean</MailSendResult>
<reportMSG>string</reportMSG>
</MailSendResponse>
</soap12:Body>
</soap12:Envelope>
MailSendNotCrypted
The following is a sample SOAP 1.1 request and response. The placeholders shown
need to be replaced with actual values
POST /Services.Web/MailerService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://myreal.net/MailSendNotCrypted"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<MailSendNotCrypted xmlns="http://myreal.net/">
<from>string</from>
<fromName>string</fromName>
<to>string</to>
<toName>string</toName>
<subject>string</subject>
<body>string</body>
<isBodyHTML>boolean</isBodyHTML>
<AttFile>base64Binary</AttFile>
<captchaValue>string</captchaValue>
<securityToken>string</securityToken>
</MailSendNotCrypted>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<MailSendNotCryptedResponse xmlns="http://myreal.net/">
<MailSendNotCryptedResult>boolean</MailSendNotCryptedResult>
<reportMSG>string</reportMSG>
</MailSendNotCryptedResponse>
</soap:Body>
</soap:Envelope>
The following is a sample SOAP 1.2 request and response. The placeholders shown
need to be replaced with actual values
POST /Services.Web/MailerService.asmx HTTP/1.1
Host: localhost
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<MailSendNotCrypted xmlns="http://myreal.net/">
<from>string</from>
<fromName>string</fromName>
<to>string</to>
<toName>string</toName>
<subject>string</subject>
<body>string</body>
<isBodyHTML>boolean</isBodyHTML>
<AttFile>base64Binary</AttFile>
<captchaValue>string</captchaValue>
<securityToken>string</securityToken>
</MailSendNotCrypted>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<MailSendNotCryptedResponse xmlns="http://myreal.net/">
<MailSendNotCryptedResult>boolean</MailSendNotCryptedResult>
<reportMSG>string</reportMSG>
</MailSendNotCryptedResponse>
</soap12:Body>
</soap12:Envelope>
Yea, and the main thing - this servise absolutely free. Its first method, MailSend, send mail to hidden (from spammers) email. The second method ,GetCaptchaImage (CAPTCHA - Completely Automatic Public Turing Test to Tell Computers and Humans Apart), connected free of charge only in send mail web-servise.