Unable to get Bcc from server with cron job - email

I am working on web app in Yii and I am trying to save when email receive and i am getting all things like to, cc and body but i am not able to get Bcc.
I am using the following code to get Bcc :
$Bcc=$this->getBcc($inbox,$email_number);
And i am using the
$Cc=$this->getCc($inbox,$email_number);
and it is showing the cc. But why the above code for Bcc is not working. Please help me. Thanks in advance.

Related

Error when sending email with Accounts.sendVerificationEmail()

Thank you for reading my message, here is my problem :
I recently started using email package, I defined MAIL_URL and sent emails with Email.send() successfully.
But now I want to send verification emails and I got errors. Here is my code :
On server
Meteor.methods({
'sendVerificationEmail'(){
Accounts.sendVerificationEmail(Meteor.userId());
}
});
On client
Meteor.call('sendVerificationEmail');
I got the following error :
With a few research I found this :
This message means that the email you sent was blocked by the
recipient's email hosting server, and returned to you
I tried Accounts.sendVerificationEmail() with users who have different emails (gmail, disposable email, email of my personal website) and I always have the same error.
The strange thing is that Email.send() works perfectly...
Thanks in advance for your help.
EDIT :
The email address I'm using to send those emails is using the domain rezarahemtola.com
Here is the result of dig rezarahemtola.com ns that Scott Stensland asked me to run in his answer :
You need to look at the dns hosting provider for your domain name ... like example.com ... assure you have added an MX Record Type ... it typically uses a value as
10 example.com
you can get a hint as to where your dns hosting is by issuing
dig example.com ns
to display its Name Server ( ns )
Posting the solution for anyone facing the same problem :
As I said Email.send() was working correctly but got an error with Accounts.sendVerificationEmail, Accounts.sendResetPasswordEmail etc.
Looks like Meteor can't retrieve automatically the sender address when using those methods, so you should set it like that :
Accounts.emailTemplates.from = "Your_Name <your_email#example.com>";
You can also check the docs about it.

How can we add attachment to default mail Application Using NSWorkSpace in cocoa Mac OSX application

I am using NSWorkspace to set TO, CC, BCC , SUBJECT and body text in default mail application through my application. How can i add attachments using NSWrokSpace?
Is there any way to attach files in the default mail app using NSWorkSpace?
I have tried using NSSharingService but problem with NSSharingService is that you cannot set CC and BCC email addresses in the default application Email Compose.
Is there any way to add CC, and BCC recipients using NSSharingSerivce ??
or is there any way to add attachments in mail using NSWorkSpace??
My code to open and set TO, CC and BCC is here
NSWorkspace.sharedWorkspace().openURL(NSURL.init(string:"mai‌​lto:(self.txtTo.‌​stringValue)"+"?subj‌​ect=YourSubject"+"&c‌​c="+self.txtCC.strin‌​gValue+"&bcc="+self.‌​txtBcc.stringValue)!‌​)
And Using NSSharingService i can set only recipients as TO
service!.recipients = [self.txtTo.stringValue]
service!.subject = "Subject"
thanks!.
It looks like NSSharingService has the method performWithItems, which takes an array of the things you want to share.
It appears you can create a sharing service of type NSSharingServiceNameComposeEmail and then attach a message body and a file to attach.
I've never used NSSharingService before, so the above is based on some Googling and reading the docs. (And I mostly work in iOS these days so my Mac OS is getting a little stale.)
Check out this link:
http://cutecoder.org/featured/programmatically-sending-rich-text-mail-attachment-mac/

Bcc field missing in getSentMIMEMessage()

I am trying to create MIME message using phpmailer().
Everything works fine but Bcc field is missing when I read the MIME message.
I am using below technique to create MIME Message.
$mail->preSend();
$mime = $mail->getSentMIMEMessage();
The MIME message created by the above code is used in some other app to send email.
TO and CC field works fine but Bcc field is missing.
Kindly tell me where I am wrong.
Kindly let me know you are not able to get my question.
Happy to share more info.
Er, you do know what BCC does, don't you? BCC is typically removed by an MTA, otherwise it wouldn't be blind, and PHPMailer is effectively an MTA.

How to get the no of attachments in an email using objective-c?

Hi am new to xcode programing,i am trying an app regarding the email attachments to show the no of attachments an email contains,i got the single attachment showing but i need how n=many are there in particular email,if any body knows about this please help me.Here is the code regarding the app:
From looking solely at the code you have provided, it would appear that all you need is [attachments count] to provide the number of attachments in the current message

Force.com email service

I have created an email service in force.com.Can anyone help me out of how to use thta in apex classes.say,i wanna send mail when user registration is successful??
Many Thanks,
Sandhya Krishnan
I assume you want to send an email directly from Apex code, either in a Trigger or from a page controller ... ? If so, this page can get you started:
http://www.forcetree.com/2009/07/sending-email-from-your-apex-class.html
Clearly you don't want to hard-code your email template into your classes, so make sure to read at least through the part that shows how to look up the template dynamically. That should be enough to get you on your way.