Click here to Skip to main content
15,927,699 members
Home / Discussions / C#
   

C#

 
GeneralC# p/invoke the sendmessage(Hwnd,....) Pin
ting66827-Oct-04 5:16
ting66827-Oct-04 5:16 
GeneralRe: C# p/invoke the sendmessage(Hwnd,....) Pin
Colin Angus Mackay27-Oct-04 5:33
Colin Angus Mackay27-Oct-04 5:33 
GeneralRe: C# p/invoke the sendmessage(Hwnd,....) Pin
Nick Parker27-Oct-04 8:00
protectorNick Parker27-Oct-04 8:00 
GeneralC# showing forms problem Pin
ting66827-Oct-04 5:11
ting66827-Oct-04 5:11 
GeneralSystem.Web.Mail Pin
Hugo Migneron27-Oct-04 4:50
Hugo Migneron27-Oct-04 4:50 
GeneralRe: System.Web.Mail Pin
Salil Khedkar27-Oct-04 21:10
Salil Khedkar27-Oct-04 21:10 
GeneralRe: System.Web.Mail Pin
Heath Stewart27-Oct-04 21:13
protectorHeath Stewart27-Oct-04 21:13 
GeneralRe: System.Web.Mail Pin
Hugo Migneron28-Oct-04 3:53
Hugo Migneron28-Oct-04 3:53 
Thank you for your reply,
Actually, i was using a class called smtpEmailer that i took on this site http://www.codeproject.com/csharp/smtpemailer.asp but i have a problem with the attachments, which i need to send.
Everything works fine with the class, but when i send a email with an attachment, the email is sent/received with no problem but i can't see the attachment. It is like the message had no attachment at all, except for the fact that the attachment is there, since an empty body message is 400k big (when i put a 400k attachment). I searched a lot to find a solution for this problem but haven't found yet. This is the commands i send in the socket for a basic email with a text file attachment:
<br />
HELO xxxx.xxxxxx.com<br />
MAIL FROM:<xxxx@xxxxxxxxxx.com> <br />
RCPT TO:<xxxx@xxxxxxx.com><br />
DATA<br />
MIME-Version: 1.0<br />
X-Mailer: SST_OnSite.SmtpEmailer<br />
FROM: xxxxx@xxxxxxxx.com<br />
TO: xxxx@xxxxxxxx.com<br />
REPLY-TO: xxxx@xxxxxxxxxx.com<br />
DATE: Wed, 27 Oct 2004 19:20:34 GMT<br />
SUBJECT: TEST<br />
Content-Type: multipart/mixed; boundary="#SEPARATOR1#"<br />
<br />
<br />
This is a multi-part message in MIME format.<br />
<br />
--#SEPARATOR1#<br />
Content-Type: application/octet-stream; name="a.txt"<br />
Content-Transfer-Encoding: base64<br />
Content-Disposition: attachment; filename="a.txt"<br />
Content-ID: <a><br />
<br />
<br />
--#SEPARATOR1#<br />
Content-Type: multipart/alternative; boundary="#SEPARATOR2#"<br />
<br />
<br />
--#SEPARATOR2#<br />
Content-Type: text/plain; charset=iso-8859-1<br />
<br />
<br />
Your email client does not support MHTML messages<br />
<br />
<br />
--#SEPARATOR2#<br />
Content-Type: text/html; charset=iso-8859-1<br />
Content-Transfer-Encoding: quoted-printable<br />
<br />
<br />
This is the body of the message<br />
--#SEPARATOR2#--<br />
<br />
<br />
--#SEPARATOR1#--<br />
<br />
<br />
.<br />
QUIT

I know the server works fine (i have no problems with attachments when i send them with System.Web.Mail namespace or with Outlook)
Any Help with this would be appreciated

Thanks

Hugo Migneron
GeneralRe: System.Web.Mail Pin
Heath Stewart28-Oct-04 5:49
protectorHeath Stewart28-Oct-04 5:49 
GeneralForcing Mouse to a Position Pin
MarkMokris27-Oct-04 3:28
MarkMokris27-Oct-04 3:28 
GeneralRe: Forcing Mouse to a Position Pin
Stefan Troschuetz27-Oct-04 3:49
Stefan Troschuetz27-Oct-04 3:49 
Generalcreating windows control... Pin
sianatia27-Oct-04 3:11
sianatia27-Oct-04 3:11 
GeneralRe: creating windows control... Pin
sreejith ss nair27-Oct-04 3:22
sreejith ss nair27-Oct-04 3:22 
GeneralRe: creating windows control... Pin
sianatia27-Oct-04 19:21
sianatia27-Oct-04 19:21 
GeneralRe: creating windows control... Pin
sreejith ss nair28-Oct-04 2:49
sreejith ss nair28-Oct-04 2:49 
GeneralRe: creating windows control... Pin
Craig G Fraser28-Oct-04 3:10
Craig G Fraser28-Oct-04 3:10 
GeneralRe: creating windows control... Pin
sianatia29-Oct-04 1:56
sianatia29-Oct-04 1:56 
QuestionHow hiding an user account with C# code Pin
May...27-Oct-04 2:49
May...27-Oct-04 2:49 
AnswerRe: How hiding an user account with C# code Pin
Sebastian Schneider27-Oct-04 3:41
Sebastian Schneider27-Oct-04 3:41 
GeneralRe: How hiding an user account with C# code Pin
May...27-Oct-04 5:55
May...27-Oct-04 5:55 
AnswerRe: How hiding an user account with C# code Pin
Dave Kreskowiak27-Oct-04 4:12
mveDave Kreskowiak27-Oct-04 4:12 
GeneralRe: How hiding an user account with C# code Pin
May...27-Oct-04 5:59
May...27-Oct-04 5:59 
Generala similar problem Pin
momer27-Oct-04 2:46
momer27-Oct-04 2:46 
GeneralRe: a similar problem Pin
sreejith ss nair27-Oct-04 3:03
sreejith ss nair27-Oct-04 3:03 
GeneralRe: a similar problem Pin
momer27-Oct-04 3:11
momer27-Oct-04 3:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.