Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

email - don't want any reply

  • 24-01-2009 6:17pm
    #1
    Closed Accounts Posts: 174 ✭✭


    I'm using Apache Commons in an app to send emails.
    http://commons.apache.org/email/ all good.
    Using the smtp server on my hosting account.
    So email would be
    SimpleEmail email = new SimpleEmail();
    email.setHostName("mail.domain.com");
    email.addTo("jhhgjh@office.com", "John Doe");
    email.setFrom("noreply@domain.com","Company");
    email.setSubject("new email");
    email.setMsg("hello world");
    email.send();
    
    If there something I can set to ensure I don't get emails bounced if the address is invalid ?


Comments

  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    Sure you'd WANT the bounced emails so that you don't keep sending to those addresses ?


  • Closed Accounts Posts: 174 ✭✭patftrears


    Liam Byrne wrote: »
    Sure you'd WANT the bounced emails so that you don't keep sending to those addresses ?
    it's an automated thing and some people won't have email addresses,
    but will use name@company as a unique identifier.
    So when they do a certain action, it grabs the email/unique identifier and firers off an email.


  • Closed Accounts Posts: 18,163 ✭✭✭✭Liam Byrne


    You might want to check out the Data Protection Act before you try that!

    All emails need to be opt-in.


  • Closed Accounts Posts: 174 ✭✭patftrears


    Liam Byrne wrote: »
    You might want to check out the Data Protection Act before you try that!

    All emails need to be opt-in.
    it's used by companies for internal stuff


  • Closed Accounts Posts: 174 ✭✭patftrears


    we ended up setting the reply-to address to a bounced@company.com and just checking this periodically to delete messages so it won't overload.


  • Advertisement
Advertisement