How do I get a MX Server name ...
would a solution perhaps be the implementation of a smtp-server in purebasic? so you wouldn't have to use a smtp-server on the net but use the local smtp-server of your program on the customers machine.
perhaps there is some worm's source code around where you can rip off and convert to pure the 'send mail' part.
perhaps there is some worm's source code around where you can rip off and convert to pure the 'send mail' part.
try checking the registry for this path.. inside there's a key with the name "SMTP Server".. just use that value.. shouldn't be too hard..
note: this works only if the user has installed Outlook (Office)
Other mailclient users (like Outlook Express, Eudora etc.) should post where their account info is, so we can gather a little "database" of where the info lies... 
note: this works only if the user has installed Outlook (Office)
Code: Select all
HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts\00000001

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
I've delt with this issue already with Kapital - the only solution I found was to ask users to enter the SMTP server address. MANY ISPs (especially in the US) are blocking outgoing SMTP connections to anything but their SMTP servers in a (futile) effort to prevent SPAM.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
i think implementing a "smtp-server in purebasic" would be a big task. but it would circumvent the ISP's blocking of SMTP ports since it communicates directly to the pop3 server. am i wrong?
on the other hand i don't know if ISP's are also blocking ports for communication between pop3 and smtp servers on dial-in style connections.
on the other hand i don't know if ISP's are also blocking ports for communication between pop3 and smtp servers on dial-in style connections.
it all depends on the isp, in general:
- pop3 only for incoming mail
- smtp only for outgoing mail
- most isp's block smtp traffic from OUTSIDE their network, they often don't filter smtp traffic crossing network boundaries, but the receiving isp may not accept it
if you have your own smtp server on a private ip most other smtp clients can deliver mail to you
pop3 is rarely used for outgoing mail (although i think it can, or might be able to depending on version / implementation, i could be wrong here)
so, for smtp: either scan for it in the registry (what is te user using now) or ask him / her to type it in, or have your own smtp server up and running and hope that the isp did not block it...
- pop3 only for incoming mail
- smtp only for outgoing mail
- most isp's block smtp traffic from OUTSIDE their network, they often don't filter smtp traffic crossing network boundaries, but the receiving isp may not accept it
if you have your own smtp server on a private ip most other smtp clients can deliver mail to you
pop3 is rarely used for outgoing mail (although i think it can, or might be able to depending on version / implementation, i could be wrong here)
so, for smtp: either scan for it in the registry (what is te user using now) or ask him / her to type it in, or have your own smtp server up and running and hope that the isp did not block it...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
SMTP is the only mail delivery protocol used today (well, I guess you can still find a UUCP server around too)..
POP3 has nothing to do with the delivery of mai as it is a protocol designed for getting mail from your mail server (as opposed to getting it into the mail server!)...
POP3 has nothing to do with the delivery of mai as it is a protocol designed for getting mail from your mail server (as opposed to getting it into the mail server!)...
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
ah i think i'm getting it. i send my outgoing mail to the smtp server of my mail service provider. the smtp server of my provider sends the mail to the smtp server of the recipient's provider. if this is true, then the sending smtp server still would have to get the recipients smtp server - same problem.
???
???
glad i said 'i could be wrong here' 

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
-
- 666
- Posts: 1033
- Joined: Mon Sep 01, 2003 2:33 pm
couldn't you just use something like....
This way, the forms data is sent to the default mail client? saves pissing around anyway. and at least this way you will know who it is from too 
Late edit... you could use MAPI (Messaging Application Programming Interface - See MSDN) I suppose too, but don't ask me for an example for that
well not yet anyway.
Code: Select all
;Sendmail using shell execute example
;Mailto:ash@satanicdreams.com
em_subject$= "This is the subject line"
em_body$= "Message body text goes here"
em_mail$= "mailto:Me@MyEmailAddress.com?subject=" + em_subject$ +"&body="+ em_body$
If ShellExecute_(Handle,"open",em_mail$, nil, nil, SW_SHOWNORMAL)
MessageRequester("Executed ok", "Loading default mail client")
EndIf
End

Late edit... you could use MAPI (Messaging Application Programming Interface - See MSDN) I suppose too, but don't ask me for an example for that

-
- Enthusiast
- Posts: 218
- Joined: Sat Apr 26, 2003 4:47 am
- Location: Dullsville..population: me
- Contact:
Have you read the RFCs for smtp and domain lookups? They describe the mechanisms of how it all works.hm wrote:if this is true, then the sending smtp server still would have to get the recipients smtp server - same problem.
Doing an MX lookup requires querying a domain name server, (sometimes several servers!) and from what I remember it uses UDP

-
- User
- Posts: 66
- Joined: Fri Oct 17, 2003 2:42 am
RE: Many ISP's Block outbound SMTP
Doesn't matter... Cox blocks SMTP (Port 25). One way to get around this is to use a service such as SoftHome.net offers. Both a FREE & a PAY version. They simply accept INBOUND SMTP from there subscribers on one or more alternate ports and send the OUTBOUND on the standard port! Besides, most providers will UNBLOCK this if you have a commercial account & request they do so. Not to mention quite a few other ways around that problem. Sorry if I strayed a little off topic here!
Cherokee~Stalker
Cherokee~Stalker