Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 986 results for
mailmessage
- Page 1
MailMessage(To, From); ?
Programming
Software Development
15 Years Ago
by Liszt
… set an emailTo and emailFrom in the arguments of
MailMessage
. When I compile this code, I have an… errormessage that says. [I]'System::Net::Mail::
MailMessage
' : class does not have a copy-constructor[/I] …;; String^ EmailFrom= "testFrom@hotmail.com";
MailMessage
mm = gcnew
MailMessage
(EmailRecipient, EmailFrom); [/code]
Re: MailMessage(To, From); ?
Programming
Software Development
15 Years Ago
by cikara21
… { SmtpClient client("?Host?"); client.Port::set(587);
MailMessage
^msg=gcnew
MailMessage
(); msg->To->Add("?dest?"); //... msg…
Re: MailMessage(To, From); ?
Programming
Software Development
15 Years Ago
by Liszt
…; to the EmailAccount that will send the email ? [code]
MailMessage
^ mm = gcnew
MailMessage
(From@gmail.com, To@gmail.com); mm->Subject…
Re: MailMessage(To, From); ?
Programming
Software Development
15 Years Ago
by Liszt
… ? [code] SmtpClient client(smtp.gmail.com); client.Port::set(587);
MailMessage
^ mm; //Declare client.EnableSsl = true; //Depending on server SSL Settings… < 2; i++) [COLOR="Red"]{[/COLOR] mm = gcnew
MailMessage
(EmailFrom->Trim(), EmailList[i]->Trim()); mm->Subject…
Re: MailMessage(To, From); ?
Programming
Software Development
15 Years Ago
by Liszt
… send: Subject: "Hello" Message: "This is the
mailmessage
" from email: [email]testfrom@hotmail.com[/email] to this…
MailMessage Problems
Programming
Software Development
15 Years Ago
by cVz
… = email_address; // Declaring a new instance of a mail message
MailMessage
E_Mail_Message = new
MailMessage
(); //MailAddress MA = new MailAddress("info@place.co.za…
Re: MailMessage(To, From); ?
Programming
Software Development
15 Years Ago
by Comatose
I'm pretty sure you can use .NET inside of C++, but I'm willing to bet it's going to be an uglier mess than simply using sockets and sending the e-mail yourself....but that in and of itself is nasty, because you have to deal with low-level sockets (be wise, use SDL_Net and save the sanity). Worse yet, when dealing with an e-mail host like hotmail.…
Re: MailMessage(To, From); ?
Programming
Software Development
15 Years Ago
by Liszt
Thank you Comatose, I am prepared to learn all that ugly mess because I really have the ambition to do this in C++. = ) I have done a program in ASP.net on a webpage with a lot of code in C# for ASP.net wich works fine, but the syntax and classes are not really the same in ordinary C++. However what parameters I have that I dont know how to …
Re: MailMessage(To, From); ?
Programming
Software Development
15 Years Ago
by Narue
I think you need to get one thing straight when using C++/CLI. When you use gcnew, you're allocating managed memory to a .NET reference. When you use new, you're allocating unmanaged memory to a C++ pointer. I added the pointer part because the syntax is equivalent (pointers use * and new, .NET references use ^ and gcnew): [code=cplusplus] // …
Re: MailMessage(To, From); ?
Programming
Software Development
15 Years Ago
by Liszt
I have used the code above to send 10 emails to myself in that loop. As I notice it takes about 1 second per email to be delievered. Why does it take so long time ? For example why will not all 10 emails be sent in only 1 second ? What is the bottleneck here ? I wonder what could be possible to do, to increase this speed ?
Re: MailMessage(To, From); ?
Programming
Software Development
15 Years Ago
by Comatose
I'd wager the code is blocking... waiting for the network. Maybe I'm wrong, but usually in a program like that (that sends a bunch of data over a network) the bottleneck and wait time is the network.
Re: MailMessage(To, From); ?
Programming
Software Development
15 Years Ago
by Nick Evan
[QUOTE=Liszt;795110] For example why will not all 10 emails be sent in only 1 second ? [/QUOTE] Why would you want to do that anyway? Smells like an email-bomb to me, and that would be against the rules.... :icon_wink:
Re: MailMessage(To, From); ?
Programming
Software Development
15 Years Ago
by Liszt
In a way yes, honestly but it is for about 3000 customers for my company where I will give them advertisment and as the customers increases there would be good to be able to send the email quickly. As I understand this depends of the smpt.gmail.com server but I have heard and red that this could be sent through my own computers instead of that …
C# ASP.NET MailMessage error
Programming
Web Development
11 Years Ago
by mmeyer49
… = TextBoxBody.Text;
MailMessage
mailMessage
= new
MailMessage
();
mailMessage
.To.Add(new MailAddress(to));
mailMessage
.From = new MailAddress(from);
mailMessage
.Subject = subject;
mailMessage
.Body = body; SmtpClient…
Using MailMessage in a managed application
Programming
Software Development
14 Years Ago
by BobFX
…;); MailAddress ^To = gcnew MailAddress("ttt@zzz.com");
MailMessage
^message = gcnew
MailMessage
(From, To); message->Subject = "Testing sending mail…
Attaching a file to a mailmessage with vb2008
Programming
Software Development
13 Years Ago
by jonniebl
… out. My code looks like this. [ Dim mail As New
MailMessage
() 'set the addresses mail.From = New MailAddress("xxx@cox…
Re: Attaching a file to a mailmessage with vb2008
Programming
Software Development
13 Years Ago
by Teme64
… to the attachments [CODE=VB.NET] Dim mail As New
MailMessage
() 'set the addresses mail.From = New MailAddress("xxx@cox…
'ReplyToList' is not a member of 'System.Net.Mail.MailMessage'!
Programming
Software Development
13 Years Ago
by cmgarnett
… "'ReplyToList' is not a member of 'System.Net.Mail.
MailMessage
'". Intellisense offers me the ReplyToList collection and Add method…
Re: MailMessage Problems
Programming
Software Development
15 Years Ago
by Murtan
That looks like a mass-mailing application...not sure I WANT to help, but does it just not work or are you getting an exception? If you're getting an exception, what is it? If it just "doesn't work", what debugging (to ensure you are getting the right parameters set) have you done?
Re: MailMessage Problems
Programming
Software Development
15 Years Ago
by cVz
Nevermind it does work , it sent to my junk folder , i never saw it , thank you guys ....
Re: MailMessage Problems
Programming
Software Development
15 Years Ago
by cVz
[QUOTE=Murtan;748818]That looks like a mass-mailing application...not sure I WANT to help, but does it just not work or are you getting an exception? If you're getting an exception, what is it? If it just "doesn't work", what debugging (to ensure you are getting the right parameters set) have you done?[/QUOTE] thanks dude, it …
Re: Newbie non-invocable member 'sytem.net.mailmessage.to' cannot be used like a method
Programming
Software Development
13 Years Ago
by exgliderpilot
I think I should have added: System.Net.Mail.
MailMessage
Message = new System.Net.Mail.
MailMessage
(); sorry...
Re: Newbie non-invocable member 'sytem.net.mailmessage.to' cannot be used like a method
Programming
Software Development
13 Years Ago
by Lusiphur
… what's wrong there... "non-invocable member 'sytem.net.
mailmessage
.to' cannot be used like a method" means that…
Re: C# ASP.NET MailMessage error
Programming
Web Development
11 Years Ago
by pritaeas
Are you sure that the web.config settings are applied automatically?
Re: C# ASP.NET MailMessage error
Programming
Web Development
11 Years Ago
by JorgeM
It is also possible that there is a firewall between your server and gmail blocking access. You may want to try replacing lines 17-18 with: SmtpClient smtp = new SmtpClient(); smtp.Host = "smtp.gmail.com"; smtp.Credentials = new System.Net.NetworkCredential ("YourUserName@gmail.com","…
Re: C# ASP.NET MailMessage error
Programming
Web Development
11 Years Ago
by mmeyer49
I have done it using smtp.Credential, system.net.credentials, using Appsetting in WEb.config. But at school or my house I get the error the receiving computer is blocked //smtpClient.Port = 587; //smtpClient.Host = "smtp.gmail.com"; //System.Net.NetworkCredential NC = new NetworkCredential("bob@…
Re: Using MailMessage in a managed application
Programming
Software Development
14 Years Ago
by jonsca
Try substituting these in for line 8. You were trying to pass it into client as static which might work but this way you get all the proper info in there. I tested it, it works. [code] CredentialCache ^ mycreds = gcnew CredentialCache(); mycreds->DefaultNetworkCredentials->UserName = "bob"; mycreds->…
Re: Using MailMessage in a managed application
Programming
Software Development
14 Years Ago
by BobFX
[QUOTE=jonsca;1126105]Try substituting these in for line 8. You were trying to pass it into client as static which might work but this way you get all the proper info in there. I tested it, it works. [code] CredentialCache ^ mycreds = gcnew CredentialCache(); mycreds->DefaultNetworkCredentials->UserName = "bob"; …
Re: Using MailMessage in a managed application
Programming
Software Development
14 Years Ago
by jonsca
I'm not sure what the problem is... I sent via ISP's SMTP server to gmail and it worked. A couple of possibilities I ran across: [URL="http://social.answers.microsoft.com/Forums/en-US/xpnetwork/thread/9f4b3fc9-10f8-4bf0-a604-db942a1d0e34/"]Try changing client->Port to 587.[/URL] -or- Make sure you're running as admin so that you have …
Re: Using MailMessage in a managed application
Programming
Software Development
14 Years Ago
by BobFX
[QUOTE=jonsca;1126433]ITry changing client->Port to 587.[/URL] -or- Make sure you're running as admin so that you have the right privileges to send email.[/quote] Unfortunately, that did not help. I was trying with a GMX account. With GMAIL, I get a different message: [code]]The SMTP server requires a secure connection or the client …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC