Questions tagged [mail-mime]

15 questions
5
votes
4 answers

How to send emails with PHP using the PEAR Mail package with attachment

I am trying to send an email with PHP by using the PEAR mail package with an attachment. The email sends successfully with a code I got from the internet. However, the attachment does not get sent or attached. Where am I going wrong, below is my…
Richard Tonata
  • 363
  • 1
  • 6
  • 14
4
votes
2 answers

PHP Warning: include_once(Net/SMTP.php): failed to open stream

I want to send email by using Gmail. For this, I just run the following command pear install Mail Mail_Mime My php file (filename.php) code is given below
user3441151
  • 1,880
  • 6
  • 35
  • 79
1
vote
1 answer

PEAR Mail using gmail SMTP won't send 2 emails in sucession

I have PEAR Mail and Mail_mime all working very nicely using gmail's SMTP server to send. Thanks to some posts on here that helped me get that far! But, in some scenarios, I need to send two emails, with different content, and to different…
Hatcham
  • 330
  • 3
  • 10
1
vote
1 answer

Embedding an image in an email with PHP

I'm sending out Emails by an PHP-Server over a local smtp-server. This HTML-emails should contain images, that are supposed to be embedded. I already setup the Pear-Extensions Mail, Mail_Mime and Net_SMTP. All emails are send fine, but no images are…
Platte
  • 45
  • 4
1
vote
0 answers

PEAR Mail_Mime overwrite header "To"

currently I'm working on a plugin for Roundcube using some functions of Mail_Mime. At one point I have to replace the recipient of the mail with another one, so I use $message->get(); $message->headers(array('To'=>implode(',', $recipients)),…
DDehning
  • 11
  • 4
1
vote
0 answers

Pipe Email with Attachement to PHP & Resend with new e-mail address in "to" header field

I am a newb trying to do something that seems simple but has turned out to be pretty complicated. I'm trying use the hostgator forwarding e-mail feature to forward emails with attachments directed to one e-mail address and forward the email,…
1
vote
1 answer

PEAR: Mail Mime - Can't send email after uploading to hosting site - GoDaddy

I've been creating this project, where the system accepts registration and then send the information thru mail to the owner. I'm using PEAR: Mail Mime to do this. Sending of mail is actually working on my local computer, but after uploading this…
1
vote
2 answers

php Mail_MIME - Generating and Attaching PDF

I am trying to write a PHP script that will generate a PDF and email it. My PDF generator works perfectly as an independent URL, but for some reason when I try to make the script email the generated PFD, the received file can't be opened. Here is…
Andrew
  • 467
  • 3
  • 7
  • 22
0
votes
1 answer

php Mail_mime stopped working need suggestions

I have a site that the other week was sending email just fine. All of a sudden it stopped working. I have narrowed the problem down to creating a new Mail_mime() object. Every time I try to use this the php just stops and returns a blank page or…
Muad'dib
  • 423
  • 5
  • 14
0
votes
1 answer

Mail_Mime Image Attachment Issue

For some reason, if I use the following code, only one image seems to get sent: $sql = mysql_query("SELECT photo FROM article_info"); while($row = mysql_fetch_assoc($sql)) { $mime->addHTMLImage($row['photo']); } But if I were to manually enter…
thelos999
  • 641
  • 2
  • 7
  • 19
0
votes
0 answers

PHP Mail_mime adding backward slash in the content

I am upgrading my PHP code from 5.2 to 7.3. For creating email mime , I have using the PEAR library Mail_mime (https://github.com/pear/Mail_Mime). After integrating the latest version, I am facing a strange issue where the backward slash (\) is…
RJ.
  • 332
  • 5
  • 16
0
votes
1 answer

When using PEAR's Mail_Mime, the text portion doesn't work when attaching HTML images

I'm using the latest version of PEAR mail_mime module and I'm running into a strange issue. When attaching HTML images to the email, the text portion stops working properly. What I mean by "not work properly" is that if I try to view the message as…
Michael Irigoyen
  • 22,513
  • 17
  • 89
  • 131
0
votes
1 answer

problem with HTML email on pear_mime/Pear_Mail

I have problem, I'm using Pear_mail and Mail_mime functions to send mail with attachment, everything works fine with gmail, but in *live.com and *mail.ru addresses I have problem that encoding not working, IDK where to start. Tried to change unicode…
0
votes
1 answer

php pear Mail_mime wrong content-type text/html vs multipart/alternative vs multipart/related

This same code works fine for other emails, just extra attachements. Yet this "same" email code results in an email with Content-Type: text/html... so I can see all the multipart boundries showing in the email or in a multipart/related the html…
user3338098
  • 907
  • 1
  • 17
  • 38
0
votes
2 answers

Known problems with Mail_mime that cause empty lines at some e-mail providers?

I'm sending a PDF and a short text message with Mail_mime 1.8.8 (+ Mail 1.2.0). Almost every test is without a problem. Including GMail and Apple iCloud. But it seems some recipients have trouble reading the attachment. Users of United Internet (1&1…
stesch
  • 7,202
  • 6
  • 47
  • 62