• Email

    From Merlin@VERT to All on Sun Jan 5 18:03:00 2003
    I am playing with the msgbase.save_msg functions.

    Is there a list of the properties for the hdr ?

    I want to make it send an email from sysop to
    a user and need to know how to pass the users email address to the save_msg funciton so it posts as an email. I have it posting locally (ala the chkspace.js) but where do I uput the email address

    Cheers
    Merlin ---------------------------------------------------------------------------
    Merlin - Sysop of CarSo BBs - telnet://carso.dyndns.org ---------------------------------------------------------------------------

    ---
    Synchronet CarSo BBs Beverley, UK telnet://carso.dyndns.org
  • From Digital Man@VERT to Merlin on Sun Jan 5 15:10:32 2003
    Re: Email
    By: Merlin to All on Sun Jan 05 2003 06:03 pm

    I am playing with the msgbase.save_msg functions.

    Is there a list of the properties for the hdr ?

    Not currently.

    I want to make it send an email from sysop to
    a user and need to know how to pass the users email address to the save_msg funciton so it posts as an email. I have it posting locally (ala the chkspace.js) but where do I uput the email address

    If you want it to go out as netmail (Internet e-mail), then you must add the to_net_addr and to_net_type header fields. Example: hdr.to_net_addr="rob@synchro.net";
    hdr.to_net_type=NET_INTERNET;

    digital man
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net
  • From Guardian Angel@VERT to All on Sun Jan 5 14:28:00 2003
    On Sun, 5 Jan 2003 18:03:00 LON, "Merlin" <merlin@VERT> wrote:

    I am playing with the msgbase.save_msg functions.

    Is there a list of the properties for the hdr ?

    I want to make it send an email from sysop to
    a user and need to know how to pass the users email address to the save_msg >funciton so it posts as an email. I have it posting locally (ala the >chkspace.js) but where do I uput the email address

    When you create your new message make sure it's referencing the "mail"
    message base, something along the lines of:

    New_mail_object = new MsgBase("mail");

    HTH
    GA

    ---
    Synchronet I Think It's Nifty BBS- Think a Nifty Thought! - ithinkitsnifty.com
  • From Merlin@VERT to Digital Man on Mon Jan 6 00:48:00 2003
    Re: Email
    By: Digital Man to Merlin on Sun Jan 05 2003 03:10 pm

    If you want it to go out as netmail (Internet e-mail), then you must add the to_net_addr and to_net_type header fields. Example: hdr.to_net_addr="rob@synchro.net";
    hdr.to_net_type=NET_INTERNET;
    Thanks, that worked.

    Is there a hdr.from_net_addr or something so I can make the email
    look lik eit has come from a different email address?
    I am using hdr.from="system operator" and it sends it from "system.operator@mydomain"
    I want it to be sent from System Operator (display name) but use the email of merlin@mydomain
    or is there a reply_to bit?

    Cheers
    Merlin ---------------------------------------------------------------------------
    Merlin - Sysop of CarSo BBs - telnet://carso.dyndns.org ---------------------------------------------------------------------------

    ---
    Synchronet CarSo BBs Beverley, UK telnet://carso.dyndns.org
  • From Digital Man@VERT to Merlin on Mon Jan 6 00:40:12 2003
    Re: Email
    By: Merlin to Digital Man on Mon Jan 06 2003 12:48 am

    If you want it to go out as netmail (Internet e-mail), then you must add to_net_addr and to_net_type header fields. Example: hdr.to_net_addr="rob@synchro.net";
    hdr.to_net_type=NET_INTERNET;
    Thanks, that worked.

    Is there a hdr.from_net_addr or something so I can make the email
    look lik eit has come from a different email address?

    Yes, there is.

    I am using hdr.from="system operator" and it sends it from "system.operator@mydomain"
    I want it to be sent from System Operator (display name) but use the email o merlin@mydomain
    or is there a reply_to bit?

    Yes, there's also replyto_net_addr and replyto_net_type, but you don't really need to use them if you change the from_net_addr/type.

    digital man
    ---
    Synchronet Vertrauen Home of Synchronet telnet://vert.synchro.net