Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Convert aeD sendmail to SMTP mail

  1. #1
    mtaborn
    Guest

    Default Convert aeD sendmail to SMTP mail

    I'd love to see a way to patch the aeD 4.1.IQ or others from sendmail to SMTP mail - sitewide. I'm running aeD on a win2003 Ent server - dedicated - and - only because of my other cold fusion projects and having a cold fusioin ent license for win only.

    http://www.disabilitypage.com/dating

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Hi,

    You can setup SMTP in your php.ini - so mail will still go out via a SMTP server you choose.

    Or, you could install MailEnable on your Windows box. http://www.mailenable.com/

    It is slightly tricky to configure - but it works - and the standard edition which is great for most people's needs is free.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  3. #3
    mtaborn
    Guest

    Default Thanks so much for your quick reply

    Quote Originally Posted by Smoge
    Hi,

    You can setup SMTP in your php.ini - so mail will still go out via a SMTP server you choose.

    Or, you could install MailEnable on your Windows box. http://www.mailenable.com/

    It is slightly tricky to configure - but it works - and the standard edition which is great for most people's needs is free.

    Smoge

    I have mail enable installed - but - you are right it is tricky.. and - I'm able to POP and SMTP through mail clients...

    I'm using XAMPP - and - they have 2 versions of php.ini php5.ini and php.ini... I'm not sure which one that would use - but - I'm using php5... They have a switcher thingie where you can select either php4 or php5.

    [mail function]
    ; For Win32 only.
    SMTP = localhost
    smtp_port = 25

    ; For Win32 only.
    sendmail_from = notify@disabilitypage.com

    ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
    sendmail_path = "C:\SVR\sendmail\sendmail.exe -t"

    ; Force the addition of the specified parameters to be passed as extra parameters
    ; to the sendmail binary. These parameters will always replace the value of
    ; the 5th parameter to mail(), even in safe mode.
    ;mail.force_extra_parameters =


    thanks again for your response... Mark

  4. #4
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Maybe it is an auth problem???

    Did you look in the mailenable logs? You may see failed connects there.

    Or perhaps the trouble shooting on this website would be helpful... use telnet and try to send a message manually - and check for errors.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  5. #5
    mtaborn
    Guest

    Default custom mail header info

    One quick question -

    is there a place that would have custom header examples? Such as when I am authenticating within mail-enable - the sendmail_from: doesn't have a username password field. In ME, I can open up relay with the option clecked of - allow relay for local sender addresses, which give a warning about opening up server to mail spam. Is this the only way to open up that type of authentication from a sendmail?

    Thanks very much

    Mark
    Last edited by Smoge; 05-04-2006 at 11:05 AM.

  6. #6
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Try this... it should answer a lot of questions.

    Please edit the to support@modmysite.com and from fields webmaster@yourdomain.com, for your own use.

    Code:
    <?
        $send = mail("support@modmysite.com", "Php Mail Test Script", "Its a Test!!!", "From: webmaster@yourdomain.com");
        
        if ($send == true)
        {
            $output = "emailSent=true";
        }
        else
        {
            $output = "emailSent=false";
        }
        echo($output);
    ?>
    If that works - then it is a header problem... email headers for Winows use can differ from those for Linux use.

    You may need to change them in your code... for example:

    Code:
    	$headers    .= "From: {$site['title']} <{$site['email_notify']}>";
    	$headers2   .= "-f{$site['email_notify']}";
    to

    Code:
    	$headers    .= "From: {$site['email_notify']}";
    	$headers2   .= "-f";
    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  7. #7
    mtaborn
    Guest

    Default Thank you VERY MUCH

    One question about placement,

    Thank you Smoge for your wonderful help...

    When you say headers, for instance the code in module.inc is such for aeD4.1.IQ

    function modules_err($ErrorMessage)
    {
    global $site;
    global $BUG_REPORT_EMAIL;

    mail($BUG_REPORT_EMAIL, "{$site['title']} : error in module", $ErrorMessage);
    echo "Module error: $ErrorMessage";

    exit;
    }


    When you say header - such as::

    $headers .= "From: {$site['email_notify']}";
    $headers2 .= "-f";

    Is the header info something I would put in the header.inc file or the module.inc file/ I've done a search for $header in my dating source - and don't see it. for instance.. in cold fusion - I put this to set a variable in the page or the application.cfm

    <cfset header = "From: {$site['email_notify']}";>

    That would set the variable header for that page or global through the app.cfm

    Thanks so much Smoge

    Mark

  8. #8
    mtaborn
    Guest

    Default One more point

    I wanted to let you know that the code for testing the email function worked great...


    <?
    $send = mail("mail@mail.ggg", "Php Mail Test Script", "Its a Test!!!", "From: webmaster@yourdomain.com");

    if ($send == true)
    {
    $output = "emailSent=true";
    }
    else
    {
    $output = "emailSent=false";
    }
    echo($output);
    ?>


    It is a header problem



    Mark

  9. #9
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Hi,

    Use a programmers editor - where you can search all your project files for strings... and do a search for $headers

    This will show the places in the code that you may need to work on.

    Get one of the emails functions working - then the rest should be easy.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  10. #10
    mtaborn
    Guest

    Default Error with mail in module.inc

    I am getting one last error with mail in modules function in the admin panel.

    I get an error about not having a custom From: header in module.inc.php line 367...

    All the other header additions worked great in the site. This is the last one.

    I've tried to figure out what kindof coding I should use based on what is already discussed above.. It uses the code $BUG_REPORT_EMAIL and that is where its crashing...

    Do you have any suggestions with this area? If they could only just make an option for SMTP - life would be so much easier... But its good that I"m learning the guts of this function at least...

    Thanks so much

    Mark

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Userplane Convert paid to Ad Based
    By makenoize in forum UserPlane
    Replies: 5
    Last Post: 04-12-2010, 01:15 AM
  2. sendMail
    By freexel in forum General Troubleshooting
    Replies: 0
    Last Post: 10-08-2007, 02:06 PM
  3. Convert GPL to dolphin 5.6
    By b33ny in forum Database
    Replies: 2
    Last Post: 05-08-2007, 12:37 AM
  4. slower sendmail in 5.4
    By dr.fox in forum Bugs Dolphin v.5.4.0
    Replies: 10
    Last Post: 01-05-2007, 03:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •