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 » Community » Newbie corner » ProtectServer and SMTP setting (problem sending mail)
ProtectServer and SMTP setting [message #46612] Sat, 11 June 2016 12:02 Go to next message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
Hi guys,
it has been a long time since I wrote you on the forum but now I'm here again asking for you help.

I have a problem with ProtectServer setting, I'm no longer able to set it correctly to send mails.


ProtectServer - main.cpp
        // both solutions...
	server
		.GetSmtp()
			.Host("mail.matteomosconi.com")
			.Port(587)
        ;
		.GetSmtp()
			.Host("smtp.gmail.com")
			.Port(587)
	;


Protect - ProtectServer.cpp
// sends activation mail to user
bool ProtectServer::SendActivationMail(VectorMap<String, Value> const &userData, String const &locale)
{
	...

	smtp.New();
	smtp.TimeSent(GetSysTime());
	smtp.Auth("xxxxxxxxxx","xxxxxxxxxx");
	smtp.To(userData.Get("EMAIL"));
	smtp.Subject(subject);
	smtp.From(serverVars.Get("SERVER_NAME"));
	smtp.Text(body, mime);
	return smtp.Send();
}


I tryed to set smtp.SLL() (for google account) but when I compile i receive the following error:
C:\Users\Matteo\Dropbox\2_Sviluppo++\Workspace_upp\Protect\ProtectServer.cpp(794) : error C2039: 'SSL' : is not a member of '
	Upp::SmtpMail'
        c:\upp\uppsrc\web\smtp.h(2) : see declaration of 'Upp::SmtpMail'
Protect: 8 file(s) built in (0:02.91), 364 msecs / file, duration = 4844 msecs, parallelization 100%
$blitz.cpp
Cypher: 3 file(s) built in (0:00.87), 293 msecs / file, duration = 1515 msecs, parallelization 71%

There were errors. (0:05.26)


Someone can you help me about it? I have a working compiled version of the ProtectServer (without SLL) but I forget the setting.... Sad
Long time ago I read on the forum about a php version of the ProtectServer... is it working?

Thanks for your time. Regards,
Matteo
Re: ProtectServer and SMTP setting [message #46633 is a reply to message #46612] Thu, 16 June 2016 22:35 Go to previous message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
I don't know why but without
	smtp.From(serverVars.Get("SERVER_NAME"));

it is back to work...


Matteo
Previous Topic: Network remote control
Next Topic: automatic search for compiler
Goto Forum:
  


Current Time: Thu Mar 28 18:48:24 CET 2024

Total time taken to generate the page: 0.00970 seconds