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 #5637 is a reply to message #5636] Fri, 06 October 2006 19:03 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1213
Registered: March 2006
Location: Italy
Senior Contributor
nicomesas wrote on Fri, 06 October 2006 18:37

I have throughout been studying this class the day and I believe that I have reached some conclusion.

The host that this class needs, is not like in other objects acceding to protocol smtp; with this class we directly sent the mail to the server of the mail recipient.

Then, the problem is in finding out which is the name of host for a given server, since if we sent a mail to alguien@gmail.com, host IS NOT gmail.com. I Think I need to find the MX record from gmail.com.

I have found some codes GNU useful, but finally I have remained with one found here
http://viewcvs.pointblue.com.pl/index.cgi/gj/sendemail/mx.c

I have written with it an example that I'm attached here, so that we pruned to follow the conversation between all.

Nico

PS. I don't know if the sample works in windows, because it use the (unknow for me) 'resolv' library



In fact doesn't work Confused
It stopped to
#include <netdb.h>
I try to get it

Luigi
 
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: Sat Aug 16 18:49:00 CEST 2025

Total time taken to generate the page: 0.05397 seconds