|
 |
|
|
http://www.surfsideprint.com/SendMail.aspx
I'm new to ASP and don't understand the error...the "web.config" file does not exist in the root directory - I'm so confused...lol Can you help?
Bruce info@traveltechservices.com
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi,
I have created a win forms app. I can open the default email application on my computer, using System.Diagnostics.Process.Start("mailto:lobojason@gmail.com?Subject=Archive&Attach=D:\Archives\Email_J_3-9-2007 10_36_25 AM.txt")
But when the email application window opens up, the To field is in place, the subject field is in place, but there is no attachment.
PLs help gurus....its urgent..
Jlo
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi,
Can anybody help me to understand what does below statment mean?? Where can i check for addresses that exist on the SmtpMail.SmtpServer??
Below statement copy from above guideline: -
"Use real from and to addresses that exist on the SmtpMail.SmtpServer. Do not use invalid address"
Regards) Smile aways!!
christe
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi,
I am new user for stmp server. I did conf IIS relay to local IP 127.0.0.1 and delivery (advance) smart host to my mail server example: mail.starhub.com (get from my outlook mail), authentication anonymous access.
While i try launch mail form and input to: xx@yahoo.com, from: (myname)@starhub.com... after click send "smtp exception: The server respond 5.7.1 unable to relay ..starhub.com"
Anybody know what going on?? How can i correct the error??
Cheers Minkely
christe
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I want to Implement a Mail Server using .NET what all I wil be required to implement it . Except basic requirements.Do I require SMTP or POP protocols also. Pls Help !!!!!
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
|
;PThere you go, enjoy  ============================================= plzz refer this code, u will get ur answer......
using System.Net.Mail;
public static void SendMailMessage(string sMailBody, string sFromAddress, string sFromName, string[] sToAddress, string[] sCC, string[] sBCC, string sSubject, bool IsHTML) { SmtpClient objSMTPClient = new SmtpClient("localhost"); MailMessage objMessage = new MailMessage();
try { MailAddress objFromAddress = new MailAddress(sFromAddress, sFromName);
// From address will be given as a MailAddress Object objMessage.From = objFromAddress;
// To address collection of MailAddress for (int i = 1; i <= sToAddress.Length; i++) { objMessage.To.Add(sToAddress[i - 1]); }
// CC and BCC optional // MailAddressCollection class is used to send the email to various users // You can specify Address as new MailAddress("user@host.com") if (sCC != null) { if (sCC.Length > 0) { for (int i = 1; i <= sCC.Length; i++) { objMessage.CC.Add(sCC[i - 1]); } } } if (sBCC != null) { if (sBCC.Length > 0) { for (int i = 1; i <= sBCC.Length; i++) { objMessage.Bcc.Add(sBCC[i - 1]); } } }
// Body can be html or text format if (IsHTML) objMessage.IsBodyHtml = true;
objMessage.Subject = sSubject; objMessage.Body = sMailBody;
// Send SMTP mail objSMTPClient.Send(objMessage); } catch { } }
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Iam using MailMessage and Smtp classes to send email but iy doesn't work .
I used your code and there is error message after i runs the program .
The mseegae is:
System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040220): The "SendUsing" configuration value is invalid. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args) at System.Web.Mail.LateBoundAccessHelper.CallMethod(Type type, Object obj, String methodName, Object[] args) at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.LateBoundAccessHelper.CallMethod(Object obj, String methodName, Object[] args) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at EMailSample.SendMail.btnSend_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\testsendemail\sendmail.aspx.cs:line 147
|
| Sign In·View Thread·PermaLink | 1.33/5 (3 votes) |
|
|
|
 |
|
|
Thanx Kumar for giving such a good program. My project was at the end point But now it is as smooth as before. Thanx for it. I have just one question. It would be better if you could give the explanation in a different read me file.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I get this error when an email is sent with attachment from Web page. If I comment out the line with the attachment, the email is sent fine. The attachment is a file that is uploaded and then saved on the server.
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
|
Hi Here you didnt mention which type of file you attach, because if you attach .exe,.dll or some system file's mean your firewall will protect these type of files so you will get invalid mail attachment message. if you want to attach thest kind of files you can zip the files and attach. Try like this.....
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
How to sending a Mail Message with an attachment file that retrieved from mail server?
Thanks.
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
 |
|
|
After calling the SmtpMail.Send (mailMessage), when I try to delete the attachment files I get this:
The process cannot access the file 'C:\Altug\Websites\Medinfo\__sahina_y221xv55cqikh255e2pnqk55\37230006.JPG' because it is being used by another process.
any ideas?
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
|
Just insert line mailMessage.Dispose();
after SmtpMail.Send
it's work for me
Surat Bunditraksana
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
|
Thank you for the solution to this problem. I had the same error and adding the Dispose() method after sending the message and before deleting the files allowed the files to be deleted.
David Silberman
|
| Sign In·View Thread·PermaLink | 4.00/5 (1 vote) |
|
|
|
 |
|
|
Hi, I have the same problem but not able to delete the file after calling the dispose on finally block. I have created a temporary file and after sending the mail i have used "objMailMessage.Attachments.Clear()" , "objMailMessage.Attachments.Dispose()" and "objMailMessage.Dispose()" . I have used these code in finally block after sending the mail then i call FIle.Delete(attachmetnfilename) but it throws an exception that "FIle is being used by another process".. Please help me!
vikram
Vicky
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
Hi,
after sending the mail try this code:
foreach (Attachment a in mail.Attachments) a.Dispose();
It works for me fine. Deleting the temporary file was possible without errors.
HTH Stephan
modified on Wednesday, June 4, 2008 7:42 AM
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
hello sir i used ur code to send mail but mail is not delivering to destination,, it goes to \inetpub\queue and stored there.. also norton is nt scanning any outgoing mail . i hv checked the setting also plz help me out
...sam... Impossible is nothing
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi sam
I'm also facing the same problem, mails do not reach to defined destination, instead get stored in queue folder. If you got the solution for this then pl let me know.
Regards Piyush
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Same problem here...Please someone help!!!
Keep Smiling, Hemant Jangid
“A professional programmer is an amateur who never quit.” - Morendil
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
For me it worked fine. But when i tried to send large wav file it did not worked instantly. After 5 mintues it was at the destination mail. Please send the error message so we can know about it.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
In fact, the code
SmtpMail.SmtpServer.Insert(0,"127.0.0.1");
will not set the SmtpServer property!! It simply does nothing.
But the Mail.Send() works also in case when the SmptServer property is empty or null, the default SMTP server is used than.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |