Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Sending e-mail using non-default server

 [1/8] from: jon_saltzman:pitzer at: 18-Nov-2001 0:27


I know Rebol has already ascertained my email from initial setup, but if I wanted to send an email from a different account, such as smtp.anyplaceonthenet.com, using any user and any password, how would I do so? In other words - I know how to read mailbox: open pop://user:[pass--mail--mailserver--com] Is there any code that does this? -> Open mailbox connection Send using this mailbox Close mailbox -Jon

 [2/8] from: brett:codeconscious at: 19-Nov-2001 8:21


You could use the set-net function. Have a read of the Rebol/Core users guide - Network Settings/Initial Setup/Basic Settings. I believe you can issue set-net at any time. Brett. ----- Original Message ----- From: "Jon Saltzman" <[jon_saltzman--pitzer--edu]> To: <[rebol-list--rebol--com]> Sent: Sunday, November 18, 2001 7:27 PM Subject: [REBOL] Sending e-mail using non-default server
> I know Rebol has already ascertained my email from initial setup, but if I
wanted to send an email from a different account, such as smtp.anyplaceonthenet.com, using any user and any password, how would I do so?

 [3/8] from: tim:johnsons-web at: 18-Nov-2001 13:08


On Mon, Nov 19, 2001 at 08:21:37AM +1100, Brett Handley wrote:
> You could use the set-net function.
Greetings:
> Have a read of the Rebol/Core users guide - Network Settings/Initial > Setup/Basic Settings. > I believe you can issue set-net at any time.
;Yes. I frequently use the following for something like form-mail ; Example: format: [From "[tim--johnsons-web--com]" Server "postman.johnsons-web.com"] set-net[format/From format/Server none none none none] tj
> Brett. > ----- Original Message -----
<<quoted lines omitted: 28>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.johnsons-web.com

 [4/8] from: gschwarz:netconnect:au at: 19-Nov-2001 9:47


Jon, One big problem you will have, many ISP's will not let you relay mail via different smtp server. This is to stop spam mailers. Most ISP's you dial into will only allow you to use their smtp server. Regards, Greg ----- Original Message ----- From: "Jon Saltzman" <[jon_saltzman--pitzer--edu]> To: <[rebol-list--rebol--com]> Sent: Sunday, November 18, 2001 7:27 PM Subject: [REBOL] Sending e-mail using non-default server
> I know Rebol has already ascertained my email from initial setup, but if I
wanted to send an email from a different account, such as smtp.anyplaceonthenet.com, using any user and any password, how would I do so?

 [5/8] from: tim:johnsons-web at: 18-Nov-2001 14:02


On Mon, Nov 19, 2001 at 09:47:42AM +1100, Greg Schwarz wrote:
> Jon, > One big problem you will have, many ISP's will not let you relay mail via > different smtp server. This is to stop spam mailers. Most ISP's you dial > into will only allow you to use their smtp server. > Regards, > Greg
Hi Jon/Greg That is almost universally the case. Thus the use of set-net at run time. One can also read the dns of the machine or use system/options/cgi/server-name to enable the calling script to "know" what machine it may be on, so as to chose the correct SMTP server. tj
> ----- Original Message ----- > From: "Jon Saltzman" <[jon_saltzman--pitzer--edu]>
<<quoted lines omitted: 29>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.johnsons-web.com

 [6/8] from: holger::rebol::com at: 18-Nov-2001 15:29


On Mon, Nov 19, 2001 at 09:47:42AM +1100, Greg Schwarz wrote:
> Jon, > One big problem you will have, many ISP's will not let you relay mail via > different smtp server. This is to stop spam mailers. Most ISP's you dial > into will only allow you to use their smtp server.
Usually it is the other way around. The ISP you dial into does not care which SMTP server you use, but the SMTP server you connect to will only accept your email if it either recognizes you as a valid sender from the same domain as the server, or if the server is responsible for accepting email to the recipient of your email. What this means is that you can usually either use the SMTP server of your ISP or the SMTP server the email eventually has to be sent to (as determined by DNS-MX), but not any other, arbitrary SMTP server. For ISPs to physically block outgoing SMTP traffic to non-local SMTP servers is relatively rare, because it breaks a lot of default Unix setups that run sendmail without a "smarterhost" entry. A lot of ISPs actually prefer you to run sendmail without "smarterhost", i.e. to connect directly to the destination SMTP server instead of going through the ISP's server, because this reduces the load on the ISP's server, in particular if you run and expand mailing lists. -- Holger Kruse [holger--rebol--com]

 [7/8] from: tim:johnsons-web at: 18-Nov-2001 16:20


On Sun, Nov 18, 2001 at 03:29:26PM -0800, [holger--rebol--com] wrote:
> On Mon, Nov 19, 2001 at 09:47:42AM +1100, Greg Schwarz wrote: > > Jon,
<<quoted lines omitted: 6>>
> sender from the same domain as the server, or if the server is > responsible for accepting email to the recipient of your email.
I stand corrected. As always, I'm learning a lot from Holger. :>)
> What this means is that you can usually either use the SMTP server of > your ISP or the SMTP server the email eventually has to be sent to (as
<<quoted lines omitted: 13>>
> [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.johnsons-web.com

 [8/8] from: greggirwin:mindspring at: 18-Nov-2001 19:33


Hi Jon, << I know Rebol has already ascertained my email from initial setup, but if I wanted to send an email from a different account, such as smtp.anyplaceonthenet.com, using any user and any password, how would I do so? >> Two thoughts come to mind, but I don't know what will work having not tried it myself. Using the /header refinement *might* work, but I haven't looked at how e-mail is sent to know. Using set-net to change the sending address temporarily seems like an easy solution. Again, an untested idea. The latter wouldn't work for storing and sending items (unless you do it for each item when you finally send them for real). --Gregg

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted