sendmail

What is the proper way to send an email *directly* using the SMTP protocol? (bypass MTA on my end)

I need to send emails DIRECLTY to the recipient's mail-server, bypassing any MTA's on my end. I know there are some great reasons to use MTAs like sendmail, etc, so I don't need advice in that direction. I would like to write code that directly connects to the recipient's mailservers. So, am I missing anything here? Suppose the desti...

sending email in while loop

Hi, When i try to send email from while loop with phpmailer, it sometimes sends 2, sometimes 3 same email (it is like random) to each recipient, here is my code, do you think it has problems? $list = $_POST['list']; $items = rtrim($_POST['items'],","); $query = "SELECT * FROM `mail` WHERE `ID` IN ($items)"; $result = mysq...

Zend Mail problem with foreign char + comma

Hi! Zend Mail throws an exception (because mail() returns false) when the to name is set to something with both a foreign character (like "å") and a comma (","). Re-produce with code below. $mail = new Zend_Mail('utf-8'); $mail ->setFrom('info@myhost', 'My company') ->setSubject('hi') ->addTo('[email protected]', 'aå,a')...

postfix relay failover

Is there a way to configure postfix to use a relay only if direct delivery is rejected? The case being a web application that has to send notification to subscribers, but some servers reject the connection. I want those cases to be retried using a paid SMTP relay like authsmtp.com. However I don't want to use the relay for everything sin...

send_email from php site hosted by profusehost

Hi, I have my website in PHP hosted with profusehost.net. The problem is that the send_email functionality works correctly when i host it locally on my apache server with mercury mail. But now when i have hosted my pages on profusehost, the mail doesn't go with the send_email. Is there some settings which needs to be done with the hosti...

javamail vs sendmail performance during bulk email

Hi all, I'm writing a Java mass emailer application to send out emails to send between 50,000 to 100,000 a day to users. The current plan is to delegate the sending to delegate to sendmail (on the local unix server). From our testing sendmail is sending a maximum of 5 emails per second. Would JavaMail be a faster option? Does anyo...

Is there a library for reading /var/spool/mail/ files?

How does one parse the mail files generated on a Linux system using Java? I mean, I want to be able to extract the From, To, Timestamp and Subject of the various emails inside the file. Any suggestions? ...

Google App Engine: Sendmail, command not found

Hi, I'm trying to get sendmail working on localhost. The problem is that the app engine has det wrong path to sendmail, since it throws the error: /bin/sh: sendmail: command not found Using Mac OS X, the path to sendmail is: /usr/sbin/sendmail Does anyone know how to change this? ..fredrik ...

mail: failed to open stream: Permission denied ?!?!?!

I get this warning sending mails with php Warning: mail(1) [function.mail]: failed to open stream: Permission denied in /home/... using ssmtp and gmail as smtp PHP 5.3.1 nothing in the logs (no errors) the mail gets to destination the permissions of the files are rwxrxrx Permission denied to what? Even calling something as simple as...

anyone have example python code that sends mail using sendmail and subprocess?

I'm kind of confused about how subprocess.Popen works. If anyone has example code that sends email using the subprocess module and sendmail that'd be great. ...

Sending Periodic Mail according to user's Setting in ASP.net?

in my web-application I want to send mail for users according to pre selected periods by themselves. for example: 1 HTML Mail Per 3days to user 01 and 1 HTML Mail Per 20days to user 02 how can I perform that? any resources? I can send mail by my app from My Gmail Account to any mail addresses in my tables but i dont know how to send it a...

sendmail() php help

Hi I am getting an error while sending a mail from a form Failed to connect to mailserver at "mail.yoursite.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\xampp\htdocs\send.php on line 8 Warning: mail() [function.mail]: SMTP server response: 550 ACCESS DENIED in C:\xampp\xampp\htdocs...

C# Sending emails on separate threads using QueueUserWorkItem

I have a console application that sends customized emails (with attachments) to different recipients and I want to send them concurrently. I need to create separate SmtpClients to achieve this so I am using QueueUserWorkItem to create the emails and send them in separate threads. Snippet var events = new Dictionary<Guid, AutoResetEve...

PHP HTML generated email caches images, thus displaying old images

I'm using PHP to generate an html email which sends my clients latest stats in graph form. PHP generates a new image everytime it sends out stats with the same image name to prevent high disk space usage. Now my problem is the image gets cached thus displaying the old image to the client instead of the new image. My html headers look as...

Attachments are 0 bytes for file sizes over 100k in Windows 2000 server IIS with ASP Classic

I'm using classic ASP to send an email with an attachment. It works fine for attachments under 100k, but anything larger than that gives me a zero-byte attachment. I've tried changing messages sizes under SMTP Virtual Server Settings, but nothing seems to work ...

How to resolve issue pertaining to [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA

Hi My machine is installed with Sendmail, but when I try to send email via java mail. I tested on my localhost the script is working well. But when sent from the machine, it shows errors in the log: [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA Can anyone advise how can I resolve this issue? Thank you very mu...

Sending only populate fields with PHP mail()

I'm finishing up an online menu for a fine dining client. For each item, the user can enter the desired quantity. When the user finishes selecting and submits the form, I want a confirmation email to go to the user and to the restaurant owner (the same message). In the confirmation email, I only want to display items for which they'v...

How can I pause the sendmail outgoing queue, change the sending interval and send emails in batches?

Hi, I have a web server running CentOS 5.3, Apache and sendmail (and other bits and pieces). I am sending email from Apache using the local sendmail process. I haven't changed any of the default CentOS values for sendmail. I have 2 questions which have been bugging me for a while now... How do I pause the outgoing sendmail queue? I...

Dead.letter email. Same domain name, different mail server

I have a server setup "myserver.com" and I'm trying to send emails from a PHP/Apache application on this server. The host name is set to "myserver.com" and I can send emails to anyone outside of the myserver.com domain. We are using a separate server/service and the problem is when I try to send emails to anyone on the myserver.com dom...

write own mail client to send Mail using SMTP/POP3 server on iphone

Hi, I am trying to develop application to send mail using configured SMTP client rather than iPhone's default MailController. How can i implement this functionality? Is it possible to design such client? Thanks, Jim. ...