Simple Invoices logo
    • CommentAuthorddd
    • CommentTimeMay 10th 2008 edited
     permalink
    Hello,

    I've just upgraded to the latest version without problem and have finally succedeed in generating PDF directly (up to now I created PDF with CUPS).

    Now I've tried the email feature but I've got the following error message :
    " Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 (Connexion refusée) in /opt/lampp/htdocs/invoices2/modules/include/mail/class.smtp.php on line 122
    Message could not be sent.
    Mailer Error: Language string failed to load: connect_host"

    Does it mean that I need a mail server on my machine or is there a way to open a message in my mail software with the invoice as attachment ?

    thanks
    dd
    •  
      CommentAuthordimante
    • CommentTimeMay 10th 2008 edited
     permalink
    What kind of system do you have? Most *nix systems have sendmail installed that *should* provide that functionality.
    -D-
    • CommentAuthorjustin
    • CommentTimeMay 10th 2008 edited
     permalink
    if your on windows you can try using mercury mail

    let us know your system details and we'll let you know the best way to get email happening

    cheers

    justin
    • CommentAuthorddd
    • CommentTimeMay 15th 2008 edited
     permalink
    Hello,

    I'm running Ubuntu on a Linux PC with a LAMPP sql server (so all is local). I've thunderbird as messaging software.

    Do you mean that when clicking "send via mail" in simple invoices it should open a new message in Thunderbird ?

    thanks
    dd
    •  
      CommentAuthordimante
    • CommentTimeMay 15th 2008 edited
     permalink

    Hello,

    I'm running Ubuntu on a Linux PC with a LAMPP sql server (so all is local). I've thunderbird as messaging software.

    Do you mean that when clicking "send via mail" in simple invoices it should open a new message in Thunderbird ?

    thanks
    dd

    No. If you go to email the invoice it brings up a form that you type the from and to email address etc. Then if you have sendmail installed it would send the email to the email address yo specify. If you don't have sendmail enabled then this certainly will fail. Have you tried to send the message with the form?

    -D-
    • CommentAuthorjustin
    • CommentTimeMay 16th 2008 edited
     permalink
    hey dd

    re ubuntu
    - just make sure youve either got sendmail or postfix install
    - it will handle all the email sending/server stuff and it shoudl just work
    i dont think ubuntu installs sendmail my default, so you should be able to install postfix with the command below

    sudo apt-get install postfix

    note: if youve got a firewwall between your pc and the internet that can affect emailing going out - but thats an issue to deal with once youve got an email server installed

    cheers

    justin