Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends
i want to send mail to many recipents using different mail servers(gmail,yahoo,hotmail,rediffmail etc)
I dont want to modify the code and write smtp.gmail.com for gmail and smpt.live.com for hotmail
I want a universal code...can anyone help me in this..
Regards
Posted
Comments
Zoltán Zörgő 5-Jul-13 16:19pm    
Good for you. I want a beer!
And what have you tried so far? How do you think this could be achieved?
Rajan Maheshwari 5-Jul-13 16:24pm    
boss i did it for multiple recipents for a single server....like gmail....
everywhere on net only a single server definition is provided.....
u can have 1 pal.
Asp_Learner 5-Jul-13 16:31pm    
very simple answer ,you cant do this.
Rajan Maheshwari 5-Jul-13 16:38pm    
ohhh thanks a lot haha

1 solution

SMTP is a universal protocol, so it should work with any SMTP server. What you can do is make a list of SMTP servers and run through the list sending email from those servers. There isn't a universal "code" out there to send from all of them, you need to make accounts and keep a list.

Its important to note though, that most SMTP servers require you have an account with them before they let you send email with them. That means you will have to provide login details for each SMTP server you use. Most servers shut down anonymous SMTP because of spam bots. A lot of servers also don't let you send email from an email other than the account (called relaying) for the same reason.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900