Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » SmtpMail class
Re: SmtpMail class [message #5785 is a reply to message #5780] Mon, 16 October 2006 10:08 Go to previous messageGo to previous message
nicomesas is currently offline  nicomesas
Messages: 104
Registered: September 2006
Location: Barcelona, Spain
Experienced Member
The class that I have added have the name: SmtpMailEx and is compatible with SmtpMail in Web package.

This a complete retort of the SmtpMail class to which I have added a function that makes the authentication in smtp server.

Also I have changed the size of the buffer of reading of socket (since it gave errors me).

In order to be able to prove simply you must it open new package, to include package Web and to add the 2 files that there are in zip which I raised yesterday. In order to prove it, simply you must copy the following code.
mail.Host("smtp.YOURSERVER.net")
	.From("FROM@SERVER.COM")
	.Subject("Jelou friend!")
	.To("TO@OTHER.COM")
	.Text("ANY TEXT\nBYE")
	.User("USER")
	.Password("PASSWORD") ;

	if (mail.Send())
		Cout() << "OK\r\n" ;
	else
		Cout() << "BAD\r\n" ;
	Cout() << mail.GetError() << "\r\n" 
	<< mail.GetTranscript() << "\r\n" ;

On the other hand, do not try to replace the original class, only I would like to see if it works in Windows to include the new functionalities in the original class.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: method in separate process
Next Topic: Socket: how to check wether new data arrived? timeout = NULL?
Goto Forum:
  


Current Time: Wed Jun 18 19:22:42 CEST 2025

Total time taken to generate the page: 0.04860 seconds