email

winforms: How to send email using default email client?

I want to send an email from a .net windows forms application using the system's default email client (thunderbird, outlook, etc.). I'd like to preset the subject and body text -- I think there's a way to do this by sending something like this to windows explorer: "mailto:[email protected]?subject=mysubject&body=mymessage". Do you hav...

Is this the correct way to send email with PHP?

I'm a bit worried if this function sends emails that can be recognized correctly on the majority of email and webmail clients the way it should, specifically I'm most concerned about this doubts: Are the UTF-8 declarations and attachments well formed? Do I need to use quoted_printable_decode()? If yes, where? Content-Transfer-Encoding:...

Automatically processing the email received and sending the response

The project that I am working on is required to monitor an email account for new messages. I am free to decide the formatting of these messages so that it will be easier to parse the information contained in them. (like [Request code: xxxxxxxxx]) Based on request codes, I need to send an email response to the original sender. I haven't ...

Membership switch from ID to email

Currently I have a site (asp.net 3.5) that uses a unique ID for the login. I am going to need to switch it to use emails if possible. I am going to be creating all new accounts so I can wipe the membership table clean and import all the user info. We are switching from generic logins for departments to individual accounts. Any link...

php mail using sendmail.exe

Hi, I am using XAMPP on a localhost windows VISTA m/c...using gmail as smpt server I am trying to send an email using simple PHP script here is the configuration details on sendmail.ini(I have the sendmail.exe and the other 2 dll in that directory) smtp_server=smtp.gmail.com ; smtp port (normally 25) smtp_port=465 ; the default do...

How can I determine a user_id based on an email address in App Engine?

The newest App Engine SDK (1.2.1) has an API call to compute an ID for a user account based on his email address. (The ID remains the same even if the user changes his address later.) See this question about unique, opaque user IDs for information. However, I have a problem with this API call. user_id() works for logged-in users (i.e...

How to predict the next GUID from a given GUID?

Hi, i have sent 10000 mails to our customers and each mail had a link of the format http://example.com/LogIn?key={guid} unfortunately the guid i sent were random guids (test data generated by Guid.NewGuid()) so the customers have all received invalid links... based on the 404s i receive from the webserver i have a few guids that i sent...

How to send emails with PHP from a heavily firewalled network?

I wish to send an email from my localhost machine (using PHPs mail function) but I can not do this since I don't have a mail server. In addition, I need to be able to send emails through a network that is heavily firewalled (to what extent I do not know yet). My idea is to make use of "QK SMTP Server 3" and get that to use an external s...

OMA Email Notification WAP Push trouble...

I'm trying to send an OMA Email Notification(EMN) 1.0 WAP-Push, to a mobile device in order to make it fetch the newest emails for a given mailbox. My problem is that nothing happens when the mobile receives the SMS. I tested with an Nokia E71, which ought to have the specification implemented according to Nokia's own technical specs. ...

Testing email encoded for Japanese

After figuring out how to encode email that will be read by a Japanese user (encoding for IS0-2022-JP and then base64 encoding), I need to figure out how to test that this actually works. I'm not fluent in Japanese. How does one go about testing that the email reads correctly? The message I'm sending would be written by my program in Eng...

SMTP Headers in VB.Net without Redemption

I'm writing a mail component for a VB.Net app, and need to handle mails differently that are "Sent on Behalf" of someone. Although the Outlook Object Model exposes "SentOnBehalfOfName", it doesn't expose the email address for that party. Supposedly it's in the "OtherHeaders" field of the SMTP header, but I don't see an easy way to get ...

What sort of gotchas/tips/hints can you share for a .Net program which will send possibly 10k+ emails a day to subscribers?

I know how to write the basic c# code to send emails, but I'm wondering about any larger issues involved. Are there things I should avoid? Best practices? etc Thanks!! ...

Is there any way to track whether an email has been opened?

Hey, I'm beginning to work on mailing-list software we use internally (EDIT: though we send emails externally as well, so we can't enforce policy on mail clients). Is there any way to track whether, when I send an email to a particular user, that email has been opened as opposed to being marked as junk or being deleted without being op...

Postfix / Spamassassin: Undelivered Mail Returned to Sender

I'm having an issue with a newly configured mailserver where spam emails that are spoofed to come from the local domain are actually accepted by the mailserver, the mail isnt delivered as is though, the spamassassin tags it as spam and then send an email "Undelivered Mail Returned to Sender" to the spoofed local user. I know there is a ...

Sending a web page by email programmatically. Image URLs not resolved

I am writing a SharePoint timer job, which needs to pull the content of a web page, and send that HTML as an email. I am using HttpWebRequest and HttpWebResponse objects to pull the content. The emailing functionality works fine except for one problem. The web page which serves up the content of my email contains images. When the htm...

What's current best practice to prevent email injection attacks in PHP?

What's considered the best practice these days for sanitizing data from a PHP email form? I'm currently using something like this... $msg = $_POST['msg']; $email = filter_var($_POST['email'], FILTER_VALIDATE_EMAIL); $name = $_POST['name']; $subject = "Message from the MY_WEBSITE website e-mail system"; $message = "From: " . $name . "\...

While processing an email reply how can I ignore any email client specifics & the history?

I have a rails application which processes incoming emails via IMAP. Currently a method is used that searches the parts of a TMail object for a given content_type: def self.search_parts_for_content_type(parts, content_type = 'text/html') parts.each do |part| if part.content_type == content_type return part.body e...

What to include in email headers, using php mail()?

Hi, When I want to send email, my codes look like these: $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: me@localhost' . "\r\n"; // Email Variables $toUser = 'you@something'; $subject = "Testing"; $body = '<html><head><title></title></head><body> ...

Replace an Expression Within Text Boundaries

I have a rather annoying issue that I solved using a simple recursive method in Java. However, I'm looking for a better way to do this. The initial problem involved the presence of whitespace within a Quoted Printable/Base64 encoded Mime header - which as I read the RFC 2047 specification - isn't allowed. This means that decoding fail...

Simple PHP form: Attachment to email (code golf)

Imagine a user that would like to put a form on their website that would allow a website visitor to upload a file and a simple message, which will immediately be emailed (ie, the file is not stored on the server, or if it is then only temporarily) as a file attachment with the note in the message body. What is the simplest way to accomp...