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++ Widgets - General questions or Mixed problems » Sending an email from Upp application
Sending an email from Upp application [message #23557] Fri, 30 October 2009 22:58 Go to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Hi,
Does Upp has any support for sending emails? If so, please could you telme with class does it or how do i do it?

Many thanks

Alex
Re: Sending an email from Upp application [message #23560 is a reply to message #23557] Sat, 31 October 2009 04:25 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Package Web. Class SmtpMail.

Regards,
Novo
Re: Sending an email from Upp application [message #23571 is a reply to message #23557] Sun, 01 November 2009 10:26 Go to previous messageGo to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Thank you.

Please, how do i make the autentication on the mail server, to send login and password?

I see that there is a class WebUser but how to i "link" this class to the SmtpMail class to do autentication at email server?


I have this code, but does nothing.

SmtpMail mail;
mail.Host("smtp.gmail.com");
mail.Port(587);
    
mail.To("alex@gmail.com");
mail.From("alex@gmail.com");
mail.Subject("Upp email test");
mail.Text("This is an email sent from an upp app");
    
mail.Send();
    
PromptOK("Email Done!");


Thanks a lot

Alex

[Updated on: Sun, 01 November 2009 10:41]

Report message to a moderator

Re: Sending an email from Upp application [message #23572 is a reply to message #23571] Sun, 01 November 2009 11:43 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
alex100 wrote on Sun, 01 November 2009 10:26

Thank you.

Please, how do i make the autentication on the mail server, to send login and password?

I see that there is a class WebUser but how to i "link" this class to the SmtpMail class to do autentication at email server?


I have this code, but does nothing.

SmtpMail mail;
mail.Host("smtp.gmail.com");
mail.Port(587);
    
mail.To("alex@gmail.com");
mail.From("alex@gmail.com");
mail.Subject("Upp email test");
mail.Text("This is an email sent from an upp app");
    
mail.Send();
    
PromptOK("Email Done!");


Thanks a lot

Alex


Hi,

perhaps this post
http://www.ultimatepp.org/forum/index.php?t=msg&&th= 1529&goto=5785#msg_5785
may help.

Luigi
Re: Sending an email from Upp application [message #23581 is a reply to message #23557] Mon, 02 November 2009 11:34 Go to previous messageGo to next message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
smtpEx.zip is empty...
O got it from other location...

I would like to use gmail server.
It seems that it uses SSL. So, the smtpEx class doesnt handle SSL, right? Sad

Thanks a lot

Alex

[Updated on: Mon, 02 November 2009 17:13]

Report message to a moderator

Re: Sending an email from Upp application [message #23591 is a reply to message #23581] Mon, 02 November 2009 20:22 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
alex100 wrote on Mon, 02 November 2009 11:34

smtpEx.zip is empty...
O got it from other location...

I would like to use gmail server.
It seems that it uses SSL. So, the smtpEx class doesnt handle SSL, right? Sad
Alex


No, it doesn't use SSL. If you need smtpEx let me know.

Luigi
Re: Sending an email from Upp application [message #23595 is a reply to message #23557] Tue, 03 November 2009 12:03 Go to previous message
alex100 is currently offline  alex100
Messages: 118
Registered: November 2007
Experienced Member
Thanks Luigi

I downloaded it with success from other location on the Internet. Now i cant remember its address.

What i need is a way to connect to google mail server... IT uses SSL...

I will try to see if there is any windows free dll that dop that and then i will try to use it from the upp application.

Thanks a lot

Alex
Previous Topic: MenuBar::Execute isn't modal?
Next Topic: Problem with TopWindow and Widgets using Layout editor
Goto Forum:
  


Current Time: Thu Apr 18 09:08:55 CEST 2024

Total time taken to generate the page: 0.02345 seconds